Home
last modified time | relevance | path

Searched refs:fib_nh (Results 1 – 7 of 7) sorted by relevance

/linux-2.4.37.9/net/ipv4/
Dfib_semantics.c61 #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 …]
Dfib_hash.c347 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()
Dfib_rules.c251 return (daddr&~mask)|res->fi->fib_nh->nh_gw; in fib_rules_map_destination()
/linux-2.4.37.9/include/net/
Dip_fib.h37 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])
Ddn_fib.h66 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/
Ddn_fib.c46 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()
Ddn_table.c62 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()