Home
last modified time | relevance | path

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

/linux-4.1.27/include/uapi/linux/
Dnetlink.h80 #define NLMSG_ALIGN(len) ( ((len)+NLMSG_ALIGNTO-1) & ~(NLMSG_ALIGNTO-1) ) macro
81 #define NLMSG_HDRLEN ((int) NLMSG_ALIGN(sizeof(struct nlmsghdr)))
83 #define NLMSG_SPACE(len) NLMSG_ALIGN(NLMSG_LENGTH(len))
85 #define NLMSG_NEXT(nlh,len) ((len) -= NLMSG_ALIGN((nlh)->nlmsg_len), \
86 (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)))
Dgenetlink.h18 #define GENL_HDRLEN NLMSG_ALIGN(sizeof(struct genlmsghdr))
Dif_addr.h65 #define IFA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct ifaddrmsg))))
Drtnetlink.h316 #define RTM_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct rtmsg))))
534 #define TCA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct tcmsg))))
652 #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.h159 #define IFLA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct ifinfomsg))))
/linux-4.1.27/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.1.27/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.h388 return NLMSG_ALIGN(genlmsg_msg_size(payload)); in genlmsg_total_size()
/linux-4.1.27/include/uapi/linux/netfilter/
Dnfnetlink_compat.h59 + NLMSG_ALIGN(sizeof(struct nfgenmsg))))
/linux-4.1.27/drivers/scsi/
Dscsi_netlink.c64 rlen = NLMSG_ALIGN(nlh->nlmsg_len); in scsi_nl_rcv_msg()
Dscsi_transport_iscsi.c2624 skb_trim(skbstat, NLMSG_ALIGN(actual_size)); in iscsi_if_get_stats()
3069 skb_trim(skbchap, NLMSG_ALIGN(actual_size)); in iscsi_get_chap()
3476 skb_trim(skbhost_stats, NLMSG_ALIGN(actual_size)); in iscsi_get_host_stats()
3702 rlen = NLMSG_ALIGN(nlh->nlmsg_len); in iscsi_if_rx()
/linux-4.1.27/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.1.27/drivers/staging/gdm72xx/
Dnetlink_k.c24 #define NLMSG_HDRLEN ((int) NLMSG_ALIGN(sizeof(struct nlmsghdr)))
/linux-4.1.27/net/netfilter/
Dnfnetlink.c416 msglen = NLMSG_ALIGN(nlh->nlmsg_len); in nfnetlink_rcv_batch()
450 msglen = NLMSG_ALIGN(nlh->nlmsg_len); in nfnetlink_rcv()
Dnf_conntrack_netlink.c579 return NLMSG_ALIGN(sizeof(struct nfgenmsg)) in ctnetlink_nlmsg_size()
/linux-4.1.27/net/xfrm/
Dxfrm_user.c966 return NLMSG_ALIGN(4) in xfrm_spdinfo_msgsize()
1092 return NLMSG_ALIGN(4) in xfrm_sadinfo_msgsize()
1791 return NLMSG_ALIGN(sizeof(struct xfrm_aevent_id)) in xfrm_aevent_msgsize()
2249 return NLMSG_ALIGN(sizeof(struct xfrm_userpolicy_id)) in xfrm_migrate_msgsize()
2480 return NLMSG_ALIGN(sizeof(struct xfrm_user_expire)) in xfrm_expire_msgsize()
2544 int len = NLMSG_ALIGN(sizeof(struct xfrm_usersa_flush)); in xfrm_notify_sa_flush()
2616 len += NLMSG_ALIGN(headlen); in xfrm_notify_sa()
2684 return NLMSG_ALIGN(sizeof(struct xfrm_user_acquire)) in xfrm_acquire_msgsize()
2807 return NLMSG_ALIGN(sizeof(struct xfrm_user_polexpire)) in xfrm_polexpire_msgsize()
2877 len += NLMSG_ALIGN(headlen); in xfrm_notify_policy()
[all …]
/linux-4.1.27/Documentation/accounting/
Dgetdelays.c140 msg.n.nlmsg_len += NLMSG_ALIGN(na->nla_len); in send_cmd()
/linux-4.1.27/net/ipv6/
Daddrlabel.c519 return NLMSG_ALIGN(sizeof(struct ifaddrlblmsg)) in ip6addrlbl_msgsize()
Daddrconf.c467 int size = NLMSG_ALIGN(sizeof(struct netconfmsg)) in inet6_netconf_msgsize_devconf()
4209 return NLMSG_ALIGN(sizeof(struct ifaddrmsg)) in inet6_ifaddr_msgsize()
4614 return NLMSG_ALIGN(sizeof(struct ifinfomsg)) in inet6_if_nlmsg_size()
4958 return NLMSG_ALIGN(sizeof(struct prefixmsg)) in inet6_prefix_nlmsg_size()
Dndisc.c1029 int base_size = NLMSG_ALIGN(sizeof(struct nduseroptmsg) in ndisc_ra_useropt()
Dip6mr.c2407 NLMSG_ALIGN(sizeof(struct rtmsg)) in mr6_msgsize()
Droute.c2737 return NLMSG_ALIGN(sizeof(struct rtmsg)) in rt6_nlmsg_size()
/linux-4.1.27/net/bridge/
Dbr_mdb.c205 return NLMSG_ALIGN(sizeof(struct br_port_msg)) in rtnl_mdb_nlmsg_size()
Dbr_netlink.c122 return NLMSG_ALIGN(sizeof(struct ifinfomsg)) in br_nlmsg_size()
Dbr_fdb.c646 return NLMSG_ALIGN(sizeof(struct ndmsg)) in fdb_nlmsg_size()
/linux-4.1.27/net/openvswitch/
Ddatapath.c385 size_t size = NLMSG_ALIGN(sizeof(struct ovs_header)) in upcall_msg_size()
683 size_t len = NLMSG_ALIGN(sizeof(struct ovs_header)); in ovs_flow_cmd_msg_size()
1384 size_t msgsize = NLMSG_ALIGN(sizeof(struct ovs_header)); in ovs_dp_cmd_msg_size()
/linux-4.1.27/net/netlink/
Daf_netlink.c2663 nlh = (struct nlmsghdr *)skb_put(skb, NLMSG_ALIGN(size)); in __nlmsg_put()
2669 if (!__builtin_constant_p(size) || NLMSG_ALIGN(size) - size != 0) in __nlmsg_put()
2670 memset(nlmsg_data(nlh) + len, 0, NLMSG_ALIGN(size) - size); in __nlmsg_put()
2917 msglen = NLMSG_ALIGN(nlh->nlmsg_len); in netlink_rcv_skb()
/linux-4.1.27/net/core/
Dnet_namespace.c535 return NLMSG_ALIGN(sizeof(struct rtgenmsg)) in rtnl_net_get_size()
Dfib_rules.c530 size_t payload = NLMSG_ALIGN(sizeof(struct fib_rule_hdr)) in fib_rule_nlmsg_size()
Drtnetlink.c858 return NLMSG_ALIGN(sizeof(struct ifinfomsg)) in if_nlmsg_size()
2471 return NLMSG_ALIGN(sizeof(struct ndmsg)) + nla_total_size(ETH_ALEN); in rtnl_fdb_nlmsg_size()
3003 return NLMSG_ALIGN(sizeof(struct ifinfomsg)) in bridge_nlmsg_size()
Dneighbour.c2775 return NLMSG_ALIGN(sizeof(struct ndmsg)) in neigh_nlmsg_size()
/linux-4.1.27/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.1.27/net/mpls/
Daf_mpls.c893 NLMSG_ALIGN(sizeof(struct rtmsg)) in lfib_nlmsg_size()
/linux-4.1.27/net/sched/
Dact_api.c1013 NLMSG_ALIGN(nla_len(tb1)), NULL) < 0) in find_dump_kind()
/linux-4.1.27/net/ipv4/
Ddevinet.c1477 return NLMSG_ALIGN(sizeof(struct ifaddrmsg)) in inet_nlmsg_size()
1731 int size = NLMSG_ALIGN(sizeof(struct netconfmsg)) in inet_netconf_msgsize_devconf()
Dfib_semantics.c358 size_t payload = NLMSG_ALIGN(sizeof(struct rtmsg)) in fib_nlmsg_size()
Dipmr.c2315 NLMSG_ALIGN(sizeof(struct rtmsg)) in mroute_msgsize()
/linux-4.1.27/drivers/net/
Dvxlan.c376 return NLMSG_ALIGN(sizeof(struct ndmsg)) in vxlan_nlmsg_size()