Searched refs:rtnh (Results 1 – 5 of 5) sorted by relevance
/net/ipv4/ |
D | fib_semantics.c | 644 static int fib_count_nexthops(struct rtnexthop *rtnh, int remaining, in fib_count_nexthops() argument 649 while (rtnh_ok(rtnh, remaining)) { in fib_count_nexthops() 651 rtnh = rtnh_next(rtnh, &remaining); in fib_count_nexthops() 678 static int fib_get_nhs(struct fib_info *fi, struct rtnexthop *rtnh, in fib_get_nhs() argument 692 if (!rtnh_ok(rtnh, remaining)) { in fib_get_nhs() 698 if (rtnh->rtnh_flags & (RTNH_F_DEAD | RTNH_F_LINKDOWN)) { in fib_get_nhs() 704 fib_cfg.fc_flags = (cfg->fc_flags & ~0xFF) | rtnh->rtnh_flags; in fib_get_nhs() 705 fib_cfg.fc_oif = rtnh->rtnh_ifindex; in fib_get_nhs() 707 attrlen = rtnh_attrlen(rtnh); in fib_get_nhs() 709 struct nlattr *nla, *nlav, *attrs = rtnh_attrs(rtnh); in fib_get_nhs() [all …]
|
D | ipmr.c | 2649 struct rtnexthop *rtnh = nla_data(nla); in ipmr_nla_get_ttls() local 2652 while (rtnh_ok(rtnh, remaining)) { in ipmr_nla_get_ttls() 2653 mfcc->mfcc_ttls[vifi] = rtnh->rtnh_hops; in ipmr_nla_get_ttls() 2656 rtnh = rtnh_next(rtnh, &remaining); in ipmr_nla_get_ttls()
|
/net/core/ |
D | lwtunnel.c | 180 struct rtnexthop *rtnh = (struct rtnexthop *)attr; in lwtunnel_valid_encap_type_attr() local 186 while (rtnh_ok(rtnh, remaining)) { in lwtunnel_valid_encap_type_attr() 187 attrlen = rtnh_attrlen(rtnh); in lwtunnel_valid_encap_type_attr() 189 attrs = rtnh_attrs(rtnh); in lwtunnel_valid_encap_type_attr() 204 rtnh = rtnh_next(rtnh, &remaining); in lwtunnel_valid_encap_type_attr()
|
/net/mpls/ |
D | af_mpls.c | 833 static u8 mpls_count_nexthops(struct rtnexthop *rtnh, int len, in mpls_count_nexthops() argument 843 while (rtnh_ok(rtnh, remaining)) { in mpls_count_nexthops() 844 struct nlattr *nla, *attrs = rtnh_attrs(rtnh); in mpls_count_nexthops() 848 attrlen = rtnh_attrlen(rtnh); in mpls_count_nexthops() 875 rtnh = rtnh_next(rtnh, &remaining); in mpls_count_nexthops() 886 struct rtnexthop *rtnh = cfg->rc_mp; in mpls_nh_build_multi() local 899 if (!rtnh_ok(rtnh, remaining)) in mpls_nh_build_multi() 905 if (rtnh->rtnh_hops || rtnh->rtnh_flags) in mpls_nh_build_multi() 908 attrlen = rtnh_attrlen(rtnh); in mpls_nh_build_multi() 910 struct nlattr *attrs = rtnh_attrs(rtnh); in mpls_nh_build_multi() [all …]
|
/net/ipv6/ |
D | route.c | 5083 struct rtnexthop *rtnh; in ip6_route_multipath_add() local 5101 rtnh = (struct rtnexthop *)cfg->fc_mp; in ip6_route_multipath_add() 5106 while (rtnh_ok(rtnh, remaining)) { in ip6_route_multipath_add() 5108 if (rtnh->rtnh_ifindex) in ip6_route_multipath_add() 5109 r_cfg.fc_ifindex = rtnh->rtnh_ifindex; in ip6_route_multipath_add() 5111 attrlen = rtnh_attrlen(rtnh); in ip6_route_multipath_add() 5113 struct nlattr *nla, *attrs = rtnh_attrs(rtnh); in ip6_route_multipath_add() 5134 r_cfg.fc_flags |= (rtnh->rtnh_flags & RTNH_F_ONLINK); in ip6_route_multipath_add() 5149 rt->fib6_nh->fib_nh_weight = rtnh->rtnh_hops + 1; in ip6_route_multipath_add() 5158 rtnh = rtnh_next(rtnh, &remaining); in ip6_route_multipath_add() [all …]
|