Home
last modified time | relevance | path

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

/net/ipv4/
Dfib_semantics.c66 int nhsel; const struct fib_nh *nh; \
67 for (nhsel = 0, nh = (fi)->fib_nh; \
72 int nhsel; struct fib_nh *nexthop_nh; \
73 for (nhsel = 0, nexthop_nh = (struct fib_nh *)((fi)->fib_nh); \
82 int nhsel; const struct fib_nh *nh = (fi)->fib_nh; \
87 struct fib_nh *nexthop_nh = (struct fib_nh *)((fi)->fib_nh); \
221 void fib_nh_release(struct net *net, struct fib_nh *fib_nh) in fib_nh_release() argument
224 if (fib_nh->nh_tclassid) in fib_nh_release()
227 fib_nh_common_release(&fib_nh->nh_common); in fib_nh_release()
284 const struct fib_nh *onh; in nh_comp()
[all …]
Dnexthop.c80 fib_nh_release(nh->net, &nhi->fib_nh); in nexthop_free_single()
212 struct fib_nh *fib_nh; in nh_fill_node() local
256 fib_nh = &nhi->fib_nh; in nh_fill_node()
257 if (fib_nh->fib_nh_gw_family && in nh_fill_node()
258 nla_put_u32(skb, NHA_GATEWAY, fib_nh->fib_nh_gw4)) in nh_fill_node()
304 if (nhi->fib_nh.fib_nh_gw_family) in nh_nlmsg_size_single()
465 static bool ipv4_good_nh(const struct fib_nh *nh) in ipv4_good_nh()
505 if (ipv4_good_nh(&nhi->fib_nh)) in nexthop_select_path()
1146 struct fib_nh *fib_nh = &nhi->fib_nh; in nh_create_ipv4() local
1158 err = fib_nh_init(net, fib_nh, &fib_cfg, 1, extack); in nh_create_ipv4()
[all …]
Droute.c1587 struct fib_nh *nh; in rt_set_nexthop()
1589 nh = container_of(nhc, struct fib_nh, nh_common); in rt_set_nexthop()
/net/decnet/
Ddn_fib.c54 for(nhsel = 0, nh = (fi)->fib_nh; nhsel < (fi)->fib_nhs; nh++, nhsel++)
57 for(nhsel = 0, nh = (struct dn_fib_nh *)((fi)->fib_nh); nhsel < (fi)->fib_nhs; nh++, nhsel++)
120 const struct dn_fib_nh *onh = ofi->fib_nh; in dn_fib_nh_comp()
285 fi = kzalloc(struct_size(fi, fib_nh, nhs), GFP_KERNEL); in dn_fib_create_info()
322 fi->fib_nh->nh_oif != nla_get_u32(attrs[RTA_OIF])) in dn_fib_create_info()
326 fi->fib_nh->nh_gw != nla_get_le16(attrs[RTA_GATEWAY])) in dn_fib_create_info()
329 struct dn_fib_nh *nh = fi->fib_nh; in dn_fib_create_info()
345 fi->fib_nh->nh_gw = nla_get_le16(attrs[RTA_GATEWAY]); in dn_fib_create_info()
360 struct dn_fib_nh *nh = fi->fib_nh; in dn_fib_create_info()
366 nh->nh_dev = dev_get_by_index(&init_net, fi->fib_nh->nh_oif); in dn_fib_create_info()
Ddn_table.c65 for(nhsel = 0, nh = (fi)->fib_nh; nhsel < (fi)->fib_nhs; nh++, nhsel++)
239 if ((!attrs[RTA_OIF] || nla_get_u32(attrs[RTA_OIF]) == fi->fib_nh->nh_oif) && in dn_fib_nh_match()
240 (!attrs[RTA_GATEWAY] || nla_get_le16(attrs[RTA_GATEWAY]) != fi->fib_nh->nh_gw)) in dn_fib_nh_match()
338 if (fi->fib_nh->nh_gw && in dn_fib_dump_info()
339 nla_put_le16(skb, RTA_GATEWAY, fi->fib_nh->nh_gw) < 0) in dn_fib_dump_info()
342 if (fi->fib_nh->nh_oif && in dn_fib_dump_info()
343 nla_put_u32(skb, RTA_OIF, fi->fib_nh->nh_oif) < 0) in dn_fib_dump_info()
Ddn_route.c944 return (daddr&~mask)|res->fi->fib_nh->nh_gw; in dn_fib_rules_map_destination()