Searched refs:fib_nh (Results 1 - 9 of 9) sorted by relevance
/asus-wl-520gu-7.0.1.45/src/linux/linux/net/ipv4/ |
H A 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); \ [all...] |
H A D | fib_hash.c | 323 n = neigh_lookup(&arp_tbl, &fi->fib_nh[0].nh_gw, fi->fib_dev); 368 if (!next_fi->fib_nh[0].nh_gw || next_fi->fib_nh[0].nh_scope != RT_SCOPE_LINK)
|
H A D | fib_rules.c | 251 return (daddr&~mask)|res->fi->fib_nh->nh_gw;
|
/asus-wl-520gu-7.0.1.45/src/router/iproute2/reference/net/ |
H A D | ip_fib.h | 37 struct fib_nh struct 77 struct fib_nh fib_nh[0]; member in struct:fib_info 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])
|
H A D | dn_fib.h | 66 struct dn_fib_nh fib_nh[0]; member in struct:dn_fib_info 67 #define fib_dev fib_nh[0].nh_dev 71 #define DN_FIB_RES_NH(res) ((res).fi->fib_nh[(res).nh_sel])
|
/asus-wl-520gu-7.0.1.45/src/linux/linux/include/net/ |
H A D | ip_fib.h | 37 struct fib_nh struct 77 struct fib_nh fib_nh[0]; member in struct:fib_info 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])
|
H A D | dn_fib.h | 66 struct dn_fib_nh fib_nh[0]; member in struct:dn_fib_info 67 #define fib_dev fib_nh[0].nh_dev 71 #define DN_FIB_RES_NH(res) ((res).fi->fib_nh[(res).nh_sel])
|
/asus-wl-520gu-7.0.1.45/src/linux/linux/net/decnet/ |
H A 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; 286 if (rta->rta_oif && fi->fib_nh->nh_oif != *rta->rta_oif) 288 if (rta->rta_gw && memcmp(&fi->fib_nh->nh_gw, rta->rta_gw, 2)) 291 struct dn_fib_nh *nh = fi->fib_nh; 310 struct dn_fib_nh *nh = fi->fib_nh; 316 nh->nh_dev = dev_get_by_index(fi->fib_nh->nh_oif);
|
H A 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) && 239 (!rta->rta_gw || memcmp(rta->rta_gw, &fi->fib_nh->nh_gw, 2) == 0)) 294 if (fi->fib_nh->nh_gw) 295 RTA_PUT(skb, RTA_GATEWAY, 2, &fi->fib_nh->nh_gw); 296 if (fi->fib_nh->nh_oif) 297 RTA_PUT(skb, RTA_OIF, sizeof(int), &fi->fib_nh->nh_oif); 750 if (fi && fi->fib_nh->nh_gw) 767 fi->fib_nh->nh_gw, flags, 0, 0, fi->fib_priority,
|
Completed in 47 milliseconds