Lines Matching refs:rtnh
5214 struct rtnexthop *rtnh; in ip6_route_multipath_add() local
5232 rtnh = (struct rtnexthop *)cfg->fc_mp; in ip6_route_multipath_add()
5237 while (rtnh_ok(rtnh, remaining)) { in ip6_route_multipath_add()
5239 if (rtnh->rtnh_ifindex) in ip6_route_multipath_add()
5240 r_cfg.fc_ifindex = rtnh->rtnh_ifindex; in ip6_route_multipath_add()
5242 attrlen = rtnh_attrlen(rtnh); in ip6_route_multipath_add()
5244 struct nlattr *nla, *attrs = rtnh_attrs(rtnh); in ip6_route_multipath_add()
5257 r_cfg.fc_flags |= (rtnh->rtnh_flags & RTNH_F_ONLINK); in ip6_route_multipath_add()
5272 rt->fib6_nh->fib_nh_weight = rtnh->rtnh_hops + 1; in ip6_route_multipath_add()
5281 rtnh = rtnh_next(rtnh, &remaining); in ip6_route_multipath_add()
5397 struct rtnexthop *rtnh; in ip6_route_multipath_del() local
5404 rtnh = (struct rtnexthop *)cfg->fc_mp; in ip6_route_multipath_del()
5407 while (rtnh_ok(rtnh, remaining)) { in ip6_route_multipath_del()
5409 if (rtnh->rtnh_ifindex) in ip6_route_multipath_del()
5410 r_cfg.fc_ifindex = rtnh->rtnh_ifindex; in ip6_route_multipath_del()
5412 attrlen = rtnh_attrlen(rtnh); in ip6_route_multipath_del()
5414 struct nlattr *nla, *attrs = rtnh_attrs(rtnh); in ip6_route_multipath_del()
5426 rtnh = rtnh_next(rtnh, &remaining); in ip6_route_multipath_del()