/linux-4.4.14/include/uapi/linux/ |
D | netlink.h | 81 #define NLMSG_ALIGN(len) ( ((len)+NLMSG_ALIGNTO-1) & ~(NLMSG_ALIGNTO-1) ) macro 82 #define NLMSG_HDRLEN ((int) NLMSG_ALIGN(sizeof(struct nlmsghdr))) 84 #define NLMSG_SPACE(len) NLMSG_ALIGN(NLMSG_LENGTH(len)) 86 #define NLMSG_NEXT(nlh,len) ((len) -= NLMSG_ALIGN((nlh)->nlmsg_len), \ 87 (struct nlmsghdr*)(((char*)(nlh)) + NLMSG_ALIGN((nlh)->nlmsg_len)))
|
D | netfilter_decnet.h | 60 #define NFDN_RTMSG(r) ((unsigned char *)(r) + NLMSG_ALIGN(sizeof(struct nf_dn_rtmsg)))
|
D | if_addr.h | 65 #define IFA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct ifaddrmsg))))
|
D | genetlink.h | 18 #define GENL_HDRLEN NLMSG_ALIGN(sizeof(struct genlmsghdr))
|
D | rtnetlink.h | 319 #define RTM_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct rtmsg)))) 543 #define TCA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct tcmsg)))) 661 #define TA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct tcamsg))))
|
D | tipc_config.h | 366 #define TIPC_GENL_HDRLEN NLMSG_ALIGN(sizeof(struct tipc_genlmsghdr))
|
D | if_link.h | 160 #define IFLA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct ifinfomsg))))
|
/linux-4.4.14/net/decnet/netfilter/ |
D | dn_rtmsg.c | 42 size = NLMSG_ALIGN(rt_skb->len) + in dnrmg_build_message() 43 NLMSG_ALIGN(sizeof(struct nf_dn_rtmsg)); in dnrmg_build_message()
|
/linux-4.4.14/include/net/ |
D | netlink.h | 276 return NLMSG_ALIGN(nlmsg_msg_size(payload)); in nlmsg_total_size() 315 return (struct nlattr *) (data + NLMSG_ALIGN(hdrlen)); in nlmsg_attrdata() 325 return nlmsg_len(nlh) - NLMSG_ALIGN(hdrlen); in nlmsg_attrlen() 351 int totlen = NLMSG_ALIGN(nlh->nlmsg_len); in nlmsg_next()
|
D | genetlink.h | 387 return NLMSG_ALIGN(genlmsg_msg_size(payload)); in genlmsg_total_size()
|
/linux-4.4.14/include/uapi/linux/netfilter/ |
D | nfnetlink_compat.h | 59 + NLMSG_ALIGN(sizeof(struct nfgenmsg))))
|
/linux-4.4.14/drivers/scsi/ |
D | scsi_netlink.c | 64 rlen = NLMSG_ALIGN(nlh->nlmsg_len); in scsi_nl_rcv_msg()
|
D | scsi_transport_iscsi.c | 2627 skb_trim(skbstat, NLMSG_ALIGN(actual_size)); in iscsi_if_get_stats() 3073 skb_trim(skbchap, NLMSG_ALIGN(actual_size)); in iscsi_get_chap() 3480 skb_trim(skbhost_stats, NLMSG_ALIGN(actual_size)); in iscsi_get_host_stats() 3706 rlen = NLMSG_ALIGN(nlh->nlmsg_len); in iscsi_if_rx()
|
/linux-4.4.14/net/phonet/ |
D | pn_netlink.c | 43 skb = nlmsg_new(NLMSG_ALIGN(sizeof(struct ifaddrmsg)) + in phonet_address_notify() 207 skb = nlmsg_new(NLMSG_ALIGN(sizeof(struct ifaddrmsg)) + in rtm_phonet_notify()
|
/linux-4.4.14/drivers/staging/gdm72xx/ |
D | netlink_k.c | 24 #define NLMSG_HDRLEN ((int) NLMSG_ALIGN(sizeof(struct nlmsghdr)))
|
/linux-4.4.14/net/netfilter/ |
D | nfnetlink.c | 419 msglen = NLMSG_ALIGN(nlh->nlmsg_len); in nfnetlink_rcv_batch() 460 msglen = NLMSG_ALIGN(nlh->nlmsg_len); in nfnetlink_rcv()
|
D | nf_conntrack_netlink.c | 602 return NLMSG_ALIGN(sizeof(struct nfgenmsg)) in ctnetlink_nlmsg_size()
|
/linux-4.4.14/net/xfrm/ |
D | xfrm_user.c | 989 return NLMSG_ALIGN(4) in xfrm_spdinfo_msgsize() 1115 return NLMSG_ALIGN(4) in xfrm_sadinfo_msgsize() 1814 return NLMSG_ALIGN(sizeof(struct xfrm_aevent_id)) in xfrm_aevent_msgsize() 2274 return NLMSG_ALIGN(sizeof(struct xfrm_userpolicy_id)) in xfrm_migrate_msgsize() 2505 return NLMSG_ALIGN(sizeof(struct xfrm_user_expire)) in xfrm_expire_msgsize() 2569 int len = NLMSG_ALIGN(sizeof(struct xfrm_usersa_flush)); in xfrm_notify_sa_flush() 2641 len += NLMSG_ALIGN(headlen); in xfrm_notify_sa() 2709 return NLMSG_ALIGN(sizeof(struct xfrm_user_acquire)) in xfrm_acquire_msgsize() 2832 return NLMSG_ALIGN(sizeof(struct xfrm_user_polexpire)) in xfrm_polexpire_msgsize() 2902 len += NLMSG_ALIGN(headlen); in xfrm_notify_policy() [all …]
|
/linux-4.4.14/drivers/infiniband/core/ |
D | netlink.c | 215 msglen = NLMSG_ALIGN(nlh->nlmsg_len); in ibnl_rcv_reply_skb()
|
D | sa_query.c | 445 skb_put(skb, NLMSG_ALIGN(sizeof(*header))); in ib_nl_set_path_rec_attrs() 510 len += NLMSG_ALIGN(sizeof(struct rdma_ls_resolve_header)); in ib_nl_get_path_rec_attrs_len()
|
/linux-4.4.14/net/bridge/ |
D | br_mdb.c | 206 return NLMSG_ALIGN(sizeof(struct br_port_msg)) in rtnl_mdb_nlmsg_size() 287 return NLMSG_ALIGN(sizeof(struct br_port_msg)) in rtnl_rtr_nlmsg_size()
|
D | br_fdb.c | 676 return NLMSG_ALIGN(sizeof(struct ndmsg)) in fdb_nlmsg_size()
|
D | br_netlink.c | 149 return NLMSG_ALIGN(sizeof(struct ifinfomsg)) in br_nlmsg_size()
|
/linux-4.4.14/net/core/ |
D | sock_diag.c | 120 return NLMSG_ALIGN(sizeof(struct inet_diag_msg) in sock_diag_nlmsg_size()
|
D | fib_rules.c | 543 size_t payload = NLMSG_ALIGN(sizeof(struct fib_rule_hdr)) in fib_rule_nlmsg_size()
|
D | net_namespace.c | 586 return NLMSG_ALIGN(sizeof(struct rtgenmsg)) in rtnl_net_get_size()
|
D | rtnetlink.c | 878 return NLMSG_ALIGN(sizeof(struct ifinfomsg)) in if_nlmsg_size() 2603 return NLMSG_ALIGN(sizeof(struct ndmsg)) + nla_total_size(ETH_ALEN); in rtnl_fdb_nlmsg_size() 3153 return NLMSG_ALIGN(sizeof(struct ifinfomsg)) in bridge_nlmsg_size()
|
D | neighbour.c | 2827 return NLMSG_ALIGN(sizeof(struct ndmsg)) in neigh_nlmsg_size()
|
/linux-4.4.14/Documentation/accounting/ |
D | getdelays.c | 140 msg.n.nlmsg_len += NLMSG_ALIGN(na->nla_len); in send_cmd()
|
/linux-4.4.14/net/ipv6/ |
D | addrlabel.c | 519 return NLMSG_ALIGN(sizeof(struct ifaddrlblmsg)) in ip6addrlbl_msgsize()
|
D | addrconf.c | 472 int size = NLMSG_ALIGN(sizeof(struct netconfmsg)) in inet6_netconf_msgsize_devconf() 4292 return NLMSG_ALIGN(sizeof(struct ifaddrmsg)) in inet6_ifaddr_msgsize() 4699 return NLMSG_ALIGN(sizeof(struct ifinfomsg)) in inet6_if_nlmsg_size() 5058 return NLMSG_ALIGN(sizeof(struct prefixmsg)) in inet6_prefix_nlmsg_size()
|
D | ndisc.c | 1043 int base_size = NLMSG_ALIGN(sizeof(struct nduseroptmsg) in ndisc_ra_useropt()
|
D | ip6mr.c | 2402 NLMSG_ALIGN(sizeof(struct rtmsg)) in mr6_msgsize()
|
D | route.c | 3031 return NLMSG_ALIGN(sizeof(struct rtmsg)) in rt6_nlmsg_size()
|
/linux-4.4.14/net/openvswitch/ |
D | datapath.c | 384 size_t size = NLMSG_ALIGN(sizeof(struct ovs_header)) in upcall_msg_size() 726 size_t len = NLMSG_ALIGN(sizeof(struct ovs_header)); in ovs_flow_cmd_msg_size() 1432 size_t msgsize = NLMSG_ALIGN(sizeof(struct ovs_header)); in ovs_dp_cmd_msg_size()
|
/linux-4.4.14/net/netlink/ |
D | af_netlink.c | 2764 nlh = (struct nlmsghdr *)skb_put(skb, NLMSG_ALIGN(size)); in __nlmsg_put() 2770 if (!__builtin_constant_p(size) || NLMSG_ALIGN(size) - size != 0) in __nlmsg_put() 2771 memset(nlmsg_data(nlh) + len, 0, NLMSG_ALIGN(size) - size); in __nlmsg_put() 3024 msglen = NLMSG_ALIGN(nlh->nlmsg_len); in netlink_rcv_skb()
|
/linux-4.4.14/net/decnet/ |
D | dn_table.c | 274 size_t payload = NLMSG_ALIGN(sizeof(struct rtmsg)) in dn_fib_nlmsg_size()
|
D | dn_dev.c | 672 return NLMSG_ALIGN(sizeof(struct ifaddrmsg)) in dn_ifaddr_nlmsg_size()
|
/linux-4.4.14/net/ipv4/ |
D | devinet.c | 1480 return NLMSG_ALIGN(sizeof(struct ifaddrmsg)) in inet_nlmsg_size() 1736 int size = NLMSG_ALIGN(sizeof(struct netconfmsg)) in inet_netconf_msgsize_devconf()
|
D | fib_semantics.c | 360 size_t payload = NLMSG_ALIGN(sizeof(struct rtmsg)) in fib_nlmsg_size()
|
D | ipmr.c | 2307 NLMSG_ALIGN(sizeof(struct rtmsg)) in mroute_msgsize()
|
/linux-4.4.14/net/sched/ |
D | act_api.c | 1031 NLMSG_ALIGN(nla_len(tb1)), NULL) < 0) in find_dump_kind()
|
/linux-4.4.14/net/mpls/ |
D | af_mpls.c | 1333 NLMSG_ALIGN(sizeof(struct rtmsg)) in lfib_nlmsg_size()
|
/linux-4.4.14/drivers/net/ |
D | vxlan.c | 342 return NLMSG_ALIGN(sizeof(struct ndmsg)) in vxlan_nlmsg_size()
|