HomeSort by relevance Sort by last modified time
    Searched defs:NLMSG_ALIGN (Results 51 - 52 of 52) sorted by null

1 23

  /external/iproute2/include/linux/
netlink.h 79 #define NLMSG_ALIGN(len) ( ((len)+NLMSG_ALIGNTO-1) & ~(NLMSG_ALIGNTO-1) )
80 #define NLMSG_HDRLEN ((int) NLMSG_ALIGN(sizeof(struct nlmsghdr)))
81 #define NLMSG_LENGTH(len) ((len)+NLMSG_ALIGN(NLMSG_HDRLEN))
82 #define NLMSG_SPACE(len) NLMSG_ALIGN(NLMSG_LENGTH(len))
84 #define NLMSG_NEXT(nlh,len) ((len) -= NLMSG_ALIGN((nlh)->nlmsg_len), \
85 (struct nlmsghdr*)(((char*)(nlh)) + NLMSG_ALIGN((nlh)->nlmsg_len)))
  /external/kernel-headers/original/linux/
netlink.h 76 #define NLMSG_ALIGN(len) ( ((len)+NLMSG_ALIGNTO-1) & ~(NLMSG_ALIGNTO-1) )
77 #define NLMSG_HDRLEN ((int) NLMSG_ALIGN(sizeof(struct nlmsghdr)))
78 #define NLMSG_LENGTH(len) ((len)+NLMSG_ALIGN(NLMSG_HDRLEN))
79 #define NLMSG_SPACE(len) NLMSG_ALIGN(NLMSG_LENGTH(len))
81 #define NLMSG_NEXT(nlh,len) ((len) -= NLMSG_ALIGN((nlh)->nlmsg_len), \
82 (struct nlmsghdr*)(((char*)(nlh)) + NLMSG_ALIGN((nlh)->nlmsg_len)))
241 nlh = (struct nlmsghdr*)skb_put(skb, NLMSG_ALIGN(size));
247 if (!__builtin_constant_p(size) || NLMSG_ALIGN(size) - size != 0)
248 memset(NLMSG_DATA(nlh) + len, 0, NLMSG_ALIGN(size) - size);

Completed in 72 milliseconds

1 23