Home
last modified time | relevance | path

Searched refs:rtnh (Results 1 – 4 of 4) sorted by relevance

/third_party/libnl/lib/route/
Droute_obj.c1026 struct rtnexthop *rtnh = nla_data(attr); in parse_multipath() local
1030 while (tlen >= sizeof(*rtnh) && tlen >= rtnh->rtnh_len) { in parse_multipath()
1035 rtnl_route_nh_set_weight(nh, rtnh->rtnh_hops); in parse_multipath()
1036 rtnl_route_nh_set_ifindex(nh, rtnh->rtnh_ifindex); in parse_multipath()
1037 rtnl_route_nh_set_flags(nh, rtnh->rtnh_flags); in parse_multipath()
1039 if (rtnh->rtnh_len > sizeof(*rtnh)) { in parse_multipath()
1043 RTNH_DATA(rtnh), in parse_multipath()
1044 rtnh->rtnh_len - sizeof(*rtnh), in parse_multipath()
1107 tlen -= RTNH_ALIGN(rtnh->rtnh_len); in parse_multipath()
1108 rtnh = RTNH_NEXT(rtnh); in parse_multipath()
[all …]
Dnexthop_encap.c70 struct rtnl_nexthop *rtnh) in nh_encap_parse_msg() argument
89 return lwtunnel_encap_types[e_type].ops->parse_msg(encap, rtnh); in nh_encap_parse_msg()
/third_party/libnl/include/linux-private/linux/
Drtnetlink.h384 #define RTNH_OK(rtnh,len) ((rtnh)->rtnh_len >= sizeof(struct rtnexthop) && \ argument
385 ((int)(rtnh)->rtnh_len) <= (len))
386 #define RTNH_NEXT(rtnh) ((struct rtnexthop*)(((char*)(rtnh)) + RTNH_ALIGN((rtnh)->rtnh_len))) argument
389 #define RTNH_DATA(rtnh) ((struct rtattr*)(((char*)(rtnh)) + RTNH_LENGTH(0))) argument
/third_party/libnl/include/netlink-private/route/
Dnexthop-encap.h8 int (*parse_msg)(struct nlattr *nla, struct rtnl_nexthop *rtnh);
24 struct rtnl_nexthop *rtnh);