Lines Matching defs:rtnh
59 #include <net/rtnh.h>
5110 struct rtnexthop *rtnh;
5114 rtnh = (struct rtnexthop *)cfg->fc_mp;
5116 if (!rtnh_ok(rtnh, remaining)) {
5123 int attrlen = rtnh_attrlen(rtnh);
5128 attrs = rtnh_attrs(rtnh);
5147 rtnh = rtnh_next(rtnh, &remaining);
5148 } while (rtnh_ok(rtnh, remaining));
5394 struct rtnexthop *rtnh;
5417 rtnh = (struct rtnexthop *)cfg->fc_mp;
5422 while (rtnh_ok(rtnh, remaining)) {
5424 if (rtnh->rtnh_ifindex)
5425 r_cfg.fc_ifindex = rtnh->rtnh_ifindex;
5427 attrlen = rtnh_attrlen(rtnh);
5429 struct nlattr *nla, *attrs = rtnh_attrs(rtnh);
5443 r_cfg.fc_flags |= (rtnh->rtnh_flags & RTNH_F_ONLINK);
5457 rt->fib6_nh->fib_nh_weight = rtnh->rtnh_hops + 1;
5465 rtnh = rtnh_next(rtnh, &remaining);
5568 struct rtnexthop *rtnh;
5575 rtnh = (struct rtnexthop *)cfg->fc_mp;
5578 while (rtnh_ok(rtnh, remaining)) {
5580 if (rtnh->rtnh_ifindex)
5581 r_cfg.fc_ifindex = rtnh->rtnh_ifindex;
5583 attrlen = rtnh_attrlen(rtnh);
5585 struct nlattr *nla, *attrs = rtnh_attrs(rtnh);
5598 rtnh = rtnh_next(rtnh, &remaining);