Searched refs:rtnh_len (Results 1 – 3 of 3) sorted by relevance
303 unsigned short rtnh_len; member319 #define RTNH_OK(rtnh,len) ((rtnh)->rtnh_len >= sizeof(struct rtnexthop) && \320 ((int)(rtnh)->rtnh_len) <= (len))321 #define RTNH_NEXT(rtnh) ((struct rtnexthop*)(((char*)(rtnh)) + RTNH_ALIGN((rtnh)->rtnh_len)))
304 unsigned short rtnh_len; member320 #define RTNH_OK(rtnh,len) ((rtnh)->rtnh_len >= sizeof(struct rtnexthop) && \321 ((int)(rtnh)->rtnh_len) <= (len))322 #define RTNH_NEXT(rtnh) ((struct rtnexthop*)(((char*)(rtnh)) + RTNH_ALIGN((rtnh)->rtnh_len)))
534 if (nh->rtnh_len > len) in print_route()543 if (nh->rtnh_len > sizeof(*nh)) { in print_route()544 parse_rtattr(tb, RTA_MAX, RTNH_DATA(nh), nh->rtnh_len - sizeof(*nh)); in print_route()579 len -= NLMSG_ALIGN(nh->rtnh_len); in print_route()598 rtnh->rtnh_len += sizeof(struct rtattr) + 4; in parse_one_nh()619 rtnh->rtnh_len += sizeof(struct rtattr) + 4; in parse_one_nh()648 rtnh->rtnh_len = sizeof(*rtnh); in parse_nexthops()649 rta->rta_len += rtnh->rtnh_len; in parse_nexthops()