Home
last modified time | relevance | path

Searched refs:RTNH_ALIGN (Results 1 – 8 of 8) sorted by relevance

/external/libnl/include/linux-private/linux/
Drtnetlink.h319 #define RTNH_ALIGN(len) ( ((len)+RTNH_ALIGNTO-1) & ~(RTNH_ALIGNTO-1) ) macro
322 #define RTNH_NEXT(rtnh) ((struct rtnexthop*)(((char*)(rtnh)) + RTNH_ALIGN((rtnh)->rtnh_len)))
323 #define RTNH_LENGTH(len) (RTNH_ALIGN(sizeof(struct rtnexthop)) + (len))
324 #define RTNH_SPACE(len) RTNH_ALIGN(RTNH_LENGTH(len))
/external/iproute2/include/uapi/linux/
Drtnetlink.h368 #define RTNH_ALIGN(len) ( ((len)+RTNH_ALIGNTO-1) & ~(RTNH_ALIGNTO-1) ) macro
371 #define RTNH_NEXT(rtnh) ((struct rtnexthop*)(((char*)(rtnh)) + RTNH_ALIGN((rtnh)->rtnh_len)))
372 #define RTNH_LENGTH(len) (RTNH_ALIGN(sizeof(struct rtnexthop)) + (len))
373 #define RTNH_SPACE(len) RTNH_ALIGN(RTNH_LENGTH(len))
/external/kernel-headers/original/uapi/linux/
Drtnetlink.h383 #define RTNH_ALIGN(len) ( ((len)+RTNH_ALIGNTO-1) & ~(RTNH_ALIGNTO-1) ) macro
386 #define RTNH_NEXT(rtnh) ((struct rtnexthop*)(((char*)(rtnh)) + RTNH_ALIGN((rtnh)->rtnh_len)))
387 #define RTNH_LENGTH(len) (RTNH_ALIGN(sizeof(struct rtnexthop)) + (len))
388 #define RTNH_SPACE(len) RTNH_ALIGN(RTNH_LENGTH(len))
/external/strace/tests-mx32/
Dnlattr_rtmsg.c139 char buf[RTNH_ALIGN(sizeof(nh)) + sizeof(nla)]; in main()
143 memcpy(buf + RTNH_ALIGN(sizeof(nh)), &nla, sizeof(nla)); in main()
/external/strace/tests-m32/
Dnlattr_rtmsg.c139 char buf[RTNH_ALIGN(sizeof(nh)) + sizeof(nla)]; in main()
143 memcpy(buf + RTNH_ALIGN(sizeof(nh)), &nla, sizeof(nla)); in main()
/external/strace/tests/
Dnlattr_rtmsg.c139 char buf[RTNH_ALIGN(sizeof(nh)) + sizeof(nla)]; in main()
143 memcpy(buf + RTNH_ALIGN(sizeof(nh)), &nla, sizeof(nla)); in main()
/external/strace/
Drtnl_route.c277 const size_t offset = RTNH_ALIGN(sizeof(nh)); in decode_rta_multipath()
/external/libnl/lib/route/
Droute_obj.c995 tlen -= RTNH_ALIGN(rtnh->rtnh_len); in parse_multipath()