Lines Matching refs:rtnh
5100 struct rtnexthop *rtnh; in ip6_route_multipath_add() local
5118 rtnh = (struct rtnexthop *)cfg->fc_mp; in ip6_route_multipath_add()
5123 while (rtnh_ok(rtnh, remaining)) { in ip6_route_multipath_add()
5125 if (rtnh->rtnh_ifindex) in ip6_route_multipath_add()
5126 r_cfg.fc_ifindex = rtnh->rtnh_ifindex; in ip6_route_multipath_add()
5128 attrlen = rtnh_attrlen(rtnh); in ip6_route_multipath_add()
5130 struct nlattr *nla, *attrs = rtnh_attrs(rtnh); in ip6_route_multipath_add()
5151 r_cfg.fc_flags |= (rtnh->rtnh_flags & RTNH_F_ONLINK); in ip6_route_multipath_add()
5166 rt->fib6_nh->fib_nh_weight = rtnh->rtnh_hops + 1; in ip6_route_multipath_add()
5175 rtnh = rtnh_next(rtnh, &remaining); in ip6_route_multipath_add()
5291 struct rtnexthop *rtnh; in ip6_route_multipath_del() local
5298 rtnh = (struct rtnexthop *)cfg->fc_mp; in ip6_route_multipath_del()
5301 while (rtnh_ok(rtnh, remaining)) { in ip6_route_multipath_del()
5303 if (rtnh->rtnh_ifindex) in ip6_route_multipath_del()
5304 r_cfg.fc_ifindex = rtnh->rtnh_ifindex; in ip6_route_multipath_del()
5306 attrlen = rtnh_attrlen(rtnh); in ip6_route_multipath_del()
5308 struct nlattr *nla, *attrs = rtnh_attrs(rtnh); in ip6_route_multipath_del()
5327 rtnh = rtnh_next(rtnh, &remaining); in ip6_route_multipath_del()