Searched refs:rtnh_len (Results 1 – 6 of 6) sorted by relevance
296 unsigned short rtnh_len; member312 #define RTNH_OK(rtnh,len) ((rtnh)->rtnh_len >= sizeof(struct rtnexthop) && \313 ((int)(rtnh)->rtnh_len) <= (len))314 #define RTNH_NEXT(rtnh) ((struct rtnexthop*)(((char*)(rtnh)) + RTNH_ALIGN((rtnh)->rtnh_len)))
332 unsigned short rtnh_len; member352 #define RTNH_OK(rtnh,len) ((rtnh)->rtnh_len >= sizeof(struct rtnexthop) && \353 ((int)(rtnh)->rtnh_len) <= (len))354 #define RTNH_NEXT(rtnh) ((struct rtnexthop*)(((char*)(rtnh)) + RTNH_ALIGN((rtnh)->rtnh_len)))
334 unsigned short rtnh_len; member354 #define RTNH_OK(rtnh,len) ((rtnh)->rtnh_len >= sizeof(struct rtnexthop) && \355 ((int)(rtnh)->rtnh_len) <= (len))356 #define RTNH_NEXT(rtnh) ((struct rtnexthop*)(((char*)(rtnh)) + RTNH_ALIGN((rtnh)->rtnh_len)))
157 if (nh->rtnh_len > len) in print_mroute()169 len -= NLMSG_ALIGN(nh->rtnh_len); in print_mroute()
636 if (nh->rtnh_len > len) in print_route()645 if (nh->rtnh_len > sizeof(*nh)) { in print_route()646 parse_rtattr(tb, RTA_MAX, RTNH_DATA(nh), nh->rtnh_len - sizeof(*nh)); in print_route()697 len -= NLMSG_ALIGN(nh->rtnh_len); in print_route()746 rtnh->rtnh_len += sizeof(struct rtattr) + addr.bytelen; in parse_one_nh()749 rtnh->rtnh_len += sizeof(struct rtattr) + addr.bytelen+2; in parse_one_nh()771 rtnh->rtnh_len += sizeof(struct rtattr) + 4; in parse_one_nh()776 rtnh->rtnh_len += rta->rta_len - len; in parse_one_nh()806 rtnh->rtnh_len = sizeof(*rtnh); in parse_nexthops()807 rta->rta_len += rtnh->rtnh_len; in parse_nexthops()
857 while (tlen >= sizeof(*rtnh) && tlen >= rtnh->rtnh_len) { in parse_multipath()866 if (rtnh->rtnh_len > sizeof(*rtnh)) { in parse_multipath()871 rtnh->rtnh_len - sizeof(*rtnh), in parse_multipath()899 tlen -= RTNH_ALIGN(rtnh->rtnh_len); in parse_multipath()1164 rtnh->rtnh_len = nlmsg_tail(msg->nm_nlh) - in rtnl_route_build_msg()