NLMSG_ALIGN 166 drivers/infiniband/core/addr.c len += NLMSG_ALIGN(sizeof(*header)); NLMSG_ALIGN 180 drivers/infiniband/core/addr.c header = skb_put(skb, NLMSG_ALIGN(sizeof(*header))); NLMSG_ALIGN 248 drivers/infiniband/core/netlink.c msglen = NLMSG_ALIGN(nlh->nlmsg_len); NLMSG_ALIGN 762 drivers/infiniband/core/sa_query.c header = skb_put(skb, NLMSG_ALIGN(sizeof(*header))); NLMSG_ALIGN 827 drivers/infiniband/core/sa_query.c len += NLMSG_ALIGN(sizeof(struct rdma_ls_resolve_header)); NLMSG_ALIGN 1143 drivers/net/vrf.c sz = NLMSG_ALIGN(sizeof(struct fib_rule_hdr)); NLMSG_ALIGN 323 drivers/net/vxlan.c return NLMSG_ALIGN(sizeof(struct ndmsg)) NLMSG_ALIGN 50 drivers/scsi/scsi_netlink.c rlen = NLMSG_ALIGN(nlh->nlmsg_len); NLMSG_ALIGN 2613 drivers/scsi/scsi_transport_iscsi.c skb_trim(skbstat, NLMSG_ALIGN(actual_size)); NLMSG_ALIGN 3077 drivers/scsi/scsi_transport_iscsi.c skb_trim(skbchap, NLMSG_ALIGN(actual_size)); NLMSG_ALIGN 3484 drivers/scsi/scsi_transport_iscsi.c skb_trim(skbhost_stats, NLMSG_ALIGN(actual_size)); NLMSG_ALIGN 3718 drivers/scsi/scsi_transport_iscsi.c rlen = NLMSG_ALIGN(nlh->nlmsg_len); NLMSG_ALIGN 370 include/net/genetlink.h return NLMSG_ALIGN(genlmsg_msg_size(payload)); NLMSG_ALIGN 485 include/net/netlink.h return NLMSG_ALIGN(nlmsg_msg_size(payload)); NLMSG_ALIGN 524 include/net/netlink.h return (struct nlattr *) (data + NLMSG_ALIGN(hdrlen)); NLMSG_ALIGN 534 include/net/netlink.h return nlmsg_len(nlh) - NLMSG_ALIGN(hdrlen); NLMSG_ALIGN 560 include/net/netlink.h int totlen = NLMSG_ALIGN(nlh->nlmsg_len); NLMSG_ALIGN 19 include/uapi/linux/genetlink.h #define GENL_HDRLEN NLMSG_ALIGN(sizeof(struct genlmsghdr)) NLMSG_ALIGN 68 include/uapi/linux/if_addr.h #define IFA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct ifaddrmsg)))) NLMSG_ALIGN 178 include/uapi/linux/if_link.h #define IFLA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct ifinfomsg)))) NLMSG_ALIGN 60 include/uapi/linux/netfilter/nfnetlink_compat.h + NLMSG_ALIGN(sizeof(struct nfgenmsg)))) NLMSG_ALIGN 53 include/uapi/linux/netfilter_decnet.h #define NFDN_RTMSG(r) ((unsigned char *)(r) + NLMSG_ALIGN(sizeof(struct nf_dn_rtmsg))) NLMSG_ALIGN 91 include/uapi/linux/netlink.h #define NLMSG_HDRLEN ((int) NLMSG_ALIGN(sizeof(struct nlmsghdr))) NLMSG_ALIGN 93 include/uapi/linux/netlink.h #define NLMSG_SPACE(len) NLMSG_ALIGN(NLMSG_LENGTH(len)) NLMSG_ALIGN 95 include/uapi/linux/netlink.h #define NLMSG_NEXT(nlh,len) ((len) -= NLMSG_ALIGN((nlh)->nlmsg_len), \ NLMSG_ALIGN 96 include/uapi/linux/netlink.h (struct nlmsghdr*)(((char*)(nlh)) + NLMSG_ALIGN((nlh)->nlmsg_len))) NLMSG_ALIGN 358 include/uapi/linux/rtnetlink.h #define RTM_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct rtmsg)))) NLMSG_ALIGN 601 include/uapi/linux/rtnetlink.h #define TCA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct tcmsg)))) NLMSG_ALIGN 740 include/uapi/linux/rtnetlink.h #define TA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct tcamsg)))) NLMSG_ALIGN 374 include/uapi/linux/tipc_config.h #define TIPC_GENL_HDRLEN NLMSG_ALIGN(sizeof(struct tipc_genlmsghdr)) NLMSG_ALIGN 683 net/bridge/br_fdb.c return NLMSG_ALIGN(sizeof(struct ndmsg)) NLMSG_ALIGN 305 net/bridge/br_mdb.c return NLMSG_ALIGN(sizeof(struct br_port_msg)) NLMSG_ALIGN 497 net/bridge/br_mdb.c return NLMSG_ALIGN(sizeof(struct br_port_msg)) NLMSG_ALIGN 159 net/bridge/br_netlink.c return NLMSG_ALIGN(sizeof(struct ifinfomsg)) NLMSG_ALIGN 551 net/core/drop_monitor.c return NLMSG_ALIGN(size) + NLMSG_ALIGN 714 net/core/drop_monitor.c return NLMSG_ALIGN(size) + NLMSG_ALIGN 935 net/core/fib_rules.c size_t payload = NLMSG_ALIGN(sizeof(struct fib_rule_hdr)) NLMSG_ALIGN 2806 net/core/neighbour.c return NLMSG_ALIGN(sizeof(struct ndmsg)) NLMSG_ALIGN 2837 net/core/neighbour.c return NLMSG_ALIGN(sizeof(struct ndmsg)) NLMSG_ALIGN 785 net/core/net_namespace.c return NLMSG_ALIGN(sizeof(struct rtgenmsg)) NLMSG_ALIGN 986 net/core/rtnetlink.c return NLMSG_ALIGN(sizeof(struct ifinfomsg)) NLMSG_ALIGN 3593 net/core/rtnetlink.c return NLMSG_ALIGN(sizeof(struct ndmsg)) + NLMSG_ALIGN 4505 net/core/rtnetlink.c return NLMSG_ALIGN(sizeof(struct ifinfomsg)) NLMSG_ALIGN 115 net/core/sock_diag.c return NLMSG_ALIGN(sizeof(struct inet_diag_msg) NLMSG_ALIGN 677 net/decnet/dn_dev.c return NLMSG_ALIGN(sizeof(struct ifaddrmsg)) NLMSG_ALIGN 276 net/decnet/dn_table.c size_t payload = NLMSG_ALIGN(sizeof(struct rtmsg)) NLMSG_ALIGN 40 net/decnet/netfilter/dn_rtmsg.c size = NLMSG_ALIGN(rt_skb->len) + NLMSG_ALIGN 41 net/decnet/netfilter/dn_rtmsg.c NLMSG_ALIGN(sizeof(struct nf_dn_rtmsg)); NLMSG_ALIGN 1621 net/ipv4/devinet.c return NLMSG_ALIGN(sizeof(struct ifaddrmsg)) NLMSG_ALIGN 2004 net/ipv4/devinet.c int size = NLMSG_ALIGN(sizeof(struct netconfmsg)) NLMSG_ALIGN 457 net/ipv4/fib_semantics.c size_t payload = NLMSG_ALIGN(sizeof(struct rtmsg)) NLMSG_ALIGN 2376 net/ipv4/ipmr.c NLMSG_ALIGN(sizeof(struct rtmsg)) NLMSG_ALIGN 2423 net/ipv4/ipmr.c NLMSG_ALIGN(sizeof(struct rtgenmsg)) NLMSG_ALIGN 333 net/ipv4/nexthop.c size_t sz = NLMSG_ALIGN(sizeof(struct nhmsg)); NLMSG_ALIGN 491 net/ipv6/addrconf.c int size = NLMSG_ALIGN(sizeof(struct netconfmsg)) NLMSG_ALIGN 4881 net/ipv6/addrconf.c return NLMSG_ALIGN(sizeof(struct ifaddrmsg)) NLMSG_ALIGN 5492 net/ipv6/addrconf.c return NLMSG_ALIGN(sizeof(struct ifinfomsg)) NLMSG_ALIGN 5921 net/ipv6/addrconf.c return NLMSG_ALIGN(sizeof(struct prefixmsg)) NLMSG_ALIGN 521 net/ipv6/addrlabel.c return NLMSG_ALIGN(sizeof(struct ifaddrlblmsg)) NLMSG_ALIGN 2375 net/ipv6/ip6mr.c NLMSG_ALIGN(sizeof(struct rtmsg)) NLMSG_ALIGN 2421 net/ipv6/ip6mr.c NLMSG_ALIGN(sizeof(struct rtgenmsg)) NLMSG_ALIGN 1129 net/ipv6/ndisc.c int base_size = NLMSG_ALIGN(sizeof(struct nduseroptmsg) NLMSG_ALIGN 5351 net/ipv6/route.c return NLMSG_ALIGN(sizeof(struct rtmsg)) NLMSG_ALIGN 1168 net/mpls/af_mpls.c int size = NLMSG_ALIGN(sizeof(struct netconfmsg)) NLMSG_ALIGN 2217 net/mpls/af_mpls.c NLMSG_ALIGN(sizeof(struct rtmsg)) NLMSG_ALIGN 650 net/netfilter/nf_conntrack_netlink.c return NLMSG_ALIGN(sizeof(struct nfgenmsg)) NLMSG_ALIGN 472 net/netfilter/nfnetlink.c msglen = NLMSG_ALIGN(nlh->nlmsg_len); NLMSG_ALIGN 519 net/netfilter/nfnetlink.c msglen = NLMSG_ALIGN(nlh->nlmsg_len); NLMSG_ALIGN 2171 net/netlink/af_netlink.c nlh = skb_put(skb, NLMSG_ALIGN(size)); NLMSG_ALIGN 2177 net/netlink/af_netlink.c if (!__builtin_constant_p(size) || NLMSG_ALIGN(size) - size != 0) NLMSG_ALIGN 2178 net/netlink/af_netlink.c memset(nlmsg_data(nlh) + len, 0, NLMSG_ALIGN(size) - size); NLMSG_ALIGN 2487 net/netlink/af_netlink.c msglen = NLMSG_ALIGN(nlh->nlmsg_len); NLMSG_ALIGN 349 net/openvswitch/datapath.c size_t size = NLMSG_ALIGN(sizeof(struct ovs_header)) NLMSG_ALIGN 705 net/openvswitch/datapath.c size_t len = NLMSG_ALIGN(sizeof(struct ovs_header)); NLMSG_ALIGN 1472 net/openvswitch/datapath.c size_t msgsize = NLMSG_ALIGN(sizeof(struct ovs_header)); NLMSG_ALIGN 30 net/phonet/pn_netlink.c skb = nlmsg_new(NLMSG_ALIGN(sizeof(struct ifaddrmsg)) + NLMSG_ALIGN 196 net/phonet/pn_netlink.c skb = nlmsg_new(NLMSG_ALIGN(sizeof(struct ifaddrmsg)) + NLMSG_ALIGN 1443 net/sched/act_api.c if (nla_parse_deprecated(tb, TCA_ACT_MAX_PRIO, nla_data(tb1), NLMSG_ALIGN(nla_len(tb1)), NULL, NULL) < 0) NLMSG_ALIGN 1097 net/xfrm/xfrm_user.c return NLMSG_ALIGN(4) NLMSG_ALIGN 1224 net/xfrm/xfrm_user.c return NLMSG_ALIGN(4) NLMSG_ALIGN 1966 net/xfrm/xfrm_user.c return NLMSG_ALIGN(sizeof(struct xfrm_aevent_id)) NLMSG_ALIGN 2446 net/xfrm/xfrm_user.c return NLMSG_ALIGN(sizeof(struct xfrm_userpolicy_id)) NLMSG_ALIGN 2694 net/xfrm/xfrm_user.c return NLMSG_ALIGN(sizeof(struct xfrm_user_expire)) NLMSG_ALIGN 2765 net/xfrm/xfrm_user.c int len = NLMSG_ALIGN(sizeof(struct xfrm_usersa_flush)); NLMSG_ALIGN 2846 net/xfrm/xfrm_user.c len += NLMSG_ALIGN(headlen); NLMSG_ALIGN 2915 net/xfrm/xfrm_user.c return NLMSG_ALIGN(sizeof(struct xfrm_user_acquire)) NLMSG_ALIGN 3041 net/xfrm/xfrm_user.c return NLMSG_ALIGN(sizeof(struct xfrm_user_polexpire)) NLMSG_ALIGN 3115 net/xfrm/xfrm_user.c len += NLMSG_ALIGN(headlen); NLMSG_ALIGN 3217 net/xfrm/xfrm_user.c return NLMSG_ALIGN(sizeof(struct xfrm_user_report)); NLMSG_ALIGN 3263 net/xfrm/xfrm_user.c return NLMSG_ALIGN(sizeof(struct xfrm_user_mapping)); NLMSG_ALIGN 5570 security/selinux/hooks.c msg_len = NLMSG_ALIGN(nlh->nlmsg_len); NLMSG_ALIGN 141 tools/accounting/getdelays.c msg.n.nlmsg_len += NLMSG_ALIGN(na->nla_len); NLMSG_ALIGN 178 tools/include/uapi/linux/if_link.h #define IFLA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct ifinfomsg)))) NLMSG_ALIGN 91 tools/include/uapi/linux/netlink.h #define NLMSG_HDRLEN ((int) NLMSG_ALIGN(sizeof(struct nlmsghdr))) NLMSG_ALIGN 93 tools/include/uapi/linux/netlink.h #define NLMSG_SPACE(len) NLMSG_ALIGN(NLMSG_LENGTH(len)) NLMSG_ALIGN 95 tools/include/uapi/linux/netlink.h #define NLMSG_NEXT(nlh,len) ((len) -= NLMSG_ALIGN((nlh)->nlmsg_len), \ NLMSG_ALIGN 96 tools/include/uapi/linux/netlink.h (struct nlmsghdr*)(((char*)(nlh)) + NLMSG_ALIGN((nlh)->nlmsg_len))) NLMSG_ALIGN 157 tools/lib/bpf/netlink.c + NLMSG_ALIGN(req.nh.nlmsg_len)); NLMSG_ALIGN 198 tools/lib/bpf/netlink.c attr = (struct nlattr *) ((void *) ifi + NLMSG_ALIGN(sizeof(*ifi))); NLMSG_ALIGN 315 tools/lib/bpf/netlink.c attr = (struct nlattr *) ((void *) t + NLMSG_ALIGN(sizeof(*t))); NLMSG_ALIGN 354 tools/lib/bpf/netlink.c attr = (struct nlattr *) ((void *) t + NLMSG_ALIGN(sizeof(*t))); NLMSG_ALIGN 393 tools/lib/bpf/netlink.c attr = (struct nlattr *) ((void *) t + NLMSG_ALIGN(sizeof(*t))); NLMSG_ALIGN 364 tools/testing/selftests/net/udpgso.c char data[NLMSG_ALIGN(sizeof(*nh)) + NLMSG_ALIGN 365 tools/testing/selftests/net/udpgso.c NLMSG_ALIGN(sizeof(*rt)) + NLMSG_ALIGN 366 tools/testing/selftests/net/udpgso.c NLMSG_ALIGN(RTA_LENGTH(sizeof(addr6))) + NLMSG_ALIGN 367 tools/testing/selftests/net/udpgso.c NLMSG_ALIGN(RTA_LENGTH(sizeof(int))) + NLMSG_ALIGN 368 tools/testing/selftests/net/udpgso.c NLMSG_ALIGN(RTA_LENGTH(0) + RTA_LENGTH(sizeof(int)))]; NLMSG_ALIGN 382 tools/testing/selftests/net/udpgso.c off += NLMSG_ALIGN(sizeof(*nh)); NLMSG_ALIGN 391 tools/testing/selftests/net/udpgso.c off += NLMSG_ALIGN(sizeof(*rt)); NLMSG_ALIGN 400 tools/testing/selftests/net/udpgso.c off += NLMSG_ALIGN(rta->rta_len); NLMSG_ALIGN 406 tools/testing/selftests/net/udpgso.c off += NLMSG_ALIGN(rta->rta_len); NLMSG_ALIGN 412 tools/testing/selftests/net/udpgso.c off += NLMSG_ALIGN(rta->rta_len);