Lines Matching refs:rtnh
5106 struct rtnexthop *rtnh; in ip6_route_multipath_add() local
5124 rtnh = (struct rtnexthop *)cfg->fc_mp; in ip6_route_multipath_add()
5129 while (rtnh_ok(rtnh, remaining)) { in ip6_route_multipath_add()
5131 if (rtnh->rtnh_ifindex) in ip6_route_multipath_add()
5132 r_cfg.fc_ifindex = rtnh->rtnh_ifindex; in ip6_route_multipath_add()
5134 attrlen = rtnh_attrlen(rtnh); in ip6_route_multipath_add()
5136 struct nlattr *nla, *attrs = rtnh_attrs(rtnh); in ip6_route_multipath_add()
5149 r_cfg.fc_flags |= (rtnh->rtnh_flags & RTNH_F_ONLINK); in ip6_route_multipath_add()
5164 rt->fib6_nh->fib_nh_weight = rtnh->rtnh_hops + 1; in ip6_route_multipath_add()
5173 rtnh = rtnh_next(rtnh, &remaining); in ip6_route_multipath_add()
5287 struct rtnexthop *rtnh; in ip6_route_multipath_del() local
5294 rtnh = (struct rtnexthop *)cfg->fc_mp; in ip6_route_multipath_del()
5297 while (rtnh_ok(rtnh, remaining)) { in ip6_route_multipath_del()
5299 if (rtnh->rtnh_ifindex) in ip6_route_multipath_del()
5300 r_cfg.fc_ifindex = rtnh->rtnh_ifindex; in ip6_route_multipath_del()
5302 attrlen = rtnh_attrlen(rtnh); in ip6_route_multipath_del()
5304 struct nlattr *nla, *attrs = rtnh_attrs(rtnh); in ip6_route_multipath_del()
5316 rtnh = rtnh_next(rtnh, &remaining); in ip6_route_multipath_del()