Home
last modified time | relevance | path

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

/include/uapi/linux/
A Dnetlink.h99 #define NLMSG_ALIGN(len) ( ((len)+NLMSG_ALIGNTO-1) & ~(NLMSG_ALIGNTO-1) ) macro
100 #define NLMSG_HDRLEN ((int) NLMSG_ALIGN(sizeof(struct nlmsghdr)))
102 #define NLMSG_SPACE(len) NLMSG_ALIGN(NLMSG_LENGTH(len))
104 #define NLMSG_NEXT(nlh,len) ((len) -= NLMSG_ALIGN((nlh)->nlmsg_len), \
106 NLMSG_ALIGN((nlh)->nlmsg_len)))
A Dif_addr.h69 #define IFA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct ifaddrmsg))))
A Dgenetlink.h19 #define GENL_HDRLEN NLMSG_ALIGN(sizeof(struct genlmsghdr))
A Drtnetlink.h407 #define RTM_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct rtmsg))))
663 #define TCA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct tcmsg))))
817 #define TA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct tcamsg))))
A Dtipc_config.h370 #define TIPC_GENL_HDRLEN NLMSG_ALIGN(sizeof(struct tipc_genlmsghdr))
A Dif_link.h399 #define IFLA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct ifinfomsg))))
/include/uapi/linux/netfilter/
A Dnfnetlink_compat.h60 + NLMSG_ALIGN(sizeof(struct nfgenmsg))))
/include/net/
A Dnetlink.h592 return NLMSG_ALIGN(nlmsg_msg_size(payload)); in nlmsg_total_size()
647 return (struct nlattr *) (data + NLMSG_ALIGN(hdrlen)); in nlmsg_attrdata()
657 return nlmsg_len(nlh) - NLMSG_ALIGN(hdrlen); in nlmsg_attrlen()
683 int totlen = NLMSG_ALIGN(nlh->nlmsg_len); in nlmsg_next()
1016 if (unlikely(skb_tailroom(skb) < NLMSG_ALIGN(size))) in nlmsg_append()
1019 if (NLMSG_ALIGN(size) - size) in nlmsg_append()
1021 NLMSG_ALIGN(size) - size); in nlmsg_append()
1022 return __skb_put(skb, NLMSG_ALIGN(size)); in nlmsg_append()
A Dgenetlink.h601 return NLMSG_ALIGN(genlmsg_msg_size(payload)); in genlmsg_total_size()

Completed in 49 milliseconds