Home
last modified time | relevance | path

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

/linux-4.4.14/net/ipv4/
Dfib_semantics.c63 int nhsel; const struct fib_nh *nh; \
64 for (nhsel = 0, nh = (fi)->fib_nh; \
69 int nhsel; struct fib_nh *nexthop_nh; \
70 for (nhsel = 0, nexthop_nh = (struct fib_nh *)((fi)->fib_nh); \
79 int nhsel; const struct fib_nh *nh = (fi)->fib_nh; \
84 struct fib_nh *nexthop_nh = (struct fib_nh *)((fi)->fib_nh); \
158 static void free_nh_exceptions(struct fib_nh *nh) in free_nh_exceptions()
258 const struct fib_nh *onh = ofi->fib_nh; in nh_comp()
337 struct fib_nh *nh; in ip_fib_check_default()
436 n = neigh_lookup(&arp_tbl, &fi->fib_nh[0].nh_gw, fi->fib_dev); in fib_detect_death()
[all …]
Droute.c621 static void update_or_create_fnhe(struct fib_nh *nh, __be32 daddr, __be32 gw, in update_or_create_fnhe()
756 struct fib_nh *nh = &FIB_RES_NH(res); in __ip_do_redirect()
987 struct fib_nh *nh = &FIB_RES_NH(res); in __ip_rt_update_pmtu()
1252 static struct fib_nh_exception *find_exception(struct fib_nh *nh, __be32 daddr) in find_exception()
1315 static bool rt_cache_route(struct fib_nh *nh, struct rtable *rt) in rt_cache_route()
1404 struct fib_nh *nh = &FIB_RES_NH(*res); in rt_set_nexthop()
1560 static void ip_del_fnhe(struct fib_nh *nh, __be32 daddr) in ip_del_fnhe()
2066 struct fib_nh *nh = &FIB_RES_NH(*res); in __mkroute_output()
Dfib_trie.c1419 const struct fib_nh *nh = &fi->fib_nh[nhsel]; in fib_table_lookup()
2554 if (fi && fi->fib_nh->nh_gw) in fib_flag_trans()
2605 fi->fib_nh->nh_gw, flags, 0, 0, in fib_route_seq_show()
Dfib_frontend.c363 struct fib_nh *nh = &res.fi->fib_nh[ret]; in __fib_validate_source()
/linux-4.4.14/include/net/
Dip_fib.h75 struct fib_nh { struct
125 struct fib_nh fib_nh[0]; member
126 #define fib_dev fib_nh[0].nh_dev
162 #define FIB_RES_NH(res) ((res).fi->fib_nh[(res).nh_sel])
164 #define FIB_RES_NH(res) ((res).fi->fib_nh[0])
173 __be32 fib_info_update_nh_saddr(struct net *net, struct fib_nh *nh);
Ddn_fib.h40 struct dn_fib_nh fib_nh[0]; member
41 #define dn_fib_dev fib_nh[0].nh_dev
46 #define DN_FIB_RES_NH(res) ((res).fi->fib_nh[(res).nh_sel])
Droute.h49 struct fib_nh;
/linux-4.4.14/net/decnet/
Ddn_fib.c52 for(nhsel = 0, nh = (fi)->fib_nh; nhsel < (fi)->fib_nhs; nh++, nhsel++)
55 for(nhsel = 0, nh = (struct dn_fib_nh *)((fi)->fib_nh); nhsel < (fi)->fib_nhs; nh++, nhsel++)
118 const struct dn_fib_nh *onh = ofi->fib_nh; in dn_fib_nh_comp()
318 fi->fib_nh->nh_oif != nla_get_u32(attrs[RTA_OIF])) in dn_fib_create_info()
322 fi->fib_nh->nh_gw != nla_get_le16(attrs[RTA_GATEWAY])) in dn_fib_create_info()
325 struct dn_fib_nh *nh = fi->fib_nh; in dn_fib_create_info()
341 fi->fib_nh->nh_gw = nla_get_le16(attrs[RTA_GATEWAY]); in dn_fib_create_info()
356 struct dn_fib_nh *nh = fi->fib_nh; in dn_fib_create_info()
362 nh->nh_dev = dev_get_by_index(&init_net, fi->fib_nh->nh_oif); in dn_fib_create_info()
Ddn_table.c64 for(nhsel = 0, nh = (fi)->fib_nh; nhsel < (fi)->fib_nhs; nh++, nhsel++)
237 if ((!attrs[RTA_OIF] || nla_get_u32(attrs[RTA_OIF]) == fi->fib_nh->nh_oif) && in dn_fib_nh_match()
238 (!attrs[RTA_GATEWAY] || nla_get_le16(attrs[RTA_GATEWAY]) != fi->fib_nh->nh_gw)) in dn_fib_nh_match()
336 if (fi->fib_nh->nh_gw && in dn_fib_dump_info()
337 nla_put_le16(skb, RTA_GATEWAY, fi->fib_nh->nh_gw) < 0) in dn_fib_dump_info()
340 if (fi->fib_nh->nh_oif && in dn_fib_dump_info()
341 nla_put_u32(skb, RTA_OIF, fi->fib_nh->nh_oif) < 0) in dn_fib_dump_info()
Ddn_route.c958 return (daddr&~mask)|res->fi->fib_nh->nh_gw; in dn_fib_rules_map_destination()
/linux-4.4.14/net/ipv4/netfilter/
Dipt_rpfilter.c52 struct fib_nh *nh = &res.fi->fib_nh[ret]; in rpfilter_lookup_reverse()
/linux-4.4.14/include/trace/events/
Dfib.h54 TP_PROTO(const struct fib_nh *nh),
/linux-4.4.14/net/switchdev/
Dswitchdev.c1130 const struct fib_nh *nh = &fi->fib_nh[nhsel]; in switchdev_get_dev_by_nhs()
/linux-4.4.14/drivers/net/ethernet/rocker/
Drocker.c3994 const struct fib_nh *nh; in rocker_port_fib_ipv4()
4009 nh = fi->fib_nh; in rocker_port_fib_ipv4()