Searched refs:rtnh_len (Results 1 – 10 of 10) sorted by relevance
/external/strace/ |
D | rtnl_route.c | 269 PRINT_FIELD_U("{", nh, rtnh_len); in decode_rta_multipath() 276 const unsigned short rtnh_len = MIN(len, nh.rtnh_len); in decode_rta_multipath() local 278 if (rtnh_len > offset) { in decode_rta_multipath() 280 decode_nlattr(tcp, addr + offset, rtnh_len - offset, in decode_rta_multipath()
|
/external/strace/tests-mx32/ |
D | nlattr_rtmsg.c | 126 .rtnh_len = sizeof(nh) - 1, in main() 137 nh.rtnh_len, nh.rtnh_hops)); in main() 140 nh.rtnh_len = sizeof(buf); in main() 150 nh.rtnh_len, nh.rtnh_hops, nla.nla_len)); in main()
|
/external/strace/tests/ |
D | nlattr_rtmsg.c | 126 .rtnh_len = sizeof(nh) - 1, in main() 137 nh.rtnh_len, nh.rtnh_hops)); in main() 140 nh.rtnh_len = sizeof(buf); in main() 150 nh.rtnh_len, nh.rtnh_hops, nla.nla_len)); in main()
|
/external/strace/tests-m32/ |
D | nlattr_rtmsg.c | 126 .rtnh_len = sizeof(nh) - 1, in main() 137 nh.rtnh_len, nh.rtnh_hops)); in main() 140 nh.rtnh_len = sizeof(buf); in main() 150 nh.rtnh_len, nh.rtnh_hops, nla.nla_len)); in main()
|
/external/iproute2/include/uapi/linux/ |
D | rtnetlink.h | 348 unsigned short rtnh_len; member 369 #define RTNH_OK(rtnh,len) ((rtnh)->rtnh_len >= sizeof(struct rtnexthop) && \ 370 ((int)(rtnh)->rtnh_len) <= (len)) 371 #define RTNH_NEXT(rtnh) ((struct rtnexthop*)(((char*)(rtnh)) + RTNH_ALIGN((rtnh)->rtnh_len)))
|
/external/libnl/include/linux-private/linux/ |
D | rtnetlink.h | 363 unsigned short rtnh_len; member 384 #define RTNH_OK(rtnh,len) ((rtnh)->rtnh_len >= sizeof(struct rtnexthop) && \ 385 ((int)(rtnh)->rtnh_len) <= (len)) 386 #define RTNH_NEXT(rtnh) ((struct rtnexthop*)(((char*)(rtnh)) + RTNH_ALIGN((rtnh)->rtnh_len)))
|
/external/kernel-headers/original/uapi/linux/ |
D | rtnetlink.h | 393 unsigned short rtnh_len; member 416 #define RTNH_OK(rtnh,len) ((rtnh)->rtnh_len >= sizeof(struct rtnexthop) && \ 417 ((int)(rtnh)->rtnh_len) <= (len)) 418 #define RTNH_NEXT(rtnh) ((struct rtnexthop*)(((char*)(rtnh)) + RTNH_ALIGN((rtnh)->rtnh_len)))
|
/external/iproute2/ip/ |
D | ipmroute.c | 146 if (nh->rtnh_len > len) in print_mroute() 158 len -= NLMSG_ALIGN(nh->rtnh_len); in print_mroute()
|
D | iproute.c | 634 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() 705 len -= NLMSG_ALIGN(nh->rtnh_len); in print_route() 763 rtnh->rtnh_len += sizeof(struct rtattr) + addr.bytelen; in parse_one_nh() 766 rtnh->rtnh_len += RTA_SPACE(addr.bytelen+2); in parse_one_nh() 790 rtnh->rtnh_len += sizeof(struct rtattr) + 4; in parse_one_nh() 795 rtnh->rtnh_len += rta->rta_len - len; in parse_one_nh() 805 rtnh->rtnh_len += sizeof(struct rtattr) + addr.bytelen; in parse_one_nh() 835 rtnh->rtnh_len = sizeof(*rtnh); in parse_nexthops() [all …]
|
/external/libnl/lib/route/ |
D | route_obj.c | 1030 while (tlen >= sizeof(*rtnh) && tlen >= rtnh->rtnh_len) { in parse_multipath() 1039 if (rtnh->rtnh_len > sizeof(*rtnh)) { in parse_multipath() 1044 rtnh->rtnh_len - sizeof(*rtnh), in parse_multipath() 1107 tlen -= RTNH_ALIGN(rtnh->rtnh_len); in parse_multipath() 1475 rtnh->rtnh_len = (char *) nlmsg_tail(msg->nm_nlh) - in rtnl_route_build_msg()
|