Lines Matching defs:rtnh
59 #include <net/rtnh.h>
5144 struct rtnexthop *rtnh;
5162 rtnh = (struct rtnexthop *)cfg->fc_mp;
5167 while (rtnh_ok(rtnh, remaining)) {
5169 if (rtnh->rtnh_ifindex)
5170 r_cfg.fc_ifindex = rtnh->rtnh_ifindex;
5172 attrlen = rtnh_attrlen(rtnh);
5174 struct nlattr *nla, *attrs = rtnh_attrs(rtnh);
5195 r_cfg.fc_flags |= (rtnh->rtnh_flags & RTNH_F_ONLINK);
5210 rt->fib6_nh->fib_nh_weight = rtnh->rtnh_hops + 1;
5219 rtnh = rtnh_next(rtnh, &remaining);
5328 struct rtnexthop *rtnh;
5335 rtnh = (struct rtnexthop *)cfg->fc_mp;
5338 while (rtnh_ok(rtnh, remaining)) {
5340 if (rtnh->rtnh_ifindex)
5341 r_cfg.fc_ifindex = rtnh->rtnh_ifindex;
5343 attrlen = rtnh_attrlen(rtnh);
5345 struct nlattr *nla, *attrs = rtnh_attrs(rtnh);
5364 rtnh = rtnh_next(rtnh, &remaining);