Searched refs:NLMSG_ALIGN (Results 1 – 9 of 9) sorted by relevance
90 #define NLMSG_ALIGN(len) ( ((len)+NLMSG_ALIGNTO-1) & ~(NLMSG_ALIGNTO-1) ) macro91 #define NLMSG_HDRLEN ((int) NLMSG_ALIGN(sizeof(struct nlmsghdr)))93 #define NLMSG_SPACE(len) NLMSG_ALIGN(NLMSG_LENGTH(len))95 #define NLMSG_NEXT(nlh,len) ((len) -= NLMSG_ALIGN((nlh)->nlmsg_len), \97 NLMSG_ALIGN((nlh)->nlmsg_len)))
68 #define IFA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct ifaddrmsg))))
19 #define GENL_HDRLEN NLMSG_ALIGN(sizeof(struct genlmsghdr))
388 #define RTM_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct rtmsg))))639 #define TCA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct tcmsg))))780 #define TA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct tcamsg))))
370 #define TIPC_GENL_HDRLEN NLMSG_ALIGN(sizeof(struct tipc_genlmsghdr))
368 #define IFLA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct ifinfomsg))))
60 + NLMSG_ALIGN(sizeof(struct nfgenmsg))))
552 return NLMSG_ALIGN(nlmsg_msg_size(payload)); in nlmsg_total_size()591 return (struct nlattr *) (data + NLMSG_ALIGN(hdrlen)); in nlmsg_attrdata()601 return nlmsg_len(nlh) - NLMSG_ALIGN(hdrlen); in nlmsg_attrlen()627 int totlen = NLMSG_ALIGN(nlh->nlmsg_len); in nlmsg_next()
405 return NLMSG_ALIGN(genlmsg_msg_size(payload)); in genlmsg_total_size()