Lines Matching defs:rtnh
28 #include <net/rtnh.h>
836 static u8 mpls_count_nexthops(struct rtnexthop *rtnh, int len,
846 while (rtnh_ok(rtnh, remaining)) {
847 struct nlattr *nla, *attrs = rtnh_attrs(rtnh);
851 attrlen = rtnh_attrlen(rtnh);
878 rtnh = rtnh_next(rtnh, &remaining);
889 struct rtnexthop *rtnh = cfg->rc_mp;
902 if (!rtnh_ok(rtnh, remaining))
908 if (rtnh->rtnh_hops || rtnh->rtnh_flags)
911 attrlen = rtnh_attrlen(rtnh);
913 struct nlattr *attrs = rtnh_attrs(rtnh);
920 rtnh->rtnh_ifindex, nla_via, nla_newdst,
928 rtnh = rtnh_next(rtnh, &remaining);
2041 struct rtnexthop *rtnh;
2055 rtnh = nla_reserve_nohdr(skb, sizeof(*rtnh));
2056 if (!rtnh)
2059 rtnh->rtnh_ifindex = dev->ifindex;
2061 rtnh->rtnh_flags |= RTNH_F_LINKDOWN;
2065 rtnh->rtnh_flags |= RTNH_F_DEAD;
2080 rtnh->rtnh_len = nlmsg_get_pos(skb) - (void *)rtnh;