Lines Matching defs:rtnh
28 #include <net/rtnh.h>
856 static u8 mpls_count_nexthops(struct rtnexthop *rtnh, int len,
866 while (rtnh_ok(rtnh, remaining)) {
867 struct nlattr *nla, *attrs = rtnh_attrs(rtnh);
871 attrlen = rtnh_attrlen(rtnh);
898 rtnh = rtnh_next(rtnh, &remaining);
909 struct rtnexthop *rtnh = cfg->rc_mp;
923 if (!rtnh_ok(rtnh, remaining))
929 if (rtnh->rtnh_hops || rtnh->rtnh_flags)
932 attrlen = rtnh_attrlen(rtnh);
934 struct nlattr *attrs = rtnh_attrs(rtnh);
941 rtnh->rtnh_ifindex, nla_via, nla_newdst,
949 rtnh = rtnh_next(rtnh, &remaining);
2074 struct rtnexthop *rtnh;
2088 rtnh = nla_reserve_nohdr(skb, sizeof(*rtnh));
2089 if (!rtnh)
2092 rtnh->rtnh_ifindex = dev->ifindex;
2094 rtnh->rtnh_flags |= RTNH_F_LINKDOWN;
2098 rtnh->rtnh_flags |= RTNH_F_DEAD;
2113 rtnh->rtnh_len = nlmsg_get_pos(skb) - (void *)rtnh;