Searched refs:fib_nh (Results 1 – 7 of 7) sorted by relevance
/linux-2.4.37.9/net/ipv4/ |
D | fib_semantics.c | 61 #define for_nexthops(fi) { int nhsel; const struct fib_nh * nh; \ 62 for (nhsel=0, nh = (fi)->fib_nh; nhsel < (fi)->fib_nhs; nh++, nhsel++) 64 #define change_nexthops(fi) { int nhsel; struct fib_nh * nh; \ 65 for (nhsel=0, nh = (struct fib_nh*)((fi)->fib_nh); nhsel < (fi)->fib_nhs; nh++, nhsel++) 71 #define for_nexthops(fi) { int nhsel=0; const struct fib_nh * nh = (fi)->fib_nh; \ 74 #define change_nexthops(fi) { int nhsel=0; struct fib_nh * nh = (struct fib_nh*)((fi)->fib_nh); \ 141 const struct fib_nh *onh = ofi->fib_nh; in nh_comp() 266 if ((!rta->rta_oif || *rta->rta_oif == fi->fib_nh->nh_oif) && in fib_nh_match() 267 (!rta->rta_gw || memcmp(rta->rta_gw, &fi->fib_nh->nh_gw, 4) == 0)) in fib_nh_match() 347 static int fib_check_nh(const struct rtmsg *r, struct fib_info *fi, struct fib_nh *nh) in fib_check_nh() [all …]
|
D | fib_hash.c | 347 n = neigh_lookup(&arp_tbl, &fi->fib_nh[0].nh_gw, fi->fib_dev); in fib_detect_death() 392 if (!next_fi->fib_nh[0].nh_gw || next_fi->fib_nh[0].nh_scope != RT_SCOPE_LINK) in fn_hash_select_default()
|
D | fib_rules.c | 251 return (daddr&~mask)|res->fi->fib_nh->nh_gw; in fib_rules_map_destination()
|
/linux-2.4.37.9/include/net/ |
D | ip_fib.h | 37 struct fib_nh struct 77 struct fib_nh fib_nh[0]; member 78 #define fib_dev fib_nh[0].nh_dev 101 #define FIB_RES_NH(res) ((res).fi->fib_nh[(res).nh_sel]) 106 #define FIB_RES_NH(res) ((res).fi->fib_nh[0])
|
D | dn_fib.h | 66 struct dn_fib_nh fib_nh[0]; member 67 #define fib_dev fib_nh[0].nh_dev 71 #define DN_FIB_RES_NH(res) ((res).fi->fib_nh[(res).nh_sel])
|
/linux-2.4.37.9/net/decnet/ |
D | dn_fib.c | 46 for(nhsel = 0, nh = (fi)->fib_nh; nhsel < (fi)->fib_nhs; nh++, nhsel++) 49 for(nhsel = 0, nh = (struct dn_fib_nh *)((fi)->fib_nh); nhsel < (fi)->fib_nhs; nh++, nhsel++) 113 const struct dn_fib_nh *onh = ofi->fib_nh; in dn_fib_nh_comp() 289 if (rta->rta_oif && fi->fib_nh->nh_oif != *rta->rta_oif) in dn_fib_create_info() 291 if (rta->rta_gw && memcmp(&fi->fib_nh->nh_gw, rta->rta_gw, 2)) in dn_fib_create_info() 294 struct dn_fib_nh *nh = fi->fib_nh; in dn_fib_create_info() 313 struct dn_fib_nh *nh = fi->fib_nh; in dn_fib_create_info() 319 nh->nh_dev = dev_get_by_index(fi->fib_nh->nh_oif); in dn_fib_create_info()
|
D | dn_table.c | 62 for(nhsel = 0, nh = (fi)->fib_nh; nhsel < (fi)->fib_nhs; nh++, nhsel++) 238 if ((!rta->rta_oif || *rta->rta_oif == fi->fib_nh->nh_oif) && in dn_fib_nh_match() 239 (!rta->rta_gw || memcmp(rta->rta_gw, &fi->fib_nh->nh_gw, 2) == 0)) in dn_fib_nh_match() 294 if (fi->fib_nh->nh_gw) in dn_fib_dump_info() 295 RTA_PUT(skb, RTA_GATEWAY, 2, &fi->fib_nh->nh_gw); in dn_fib_dump_info() 296 if (fi->fib_nh->nh_oif) in dn_fib_dump_info() 297 RTA_PUT(skb, RTA_OIF, sizeof(int), &fi->fib_nh->nh_oif); in dn_fib_dump_info() 750 if (fi && fi->fib_nh->nh_gw) in dn_fib_flag_trans() 767 fi->fib_nh->nh_gw, flags, 0, 0, fi->fib_priority, in dn_fib_node_get_info()
|