Lines Matching defs:rtnh
27 #include <net/rtnh.h>
833 static u8 mpls_count_nexthops(struct rtnexthop *rtnh, int len,
843 while (rtnh_ok(rtnh, remaining)) {
844 struct nlattr *nla, *attrs = rtnh_attrs(rtnh);
848 attrlen = rtnh_attrlen(rtnh);
875 rtnh = rtnh_next(rtnh, &remaining);
886 struct rtnexthop *rtnh = cfg->rc_mp;
899 if (!rtnh_ok(rtnh, remaining))
905 if (rtnh->rtnh_hops || rtnh->rtnh_flags)
908 attrlen = rtnh_attrlen(rtnh);
910 struct nlattr *attrs = rtnh_attrs(rtnh);
917 rtnh->rtnh_ifindex, nla_via, nla_newdst,
925 rtnh = rtnh_next(rtnh, &remaining);
2044 struct rtnexthop *rtnh;
2058 rtnh = nla_reserve_nohdr(skb, sizeof(*rtnh));
2059 if (!rtnh)
2062 rtnh->rtnh_ifindex = dev->ifindex;
2064 rtnh->rtnh_flags |= RTNH_F_LINKDOWN;
2068 rtnh->rtnh_flags |= RTNH_F_DEAD;
2083 rtnh->rtnh_len = nlmsg_get_pos(skb) - (void *)rtnh;