Searched refs:rtnh_len (Results 1 - 3 of 3) sorted by relevance

/external/iproute2/include/linux/
H A Drtnetlink.h303 unsigned short rtnh_len; member in struct:rtnexthop
319 #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)))
/external/kernel-headers/original/linux/
H A Drtnetlink.h303 unsigned short rtnh_len; member in struct:rtnexthop
319 #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)))
/external/iproute2/ip/
H A Diproute.c545 if (nh->rtnh_len > len)
554 if (nh->rtnh_len > sizeof(*nh)) {
555 parse_rtattr(tb, RTA_MAX, RTNH_DATA(nh), nh->rtnh_len - sizeof(*nh));
590 len -= NLMSG_ALIGN(nh->rtnh_len);
609 rtnh->rtnh_len += sizeof(struct rtattr) + 4;
630 rtnh->rtnh_len += sizeof(struct rtattr) + 4;
659 rtnh->rtnh_len = sizeof(*rtnh);
660 rta->rta_len += rtnh->rtnh_len;

Completed in 54 milliseconds