Home
last modified time | relevance | path

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

/linux-4.4.14/include/uapi/linux/
Dnetlink.h81 #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)))
Dnetfilter_decnet.h60 #define NFDN_RTMSG(r) ((unsigned char *)(r) + NLMSG_ALIGN(sizeof(struct nf_dn_rtmsg)))
Dif_addr.h65 #define IFA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct ifaddrmsg))))
Dgenetlink.h18 #define GENL_HDRLEN NLMSG_ALIGN(sizeof(struct genlmsghdr))
Drtnetlink.h319 #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))))
Dtipc_config.h366 #define TIPC_GENL_HDRLEN NLMSG_ALIGN(sizeof(struct tipc_genlmsghdr))
Dif_link.h160 #define IFLA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct ifinfomsg))))
/linux-4.4.14/net/decnet/netfilter/
Ddn_rtmsg.c42 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/
Dnetlink.h276 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()
Dgenetlink.h387 return NLMSG_ALIGN(genlmsg_msg_size(payload)); in genlmsg_total_size()
/linux-4.4.14/include/uapi/linux/netfilter/
Dnfnetlink_compat.h59 + NLMSG_ALIGN(sizeof(struct nfgenmsg))))
/linux-4.4.14/drivers/scsi/
Dscsi_netlink.c64 rlen = NLMSG_ALIGN(nlh->nlmsg_len); in scsi_nl_rcv_msg()
Dscsi_transport_iscsi.c2627 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/
Dpn_netlink.c43 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/
Dnetlink_k.c24 #define NLMSG_HDRLEN ((int) NLMSG_ALIGN(sizeof(struct nlmsghdr)))
/linux-4.4.14/net/netfilter/
Dnfnetlink.c419 msglen = NLMSG_ALIGN(nlh->nlmsg_len); in nfnetlink_rcv_batch()
460 msglen = NLMSG_ALIGN(nlh->nlmsg_len); in nfnetlink_rcv()
Dnf_conntrack_netlink.c602 return NLMSG_ALIGN(sizeof(struct nfgenmsg)) in ctnetlink_nlmsg_size()
/linux-4.4.14/net/xfrm/
Dxfrm_user.c989 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/
Dnetlink.c215 msglen = NLMSG_ALIGN(nlh->nlmsg_len); in ibnl_rcv_reply_skb()
Dsa_query.c445 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/
Dbr_mdb.c206 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()
Dbr_fdb.c676 return NLMSG_ALIGN(sizeof(struct ndmsg)) in fdb_nlmsg_size()
Dbr_netlink.c149 return NLMSG_ALIGN(sizeof(struct ifinfomsg)) in br_nlmsg_size()
/linux-4.4.14/net/core/
Dsock_diag.c120 return NLMSG_ALIGN(sizeof(struct inet_diag_msg) in sock_diag_nlmsg_size()
Dfib_rules.c543 size_t payload = NLMSG_ALIGN(sizeof(struct fib_rule_hdr)) in fib_rule_nlmsg_size()
Dnet_namespace.c586 return NLMSG_ALIGN(sizeof(struct rtgenmsg)) in rtnl_net_get_size()
Drtnetlink.c878 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()
Dneighbour.c2827 return NLMSG_ALIGN(sizeof(struct ndmsg)) in neigh_nlmsg_size()
/linux-4.4.14/Documentation/accounting/
Dgetdelays.c140 msg.n.nlmsg_len += NLMSG_ALIGN(na->nla_len); in send_cmd()
/linux-4.4.14/net/ipv6/
Daddrlabel.c519 return NLMSG_ALIGN(sizeof(struct ifaddrlblmsg)) in ip6addrlbl_msgsize()
Daddrconf.c472 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()
Dndisc.c1043 int base_size = NLMSG_ALIGN(sizeof(struct nduseroptmsg) in ndisc_ra_useropt()
Dip6mr.c2402 NLMSG_ALIGN(sizeof(struct rtmsg)) in mr6_msgsize()
Droute.c3031 return NLMSG_ALIGN(sizeof(struct rtmsg)) in rt6_nlmsg_size()
/linux-4.4.14/net/openvswitch/
Ddatapath.c384 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/
Daf_netlink.c2764 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/
Ddn_table.c274 size_t payload = NLMSG_ALIGN(sizeof(struct rtmsg)) in dn_fib_nlmsg_size()
Ddn_dev.c672 return NLMSG_ALIGN(sizeof(struct ifaddrmsg)) in dn_ifaddr_nlmsg_size()
/linux-4.4.14/net/ipv4/
Ddevinet.c1480 return NLMSG_ALIGN(sizeof(struct ifaddrmsg)) in inet_nlmsg_size()
1736 int size = NLMSG_ALIGN(sizeof(struct netconfmsg)) in inet_netconf_msgsize_devconf()
Dfib_semantics.c360 size_t payload = NLMSG_ALIGN(sizeof(struct rtmsg)) in fib_nlmsg_size()
Dipmr.c2307 NLMSG_ALIGN(sizeof(struct rtmsg)) in mroute_msgsize()
/linux-4.4.14/net/sched/
Dact_api.c1031 NLMSG_ALIGN(nla_len(tb1)), NULL) < 0) in find_dump_kind()
/linux-4.4.14/net/mpls/
Daf_mpls.c1333 NLMSG_ALIGN(sizeof(struct rtmsg)) in lfib_nlmsg_size()
/linux-4.4.14/drivers/net/
Dvxlan.c342 return NLMSG_ALIGN(sizeof(struct ndmsg)) in vxlan_nlmsg_size()