Searched refs:rtnh (Results 1 – 4 of 4) sorted by relevance
1026 struct rtnexthop *rtnh = nla_data(attr); in parse_multipath() local1030 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 …]
70 struct rtnl_nexthop *rtnh) in nh_encap_parse_msg() argument89 return lwtunnel_encap_types[e_type].ops->parse_msg(encap, rtnh); in nh_encap_parse_msg()
384 #define RTNH_OK(rtnh,len) ((rtnh)->rtnh_len >= sizeof(struct rtnexthop) && \ argument385 ((int)(rtnh)->rtnh_len) <= (len))386 #define RTNH_NEXT(rtnh) ((struct rtnexthop*)(((char*)(rtnh)) + RTNH_ALIGN((rtnh)->rtnh_len))) argument389 #define RTNH_DATA(rtnh) ((struct rtattr*)(((char*)(rtnh)) + RTNH_LENGTH(0))) argument
8 int (*parse_msg)(struct nlattr *nla, struct rtnl_nexthop *rtnh);24 struct rtnl_nexthop *rtnh);