Home
last modified time | relevance | path

Searched refs:rtnh_len (Results 1 – 6 of 6) sorted by relevance

/external/libnl/include/linux/
Drtnetlink.h296 unsigned short rtnh_len; member
312 #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)))
/external/kernel-headers/original/uapi/linux/
Drtnetlink.h332 unsigned short rtnh_len; member
352 #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)))
/external/iproute2/include/linux/
Drtnetlink.h334 unsigned short rtnh_len; member
354 #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)))
/external/iproute2/ip/
Dipmroute.c157 if (nh->rtnh_len > len) in print_mroute()
169 len -= NLMSG_ALIGN(nh->rtnh_len); in print_mroute()
Diproute.c636 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()
/external/libnl/lib/route/
Droute_obj.c857 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()