/linux-4.1.27/include/uapi/linux/ |
D | netlink.h | 80 #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)))
|
D | netfilter_decnet.h | 60 #define NFDN_RTMSG(r) ((unsigned char *)(r) + NLMSG_ALIGN(sizeof(struct nf_dn_rtmsg)))
|
D | genetlink.h | 18 #define GENL_HDRLEN NLMSG_ALIGN(sizeof(struct genlmsghdr))
|
D | if_addr.h | 65 #define IFA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct ifaddrmsg))))
|
D | rtnetlink.h | 316 #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))))
|
D | tipc_config.h | 366 #define TIPC_GENL_HDRLEN NLMSG_ALIGN(sizeof(struct tipc_genlmsghdr))
|
D | if_link.h | 159 #define IFLA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct ifinfomsg))))
|
/linux-4.1.27/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.1.27/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 | 388 return NLMSG_ALIGN(genlmsg_msg_size(payload)); in genlmsg_total_size()
|
/linux-4.1.27/include/uapi/linux/netfilter/ |
D | nfnetlink_compat.h | 59 + NLMSG_ALIGN(sizeof(struct nfgenmsg))))
|
/linux-4.1.27/drivers/scsi/ |
D | scsi_netlink.c | 64 rlen = NLMSG_ALIGN(nlh->nlmsg_len); in scsi_nl_rcv_msg()
|
D | scsi_transport_iscsi.c | 2624 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/ |
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.1.27/drivers/staging/gdm72xx/ |
D | netlink_k.c | 24 #define NLMSG_HDRLEN ((int) NLMSG_ALIGN(sizeof(struct nlmsghdr)))
|
/linux-4.1.27/net/netfilter/ |
D | nfnetlink.c | 416 msglen = NLMSG_ALIGN(nlh->nlmsg_len); in nfnetlink_rcv_batch() 450 msglen = NLMSG_ALIGN(nlh->nlmsg_len); in nfnetlink_rcv()
|
D | nf_conntrack_netlink.c | 579 return NLMSG_ALIGN(sizeof(struct nfgenmsg)) in ctnetlink_nlmsg_size()
|
/linux-4.1.27/net/xfrm/ |
D | xfrm_user.c | 966 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/ |
D | getdelays.c | 140 msg.n.nlmsg_len += NLMSG_ALIGN(na->nla_len); in send_cmd()
|
/linux-4.1.27/net/ipv6/ |
D | addrlabel.c | 519 return NLMSG_ALIGN(sizeof(struct ifaddrlblmsg)) in ip6addrlbl_msgsize()
|
D | addrconf.c | 467 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()
|
D | ndisc.c | 1029 int base_size = NLMSG_ALIGN(sizeof(struct nduseroptmsg) in ndisc_ra_useropt()
|
D | ip6mr.c | 2407 NLMSG_ALIGN(sizeof(struct rtmsg)) in mr6_msgsize()
|
D | route.c | 2737 return NLMSG_ALIGN(sizeof(struct rtmsg)) in rt6_nlmsg_size()
|
/linux-4.1.27/net/bridge/ |
D | br_mdb.c | 205 return NLMSG_ALIGN(sizeof(struct br_port_msg)) in rtnl_mdb_nlmsg_size()
|
D | br_netlink.c | 122 return NLMSG_ALIGN(sizeof(struct ifinfomsg)) in br_nlmsg_size()
|
D | br_fdb.c | 646 return NLMSG_ALIGN(sizeof(struct ndmsg)) in fdb_nlmsg_size()
|
/linux-4.1.27/net/openvswitch/ |
D | datapath.c | 385 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/ |
D | af_netlink.c | 2663 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/ |
D | net_namespace.c | 535 return NLMSG_ALIGN(sizeof(struct rtgenmsg)) in rtnl_net_get_size()
|
D | fib_rules.c | 530 size_t payload = NLMSG_ALIGN(sizeof(struct fib_rule_hdr)) in fib_rule_nlmsg_size()
|
D | rtnetlink.c | 858 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()
|
D | neighbour.c | 2775 return NLMSG_ALIGN(sizeof(struct ndmsg)) in neigh_nlmsg_size()
|
/linux-4.1.27/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.1.27/net/mpls/ |
D | af_mpls.c | 893 NLMSG_ALIGN(sizeof(struct rtmsg)) in lfib_nlmsg_size()
|
/linux-4.1.27/net/sched/ |
D | act_api.c | 1013 NLMSG_ALIGN(nla_len(tb1)), NULL) < 0) in find_dump_kind()
|
/linux-4.1.27/net/ipv4/ |
D | devinet.c | 1477 return NLMSG_ALIGN(sizeof(struct ifaddrmsg)) in inet_nlmsg_size() 1731 int size = NLMSG_ALIGN(sizeof(struct netconfmsg)) in inet_netconf_msgsize_devconf()
|
D | fib_semantics.c | 358 size_t payload = NLMSG_ALIGN(sizeof(struct rtmsg)) in fib_nlmsg_size()
|
D | ipmr.c | 2315 NLMSG_ALIGN(sizeof(struct rtmsg)) in mroute_msgsize()
|
/linux-4.1.27/drivers/net/ |
D | vxlan.c | 376 return NLMSG_ALIGN(sizeof(struct ndmsg)) in vxlan_nlmsg_size()
|