NLMSG_ALIGN 17 include/linux/genetlink.h #define GENL_HDRLEN NLMSG_ALIGN(sizeof(struct genlmsghdr)) NLMSG_ALIGN 58 include/linux/if_addr.h #define IFA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct ifaddrmsg)))) NLMSG_ALIGN 91 include/linux/if_link.h #define IFLA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct ifinfomsg)))) NLMSG_ALIGN 57 include/linux/netfilter/nfnetlink_compat.h + NLMSG_ALIGN(sizeof(struct nfgenmsg)))) NLMSG_ALIGN 57 include/linux/netfilter_decnet.h #define NFDN_RTMSG(r) ((unsigned char *)(r) + NLMSG_ALIGN(sizeof(struct nf_dn_rtmsg))) NLMSG_ALIGN 79 include/linux/netlink.h #define NLMSG_HDRLEN ((int) NLMSG_ALIGN(sizeof(struct nlmsghdr))) NLMSG_ALIGN 80 include/linux/netlink.h #define NLMSG_LENGTH(len) ((len)+NLMSG_ALIGN(NLMSG_HDRLEN)) NLMSG_ALIGN 81 include/linux/netlink.h #define NLMSG_SPACE(len) NLMSG_ALIGN(NLMSG_LENGTH(len)) NLMSG_ALIGN 83 include/linux/netlink.h #define NLMSG_NEXT(nlh,len) ((len) -= NLMSG_ALIGN((nlh)->nlmsg_len), \ NLMSG_ALIGN 84 include/linux/netlink.h (struct nlmsghdr*)(((char*)(nlh)) + NLMSG_ALIGN((nlh)->nlmsg_len))) NLMSG_ALIGN 239 include/linux/netlink.h nlh = (struct nlmsghdr*)skb_put(skb, NLMSG_ALIGN(size)); NLMSG_ALIGN 245 include/linux/netlink.h memset(NLMSG_DATA(nlh) + len, 0, NLMSG_ALIGN(size) - size); NLMSG_ALIGN 282 include/linux/rtnetlink.h #define RTM_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct rtmsg)))) NLMSG_ALIGN 491 include/linux/rtnetlink.h #define TCA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct tcmsg)))) NLMSG_ALIGN 600 include/linux/rtnetlink.h #define TA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct tcamsg)))) NLMSG_ALIGN 688 include/linux/rtnetlink.h ({ struct rtattr *__nest = (void *)(start) + NLMSG_ALIGN((start)->rta_len); \ NLMSG_ALIGN 376 include/linux/tipc_config.h #define TIPC_GENL_HDRLEN NLMSG_ALIGN(sizeof(struct tipc_genlmsghdr)) NLMSG_ALIGN 238 include/net/genetlink.h return NLMSG_ALIGN(genlmsg_msg_size(payload)); NLMSG_ALIGN 276 include/net/netlink.h return NLMSG_ALIGN(nlmsg_msg_size(payload)); NLMSG_ALIGN 315 include/net/netlink.h return (struct nlattr *) (data + NLMSG_ALIGN(hdrlen)); NLMSG_ALIGN 325 include/net/netlink.h return nlmsg_len(nlh) - NLMSG_ALIGN(hdrlen); NLMSG_ALIGN 350 include/net/netlink.h int totlen = NLMSG_ALIGN(nlh->nlmsg_len); NLMSG_ALIGN 937 kernel/audit.c rlen = NLMSG_ALIGN(nlh->nlmsg_len); NLMSG_ALIGN 21 net/bridge/br_netlink.c return NLMSG_ALIGN(sizeof(struct ifinfomsg)) NLMSG_ALIGN 162 net/bridge/netfilter/ebt_ulog.c size - NLMSG_ALIGN(sizeof(*nlh))); NLMSG_ALIGN 449 net/core/fib_rules.c size_t payload = NLMSG_ALIGN(sizeof(struct fib_rule_hdr)) NLMSG_ALIGN 2520 net/core/neighbour.c return NLMSG_ALIGN(sizeof(struct ndmsg)) NLMSG_ALIGN 587 net/core/rtnetlink.c return NLMSG_ALIGN(sizeof(struct ifinfomsg)) NLMSG_ALIGN 1310 net/core/rtnetlink.c int attrlen = nlh->nlmsg_len - NLMSG_ALIGN(min_len); NLMSG_ALIGN 1311 net/core/rtnetlink.c struct rtattr *attr = (void*)nlh + NLMSG_ALIGN(min_len); NLMSG_ALIGN 721 net/decnet/dn_dev.c return NLMSG_ALIGN(sizeof(struct ifaddrmsg)) NLMSG_ALIGN 269 net/decnet/dn_table.c size_t payload = NLMSG_ALIGN(sizeof(struct rtmsg)) NLMSG_ALIGN 42 net/decnet/netfilter/dn_rtmsg.c size += NLMSG_ALIGN(sizeof(struct nf_dn_rtmsg)); NLMSG_ALIGN 1118 net/ipv4/devinet.c return NLMSG_ALIGN(sizeof(struct ifaddrmsg)) NLMSG_ALIGN 279 net/ipv4/fib_semantics.c size_t payload = NLMSG_ALIGN(sizeof(struct rtmsg)) NLMSG_ALIGN 3374 net/ipv6/addrconf.c return NLMSG_ALIGN(sizeof(struct ifaddrmsg)) NLMSG_ALIGN 3698 net/ipv6/addrconf.c return NLMSG_ALIGN(sizeof(struct ifinfomsg)) NLMSG_ALIGN 3863 net/ipv6/addrconf.c return NLMSG_ALIGN(sizeof(struct prefixmsg)) NLMSG_ALIGN 531 net/ipv6/addrlabel.c return (NLMSG_ALIGN(sizeof(struct ifaddrlblmsg)) NLMSG_ALIGN 1030 net/ipv6/ndisc.c int base_size = NLMSG_ALIGN(sizeof(struct nduseroptmsg) NLMSG_ALIGN 2119 net/ipv6/route.c return NLMSG_ALIGN(sizeof(struct rtmsg)) NLMSG_ALIGN 158 net/netfilter/nfnetlink.c struct nlattr *attr = (void *)nlh + NLMSG_ALIGN(min_len); NLMSG_ALIGN 159 net/netfilter/nfnetlink.c int attrlen = nlh->nlmsg_len - NLMSG_ALIGN(min_len); NLMSG_ALIGN 1699 net/netlink/af_netlink.c msglen = NLMSG_ALIGN(nlh->nlmsg_len); NLMSG_ALIGN 40 net/phonet/pn_netlink.c skb = nlmsg_new(NLMSG_ALIGN(sizeof(struct ifaddrmsg)) + NLMSG_ALIGN 1020 net/sched/act_api.c NLMSG_ALIGN(nla_len(tb1)), NULL) < 0) NLMSG_ALIGN 664 net/xfrm/xfrm_user.c return NLMSG_ALIGN(4) NLMSG_ALIGN 723 net/xfrm/xfrm_user.c return NLMSG_ALIGN(4) NLMSG_ALIGN 1415 net/xfrm/xfrm_user.c return NLMSG_ALIGN(sizeof(struct xfrm_aevent_id)) NLMSG_ALIGN 1826 net/xfrm/xfrm_user.c return NLMSG_ALIGN(sizeof(struct xfrm_userpolicy_id)) NLMSG_ALIGN 2015 net/xfrm/xfrm_user.c return NLMSG_ALIGN(sizeof(struct xfrm_user_expire)); NLMSG_ALIGN 2067 net/xfrm/xfrm_user.c int len = NLMSG_ALIGN(sizeof(struct xfrm_usersa_flush)); NLMSG_ALIGN 2126 net/xfrm/xfrm_user.c len += NLMSG_ALIGN(headlen); NLMSG_ALIGN 2193 net/xfrm/xfrm_user.c return NLMSG_ALIGN(sizeof(struct xfrm_user_acquire)) NLMSG_ALIGN 2311 net/xfrm/xfrm_user.c return NLMSG_ALIGN(sizeof(struct xfrm_user_polexpire)) NLMSG_ALIGN 2374 net/xfrm/xfrm_user.c len += NLMSG_ALIGN(headlen); NLMSG_ALIGN 2464 net/xfrm/xfrm_user.c return NLMSG_ALIGN(sizeof(struct xfrm_user_report));