Lines Matching refs:rtnh
5239 struct rtnexthop *rtnh; in ip6_route_multipath_add() local
5257 rtnh = (struct rtnexthop *)cfg->fc_mp; in ip6_route_multipath_add()
5262 while (rtnh_ok(rtnh, remaining)) { in ip6_route_multipath_add()
5264 if (rtnh->rtnh_ifindex) in ip6_route_multipath_add()
5265 r_cfg.fc_ifindex = rtnh->rtnh_ifindex; in ip6_route_multipath_add()
5267 attrlen = rtnh_attrlen(rtnh); in ip6_route_multipath_add()
5269 struct nlattr *nla, *attrs = rtnh_attrs(rtnh); in ip6_route_multipath_add()
5290 r_cfg.fc_flags |= (rtnh->rtnh_flags & RTNH_F_ONLINK); in ip6_route_multipath_add()
5305 rt->fib6_nh->fib_nh_weight = rtnh->rtnh_hops + 1; in ip6_route_multipath_add()
5314 rtnh = rtnh_next(rtnh, &remaining); in ip6_route_multipath_add()
5430 struct rtnexthop *rtnh; in ip6_route_multipath_del() local
5437 rtnh = (struct rtnexthop *)cfg->fc_mp; in ip6_route_multipath_del()
5440 while (rtnh_ok(rtnh, remaining)) { in ip6_route_multipath_del()
5442 if (rtnh->rtnh_ifindex) in ip6_route_multipath_del()
5443 r_cfg.fc_ifindex = rtnh->rtnh_ifindex; in ip6_route_multipath_del()
5445 attrlen = rtnh_attrlen(rtnh); in ip6_route_multipath_del()
5447 struct nlattr *nla, *attrs = rtnh_attrs(rtnh); in ip6_route_multipath_del()
5466 rtnh = rtnh_next(rtnh, &remaining); in ip6_route_multipath_del()