Home
last modified time | relevance | path

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

/external/strace/
Drtnl_route.c269 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/
Dnlattr_rtmsg.c126 .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/
Dnlattr_rtmsg.c126 .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/
Dnlattr_rtmsg.c126 .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/libnl/include/linux-private/linux/
Drtnetlink.h304 unsigned short rtnh_len; member
320 #define RTNH_OK(rtnh,len) ((rtnh)->rtnh_len >= sizeof(struct rtnexthop) && \
321 ((int)(rtnh)->rtnh_len) <= (len))
322 #define RTNH_NEXT(rtnh) ((struct rtnexthop*)(((char*)(rtnh)) + RTNH_ALIGN((rtnh)->rtnh_len)))
/external/iproute2/include/uapi/linux/
Drtnetlink.h348 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/kernel-headers/original/uapi/linux/
Drtnetlink.h363 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/iproute2/ip/
Dipmroute.c146 if (nh->rtnh_len > len) in print_mroute()
158 len -= NLMSG_ALIGN(nh->rtnh_len); in print_mroute()
Diproute.c634 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/
Droute_obj.c953 while (tlen >= sizeof(*rtnh) && tlen >= rtnh->rtnh_len) { in parse_multipath()
962 if (rtnh->rtnh_len > sizeof(*rtnh)) { in parse_multipath()
967 rtnh->rtnh_len - sizeof(*rtnh), in parse_multipath()
995 tlen -= RTNH_ALIGN(rtnh->rtnh_len); in parse_multipath()
1280 rtnh->rtnh_len = nlmsg_tail(msg->nm_nlh) - in rtnl_route_build_msg()
/external/syzkaller/sys/linux/
Dsocket_netlink_route.txt570 rtnh_len int16