Lines Matching defs:rtnh
59 #include <net/rtnh.h>
5237 struct rtnexthop *rtnh;
5255 rtnh = (struct rtnexthop *)cfg->fc_mp;
5260 while (rtnh_ok(rtnh, remaining)) {
5262 if (rtnh->rtnh_ifindex)
5263 r_cfg.fc_ifindex = rtnh->rtnh_ifindex;
5265 attrlen = rtnh_attrlen(rtnh);
5267 struct nlattr *nla, *attrs = rtnh_attrs(rtnh);
5288 r_cfg.fc_flags |= (rtnh->rtnh_flags & RTNH_F_ONLINK);
5303 rt->fib6_nh->fib_nh_weight = rtnh->rtnh_hops + 1;
5312 rtnh = rtnh_next(rtnh, &remaining);
5421 struct rtnexthop *rtnh;
5428 rtnh = (struct rtnexthop *)cfg->fc_mp;
5431 while (rtnh_ok(rtnh, remaining)) {
5433 if (rtnh->rtnh_ifindex)
5434 r_cfg.fc_ifindex = rtnh->rtnh_ifindex;
5436 attrlen = rtnh_attrlen(rtnh);
5438 struct nlattr *nla, *attrs = rtnh_attrs(rtnh);
5457 rtnh = rtnh_next(rtnh, &remaining);