Searched refs:rtnh_len (Results 1 – 2 of 2) sorted by relevance
10 rtnh->rtnh_len >= sizeof(*rtnh) && in rtnh_ok()11 rtnh->rtnh_len <= remaining; in rtnh_ok()17 int totlen = NLA_ALIGN(rtnh->rtnh_len); in rtnh_next()30 return rtnh->rtnh_len - NLA_ALIGN(sizeof(*rtnh)); in rtnh_attrlen()
306 unsigned short rtnh_len; member322 #define RTNH_OK(rtnh,len) ((rtnh)->rtnh_len >= sizeof(struct rtnexthop) && \323 ((int)(rtnh)->rtnh_len) <= (len))324 #define RTNH_NEXT(rtnh) ((struct rtnexthop*)(((char*)(rtnh)) + RTNH_ALIGN((rtnh)->rtnh_len)))