Home
last modified time | relevance | path

Searched refs:NLMSG_ALIGN (Results 1 – 9 of 9) sorted by relevance

/include/uapi/linux/
Dnetlink.h90 #define NLMSG_ALIGN(len) ( ((len)+NLMSG_ALIGNTO-1) & ~(NLMSG_ALIGNTO-1) ) macro
91 #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)))
Dif_addr.h68 #define IFA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct ifaddrmsg))))
Dgenetlink.h19 #define GENL_HDRLEN NLMSG_ALIGN(sizeof(struct genlmsghdr))
Drtnetlink.h388 #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))))
Dtipc_config.h370 #define TIPC_GENL_HDRLEN NLMSG_ALIGN(sizeof(struct tipc_genlmsghdr))
Dif_link.h368 #define IFLA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct ifinfomsg))))
/include/uapi/linux/netfilter/
Dnfnetlink_compat.h60 + NLMSG_ALIGN(sizeof(struct nfgenmsg))))
/include/net/
Dnetlink.h552 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()
Dgenetlink.h405 return NLMSG_ALIGN(genlmsg_msg_size(payload)); in genlmsg_total_size()