taglinefilesource code
nat48include/linux/net_alias.hstruct net_alias_type *nat;  /* alias type object bound */
nat122include/linux/net_alias.hextern int register_net_alias_type(struct net_alias_type *nat, int type);
nat123include/linux/net_alias.hextern int unregister_net_alias_type(struct net_alias_type *nat);
nat57net/core/net_alias.cstatic int nat_attach_chg(struct net_alias_type *nat, int delta);
nat58net/core/net_alias.cstatic int nat_bind(struct net_alias_type *nat,struct net_alias *alias, struct sockaddr *sa);
nat59net/core/net_alias.cstatic int nat_unbind(struct net_alias_type *nat, struct net_alias *alias);
nat64net/core/net_alias.cstatic int net_alias_devsetup(struct net_alias *alias, struct net_alias_type *nat, struct sockaddr *sa);
nat84net/core/net_alias.cstruct net_alias_type *nat;
nat85net/core/net_alias.cfor(nat = nat_base[type & 0x0f]; nat ; nat = nat->next)
nat87net/core/net_alias.cif (nat->type == type) return nat;
nat99net/core/net_alias.cnat_addr32(struct net_alias_type *nat, struct sockaddr *sa)
nat101net/core/net_alias.cif (nat->get_addr32)
nat102net/core/net_alias.creturn nat->get_addr32(nat, sa);
nat130net/core/net_alias.cnat_hash_key(struct net_alias_type *nat, struct sockaddr *sa)
nat132net/core/net_alias.creturn HASH(nat_addr32(nat,sa), sa->sa_family);
nat141net/core/net_alias.cnat_attach_chg(struct net_alias_type *nat, int delta)
nat145net/core/net_alias.cif (!nat) return -1;
nat148net/core/net_alias.cn_at = nat->n_attach + delta;
nat153net/core/net_alias.cnat->type);
nat156net/core/net_alias.cnat->n_attach = n_at;
nat167net/core/net_alias.cnat_bind(struct net_alias_type *nat,struct net_alias *alias, struct sockaddr *sa)
nat169net/core/net_alias.cif (nat->alias_init_1) nat->alias_init_1(nat, alias, sa);
nat170net/core/net_alias.creturn nat_attach_chg(nat, +1);
nat179net/core/net_alias.cnat_unbind(struct net_alias_type *nat, struct net_alias *alias)
nat181net/core/net_alias.cif (nat->alias_done_1) nat->alias_done_1(nat, alias);
nat182net/core/net_alias.creturn nat_attach_chg(nat, -1);
nat191net/core/net_alias.cstatic __inline__ int nat_dev_addr_chk_1(struct net_alias_type *nat,
nat194net/core/net_alias.cif (nat->dev_addr_chk)
nat195net/core/net_alias.creturn nat->dev_addr_chk(nat, dev, sa);
nat235net/core/net_alias.cnet_alias_devsetup(struct net_alias *alias, struct net_alias_type *nat,
nat329net/core/net_alias.cstruct net_alias_type *nat;
nat348net/core/net_alias.cnat = nat_getbytype(family);
nat349net/core/net_alias.cif (!nat)
nat390net/core/net_alias.calias->nat = nat;
nat399net/core/net_alias.cnet_alias_devsetup(alias, nat, sa);
nat411net/core/net_alias.cnat_bind(nat, alias, sa);
nat418net/core/net_alias.caddr32 = (sa)? nat_addr32(nat, sa) : alias->dev.pa_addr;
nat468net/core/net_alias.cstruct net_alias_type *nat;
nat526net/core/net_alias.cnat = alias->nat;
nat535net/core/net_alias.cnat_unbind(nat, alias);
nat586net/core/net_alias.cstruct net_alias_type *nat;
nat626net/core/net_alias.cnat = alias->nat;
nat627net/core/net_alias.cif (nat)
nat629net/core/net_alias.cnat_unbind(nat, alias);
nat773net/core/net_alias.co_nat = alias->nat;
nat872net/core/net_alias.cstruct net_alias_type *nat;
nat876net/core/net_alias.cfor (nat = nat_base[idx]; nat ; nat = nat->next)
nat879net/core/net_alias.cnat->type, nat->name,nat->n_attach);
nat910net/core/net_alias.cstruct net_alias_type *nat;
nat919net/core/net_alias.cnat = alias->nat;
nat926net/core/net_alias.cif (nat->alias_print_1)
nat927net/core/net_alias.cdlen += nat->alias_print_1(nat, alias, buffer+len+dlen, NET_ALIASES_RECSIZ - dlen);
nat995net/core/net_alias.cnat_addr_chk(struct net_alias_type *nat, struct net_alias_info *alias_info, struct sockaddr *sa, int flags_on, int flags_off)
nat998net/core/net_alias.cfor(alias = alias_info->hash_tab[nat_hash_key(nat,sa)];
nat1008net/core/net_alias.cnat_dev_addr_chk_1(nat,&alias->dev,sa))
nat1020net/core/net_alias.cnat_addr_chk32(struct net_alias_type *nat, struct net_alias_info *alias_info, int family, __u32 addr32, int flags_on, int flags_off)
nat1049net/core/net_alias.cstruct net_alias_type *nat;
nat1061net/core/net_alias.cnat = nat_getbytype(sa->sa_family);
nat1062net/core/net_alias.cif (!nat)
nat1065net/core/net_alias.creturn nat_addr_chk(nat, alias_info, sa, flags_on, flags_off);
nat1100net/core/net_alias.cstruct net_alias_type *nat;
nat1124net/core/net_alias.cif ( (nat = nat_getbytype(family)) == NULL ) return main_dev;
nat1132net/core/net_alias.cif (nat_dev_addr_chk_1(nat, main_dev,sa_dst))
nat1135net/core/net_alias.cdev = nat_addr_chk(nat, alias_info, sa_dst, IFF_UP, 0);
nat1144net/core/net_alias.cif ( sa_src == NULL || nat->dev_select == NULL) return main_dev;
nat1145net/core/net_alias.cdev = nat->dev_select(nat, main_dev, sa_src);
nat1171net/core/net_alias.cstruct net_alias_type *nat;
nat1198net/core/net_alias.cif ( (nat = nat_getbytype(family)) == NULL ) return main_dev;
nat1206net/core/net_alias.cdev = nat_addr_chk32(nat, alias_info, family, dst, IFF_UP, 0);
nat1214net/core/net_alias.cif ( src == 0 || nat->dev_select == NULL) return main_dev;
nat1219net/core/net_alias.cdev = nat->dev_select(nat, main_dev, (struct sockaddr *)&sin_src);
nat1288net/core/net_alias.cint register_net_alias_type(struct net_alias_type *nat, int type)
nat1292net/core/net_alias.cif (!nat)
nat1297net/core/net_alias.cnat->type = type;
nat1298net/core/net_alias.cnat->n_attach = 0;
nat1299net/core/net_alias.chash = nat->type & 0x0f;
nat1302net/core/net_alias.cnat->next = nat_base[hash];
nat1303net/core/net_alias.cnat_base[hash] = nat;
nat1311net/core/net_alias.cint unregister_net_alias_type(struct net_alias_type *nat)
nat1317net/core/net_alias.cif (!nat)
nat1326net/core/net_alias.cif (nat->n_attach)
nat1329net/core/net_alias.cnat->n_attach);
nat1332net/core/net_alias.chash = nat->type & 0x0f;
nat1337net/core/net_alias.cif (nat==(*natp))
nat1339net/core/net_alias.c*natp = nat->next;
nat1345net/core/net_alias.cprintk("unregister_net_alias_type(type=%d): not found!\n", nat->type);