Searched refs:RTNH_ALIGN (Results 1 – 8 of 8) sorted by relevance
319 #define RTNH_ALIGN(len) ( ((len)+RTNH_ALIGNTO-1) & ~(RTNH_ALIGNTO-1) ) macro322 #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))
368 #define RTNH_ALIGN(len) ( ((len)+RTNH_ALIGNTO-1) & ~(RTNH_ALIGNTO-1) ) macro371 #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))
383 #define RTNH_ALIGN(len) ( ((len)+RTNH_ALIGNTO-1) & ~(RTNH_ALIGNTO-1) ) macro386 #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))
139 char buf[RTNH_ALIGN(sizeof(nh)) + sizeof(nla)]; in main()143 memcpy(buf + RTNH_ALIGN(sizeof(nh)), &nla, sizeof(nla)); in main()
277 const size_t offset = RTNH_ALIGN(sizeof(nh)); in decode_rta_multipath()
995 tlen -= RTNH_ALIGN(rtnh->rtnh_len); in parse_multipath()