Home
last modified time | relevance | path

Searched refs:nla_total_size (Results 1 – 67 of 67) sorted by relevance

/linux-4.4.14/net/bridge/
Dbr_netlink.c114 return num_vlan_infos * nla_total_size(sizeof(struct bridge_vlan_info)); in br_get_link_af_size_filtered()
119 return nla_total_size(1) /* IFLA_BRPORT_STATE */ in br_port_info_size()
120 + nla_total_size(2) /* IFLA_BRPORT_PRIORITY */ in br_port_info_size()
121 + nla_total_size(4) /* IFLA_BRPORT_COST */ in br_port_info_size()
122 + nla_total_size(1) /* IFLA_BRPORT_MODE */ in br_port_info_size()
123 + nla_total_size(1) /* IFLA_BRPORT_GUARD */ in br_port_info_size()
124 + nla_total_size(1) /* IFLA_BRPORT_PROTECT */ in br_port_info_size()
125 + nla_total_size(1) /* IFLA_BRPORT_FAST_LEAVE */ in br_port_info_size()
126 + nla_total_size(1) /* IFLA_BRPORT_LEARNING */ in br_port_info_size()
127 + nla_total_size(1) /* IFLA_BRPORT_UNICAST_FLOOD */ in br_port_info_size()
[all …]
Dbr_fdb.c677 + nla_total_size(ETH_ALEN) /* NDA_LLADDR */ in fdb_nlmsg_size()
678 + nla_total_size(sizeof(u32)) /* NDA_MASTER */ in fdb_nlmsg_size()
679 + nla_total_size(sizeof(u16)) /* NDA_VLAN */ in fdb_nlmsg_size()
680 + nla_total_size(sizeof(struct nda_cacheinfo)); in fdb_nlmsg_size()
Dbr_mdb.c207 + nla_total_size(sizeof(struct br_mdb_entry)); in rtnl_mdb_nlmsg_size()
288 + nla_total_size(sizeof(__u32)); in rtnl_rtr_nlmsg_size()
/linux-4.4.14/drivers/net/bonding/
Dbond_netlink.c25 return nla_total_size(sizeof(u8)) + /* IFLA_BOND_SLAVE_STATE */ in bond_get_slave_size()
26 nla_total_size(sizeof(u8)) + /* IFLA_BOND_SLAVE_MII_STATUS */ in bond_get_slave_size()
27 nla_total_size(sizeof(u32)) + /* IFLA_BOND_SLAVE_LINK_FAILURE_COUNT */ in bond_get_slave_size()
28 nla_total_size(MAX_ADDR_LEN) + /* IFLA_BOND_SLAVE_PERM_HWADDR */ in bond_get_slave_size()
29 nla_total_size(sizeof(u16)) + /* IFLA_BOND_SLAVE_QUEUE_ID */ in bond_get_slave_size()
30 nla_total_size(sizeof(u16)) + /* IFLA_BOND_SLAVE_AD_AGGREGATOR_ID */ in bond_get_slave_size()
31 nla_total_size(sizeof(u8)) + /* IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE */ in bond_get_slave_size()
32 nla_total_size(sizeof(u16)) + /* IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE */ in bond_get_slave_size()
454 return nla_total_size(sizeof(u8)) + /* IFLA_BOND_MODE */ in bond_get_size()
455 nla_total_size(sizeof(u32)) + /* IFLA_BOND_ACTIVE_SLAVE */ in bond_get_size()
[all …]
/linux-4.4.14/net/ipv4/
Dip_tunnel_core.c297 return nla_total_size(8) /* LWTUNNEL_IP_ID */ in ip_tun_encap_nlsize()
298 + nla_total_size(4) /* LWTUNNEL_IP_DST */ in ip_tun_encap_nlsize()
299 + nla_total_size(4) /* LWTUNNEL_IP_SRC */ in ip_tun_encap_nlsize()
300 + nla_total_size(1) /* LWTUNNEL_IP_TOS */ in ip_tun_encap_nlsize()
301 + nla_total_size(1) /* LWTUNNEL_IP_TTL */ in ip_tun_encap_nlsize()
302 + nla_total_size(2); /* LWTUNNEL_IP_FLAGS */ in ip_tun_encap_nlsize()
392 return nla_total_size(8) /* LWTUNNEL_IP6_ID */ in ip6_tun_encap_nlsize()
393 + nla_total_size(16) /* LWTUNNEL_IP6_DST */ in ip6_tun_encap_nlsize()
394 + nla_total_size(16) /* LWTUNNEL_IP6_SRC */ in ip6_tun_encap_nlsize()
395 + nla_total_size(1) /* LWTUNNEL_IP6_HOPLIMIT */ in ip6_tun_encap_nlsize()
[all …]
Dipip.c423 nla_total_size(4) + in ipip_get_size()
425 nla_total_size(4) + in ipip_get_size()
427 nla_total_size(4) + in ipip_get_size()
429 nla_total_size(1) + in ipip_get_size()
431 nla_total_size(1) + in ipip_get_size()
433 nla_total_size(1) + in ipip_get_size()
435 nla_total_size(2) + in ipip_get_size()
437 nla_total_size(2) + in ipip_get_size()
439 nla_total_size(2) + in ipip_get_size()
441 nla_total_size(2) + in ipip_get_size()
Dip_gre.c1109 nla_total_size(4) + in ipgre_get_size()
1111 nla_total_size(2) + in ipgre_get_size()
1113 nla_total_size(2) + in ipgre_get_size()
1115 nla_total_size(4) + in ipgre_get_size()
1117 nla_total_size(4) + in ipgre_get_size()
1119 nla_total_size(4) + in ipgre_get_size()
1121 nla_total_size(4) + in ipgre_get_size()
1123 nla_total_size(1) + in ipgre_get_size()
1125 nla_total_size(1) + in ipgre_get_size()
1127 nla_total_size(1) + in ipgre_get_size()
[all …]
Dfib_semantics.c361 + nla_total_size(4) /* RTA_TABLE */ in fib_nlmsg_size()
362 + nla_total_size(4) /* RTA_DST */ in fib_nlmsg_size()
363 + nla_total_size(4) /* RTA_PRIORITY */ in fib_nlmsg_size()
364 + nla_total_size(4) /* RTA_PREFSRC */ in fib_nlmsg_size()
365 + nla_total_size(TCP_CA_NAME_MAX); /* RTAX_CC_ALGO */ in fib_nlmsg_size()
368 payload += nla_total_size((RTAX_MAX * nla_total_size(4))); in fib_nlmsg_size()
375 size_t nhsize = nla_total_size(sizeof(struct rtnexthop)); in fib_nlmsg_size()
378 nhsize += 2 * nla_total_size(4); in fib_nlmsg_size()
387 nh_encapsize += nla_total_size(2); in fib_nlmsg_size()
392 payload += nla_total_size((fi->fib_nhs * nhsize) + in fib_nlmsg_size()
Dip_vti.c494 nla_total_size(4) + in vti_get_size()
496 nla_total_size(4) + in vti_get_size()
498 nla_total_size(4) + in vti_get_size()
500 nla_total_size(4) + in vti_get_size()
502 nla_total_size(4) + in vti_get_size()
Dinet_diag.c95 return nla_total_size(sizeof(struct tcp_info)) in inet_sk_attr_size()
96 + nla_total_size(1) /* INET_DIAG_SHUTDOWN */ in inet_sk_attr_size()
97 + nla_total_size(1) /* INET_DIAG_TOS */ in inet_sk_attr_size()
98 + nla_total_size(1) /* INET_DIAG_TCLASS */ in inet_sk_attr_size()
99 + nla_total_size(sizeof(struct inet_diag_meminfo)) in inet_sk_attr_size()
100 + nla_total_size(sizeof(struct inet_diag_msg)) in inet_sk_attr_size()
101 + nla_total_size(SK_MEMINFO_VARS * sizeof(u32)) in inet_sk_attr_size()
102 + nla_total_size(TCP_CA_NAME_MAX) in inet_sk_attr_size()
103 + nla_total_size(sizeof(struct tcpvegas_info)) in inet_sk_attr_size()
Dfib_rules.c300 return nla_total_size(4) /* dst */ in fib4_rule_nlmsg_payload()
301 + nla_total_size(4) /* src */ in fib4_rule_nlmsg_payload()
302 + nla_total_size(4); /* flow */ in fib4_rule_nlmsg_payload()
Ddevinet.c1481 + nla_total_size(4) /* IFA_ADDRESS */ in inet_nlmsg_size()
1482 + nla_total_size(4) /* IFA_LOCAL */ in inet_nlmsg_size()
1483 + nla_total_size(4) /* IFA_BROADCAST */ in inet_nlmsg_size()
1484 + nla_total_size(IFNAMSIZ) /* IFA_LABEL */ in inet_nlmsg_size()
1485 + nla_total_size(4) /* IFA_FLAGS */ in inet_nlmsg_size()
1486 + nla_total_size(sizeof(struct ifa_cacheinfo)); /* IFA_CACHEINFO */ in inet_nlmsg_size()
1659 return nla_total_size(IPV4_DEVCONF_MAX * 4); /* IFLA_INET_CONF */ in inet_get_link_af_size()
1737 + nla_total_size(4); /* NETCONFA_IFINDEX */ in inet_netconf_msgsize_devconf()
1741 size += nla_total_size(4); in inet_netconf_msgsize_devconf()
1743 size += nla_total_size(4); in inet_netconf_msgsize_devconf()
[all …]
Dipmr.c2308 + nla_total_size(4) /* RTA_TABLE */ in mroute_msgsize()
2309 + nla_total_size(4) /* RTA_SRC */ in mroute_msgsize()
2310 + nla_total_size(4) /* RTA_DST */ in mroute_msgsize()
2315 + nla_total_size(4) /* RTA_IIF */ in mroute_msgsize()
2316 + nla_total_size(0) /* RTA_MULTIPATH */ in mroute_msgsize()
2319 + nla_total_size(sizeof(struct rta_mfc_stats)) in mroute_msgsize()
Dfib_frontend.c436 return len + nla_total_size(4); in put_rtax()
550 mx = kzalloc(3 * nla_total_size(4), GFP_KERNEL); in rtentry_to_fib_config()
/linux-4.4.14/net/core/
Drtnetlink.c419 return nla_total_size(sizeof(struct nlattr)) + in rtnl_link_get_slave_info_data_size()
431 size = nla_total_size(sizeof(struct nlattr)) + /* IFLA_LINKINFO */ in rtnl_link_get_size()
432 nla_total_size(strlen(ops->kind) + 1); /* IFLA_INFO_KIND */ in rtnl_link_get_size()
436 size += nla_total_size(sizeof(struct nlattr)) + in rtnl_link_get_size()
441 size += nla_total_size(ops->get_xstats_size(dev)); in rtnl_link_get_size()
507 size = nla_total_size(sizeof(struct nlattr)); in rtnl_link_get_af_size()
512 size += nla_total_size(sizeof(struct nlattr)) + in rtnl_link_get_af_size()
821 size_t size = nla_total_size(sizeof(struct nlattr)); in rtnl_vfinfo_size()
822 size += nla_total_size(num_vfs * sizeof(struct nlattr)); in rtnl_vfinfo_size()
824 (nla_total_size(sizeof(struct ifla_vf_mac)) + in rtnl_vfinfo_size()
[all …]
Dfib_rules.c544 + nla_total_size(IFNAMSIZ) /* FRA_IIFNAME */ in fib_rule_nlmsg_size()
545 + nla_total_size(IFNAMSIZ) /* FRA_OIFNAME */ in fib_rule_nlmsg_size()
546 + nla_total_size(4) /* FRA_PRIORITY */ in fib_rule_nlmsg_size()
547 + nla_total_size(4) /* FRA_TABLE */ in fib_rule_nlmsg_size()
548 + nla_total_size(4) /* FRA_SUPPRESS_PREFIXLEN */ in fib_rule_nlmsg_size()
549 + nla_total_size(4) /* FRA_SUPPRESS_IFGROUP */ in fib_rule_nlmsg_size()
550 + nla_total_size(4) /* FRA_FWMARK */ in fib_rule_nlmsg_size()
551 + nla_total_size(4) /* FRA_FWMASK */ in fib_rule_nlmsg_size()
552 + nla_total_size(8); /* FRA_TUN_ID */ in fib_rule_nlmsg_size()
Dsock_diag.c121 + nla_total_size(sizeof(u8)) /* INET_DIAG_PROTOCOL */ in sock_diag_nlmsg_size()
122 + nla_total_size(sizeof(struct tcp_info))); /* INET_DIAG_INFO */ in sock_diag_nlmsg_size()
Dlwtunnel.c148 ret = nla_total_size(ops->get_encap_size(lwtstate)); in lwtunnel_get_encap_size()
Dneighbour.c2828 + nla_total_size(MAX_ADDR_LEN) /* NDA_DST */ in neigh_nlmsg_size()
2829 + nla_total_size(MAX_ADDR_LEN) /* NDA_LLADDR */ in neigh_nlmsg_size()
2830 + nla_total_size(sizeof(struct nda_cacheinfo)) in neigh_nlmsg_size()
2831 + nla_total_size(4); /* NDA_PROBES */ in neigh_nlmsg_size()
Dnet_namespace.c587 + nla_total_size(sizeof(s32)) /* NETNSA_NSID */ in rtnl_net_get_size()
/linux-4.4.14/net/netfilter/
Dnfnetlink_log.c589 if (skb_tailroom(inst->skb) < nla_total_size(data_len)) in __build_packet_message()
592 nla = (struct nlattr *)skb_put(inst->skb, nla_total_size(data_len)); in __build_packet_message()
658 + nla_total_size(sizeof(struct nfulnl_msg_packet_hdr)) in nfulnl_log_packet()
659 + nla_total_size(sizeof(u_int32_t)) /* ifindex */ in nfulnl_log_packet()
660 + nla_total_size(sizeof(u_int32_t)) /* ifindex */ in nfulnl_log_packet()
662 + nla_total_size(sizeof(u_int32_t)) /* ifindex */ in nfulnl_log_packet()
663 + nla_total_size(sizeof(u_int32_t)) /* ifindex */ in nfulnl_log_packet()
665 + nla_total_size(sizeof(u_int32_t)) /* mark */ in nfulnl_log_packet()
666 + nla_total_size(sizeof(u_int32_t)) /* uid */ in nfulnl_log_packet()
667 + nla_total_size(sizeof(u_int32_t)) /* gid */ in nfulnl_log_packet()
[all …]
Dnf_conntrack_netlink.c354 return nla_total_size(labels->words * sizeof(long)); in ctnetlink_label_size()
564 return 2 * nla_total_size(0) /* CTA_COUNTERS_ORIG|REPL */ in ctnetlink_acct_size()
565 + 2 * nla_total_size(sizeof(uint64_t)) /* CTA_COUNTERS_PACKETS */ in ctnetlink_acct_size()
566 + 2 * nla_total_size(sizeof(uint64_t)) /* CTA_COUNTERS_BYTES */ in ctnetlink_acct_size()
580 return nla_total_size(0) /* CTA_SECCTX */ in ctnetlink_secctx_size()
581 + nla_total_size(sizeof(char) * len); /* CTA_SECCTX_NAME */ in ctnetlink_secctx_size()
593 return nla_total_size(0) + 2 * nla_total_size(sizeof(uint64_t)); in ctnetlink_timestamp_size()
603 + 3 * nla_total_size(0) /* CTA_TUPLE_ORIG|REPL|MASTER */ in ctnetlink_nlmsg_size()
604 + 3 * nla_total_size(0) /* CTA_TUPLE_IP */ in ctnetlink_nlmsg_size()
605 + 3 * nla_total_size(0) /* CTA_TUPLE_PROTO */ in ctnetlink_nlmsg_size()
[all …]
Dnfnetlink_queue.c322 + nla_total_size(sizeof(struct nfqnl_msg_packet_hdr)) in nfqnl_build_packet_message()
323 + nla_total_size(sizeof(u_int32_t)) /* ifindex */ in nfqnl_build_packet_message()
324 + nla_total_size(sizeof(u_int32_t)) /* ifindex */ in nfqnl_build_packet_message()
326 + nla_total_size(sizeof(u_int32_t)) /* ifindex */ in nfqnl_build_packet_message()
327 + nla_total_size(sizeof(u_int32_t)) /* ifindex */ in nfqnl_build_packet_message()
329 + nla_total_size(sizeof(u_int32_t)) /* mark */ in nfqnl_build_packet_message()
330 + nla_total_size(sizeof(struct nfqnl_msg_packet_hw)) in nfqnl_build_packet_message()
331 + nla_total_size(sizeof(u_int32_t)) /* skbinfo */ in nfqnl_build_packet_message()
332 + nla_total_size(sizeof(u_int32_t)); /* cap_len */ in nfqnl_build_packet_message()
335 size += nla_total_size(sizeof(struct nfqnl_msg_packet_timestamp)); in nfqnl_build_packet_message()
[all …]
Dnf_conntrack_proto_dccp.c705 return nla_total_size(0) /* CTA_PROTOINFO_DCCP */ in dccp_nlattr_size()
Dnf_conntrack_proto_sctp.c595 return nla_total_size(0) /* CTA_PROTOINFO_SCTP */ in sctp_nlattr_size()
Dnf_conntrack_proto_tcp.c1282 return nla_total_size(0) /* CTA_PROTOINFO_TCP */ in tcp_nlattr_size()
/linux-4.4.14/net/8021q/
Dvlan_netlink.c164 return nla_total_size(sizeof(struct nlattr)) + in vlan_qos_map_size()
165 nla_total_size(sizeof(struct ifla_vlan_qos_mapping)) * n; in vlan_qos_map_size()
172 return nla_total_size(2) + /* IFLA_VLAN_PROTOCOL */ in vlan_get_size()
173 nla_total_size(2) + /* IFLA_VLAN_ID */ in vlan_get_size()
174 nla_total_size(sizeof(struct ifla_vlan_flags)) + /* IFLA_VLAN_FLAGS */ in vlan_get_size()
/linux-4.4.14/drivers/infiniband/ulp/ipoib/
Dipoib_netlink.c154 return nla_total_size(2) + /* IFLA_IPOIB_PKEY */ in ipoib_get_size()
155 nla_total_size(2) + /* IFLA_IPOIB_MODE */ in ipoib_get_size()
156 nla_total_size(2); /* IFLA_IPOIB_UMCAST */ in ipoib_get_size()
/linux-4.4.14/net/openvswitch/
Dflow_netlink.c264 return nla_total_size(8) /* OVS_TUNNEL_KEY_ATTR_ID */ in ovs_tun_key_attr_size()
265 + nla_total_size(16) /* OVS_TUNNEL_KEY_ATTR_IPV[46]_SRC */ in ovs_tun_key_attr_size()
266 + nla_total_size(16) /* OVS_TUNNEL_KEY_ATTR_IPV[46]_DST */ in ovs_tun_key_attr_size()
267 + nla_total_size(1) /* OVS_TUNNEL_KEY_ATTR_TOS */ in ovs_tun_key_attr_size()
268 + nla_total_size(1) /* OVS_TUNNEL_KEY_ATTR_TTL */ in ovs_tun_key_attr_size()
269 + nla_total_size(0) /* OVS_TUNNEL_KEY_ATTR_DONT_FRAGMENT */ in ovs_tun_key_attr_size()
270 + nla_total_size(0) /* OVS_TUNNEL_KEY_ATTR_CSUM */ in ovs_tun_key_attr_size()
271 + nla_total_size(0) /* OVS_TUNNEL_KEY_ATTR_OAM */ in ovs_tun_key_attr_size()
272 + nla_total_size(256) /* OVS_TUNNEL_KEY_ATTR_GENEVE_OPTS */ in ovs_tun_key_attr_size()
276 + nla_total_size(2) /* OVS_TUNNEL_KEY_ATTR_TP_SRC */ in ovs_tun_key_attr_size()
[all …]
Ddatapath.c385 + nla_total_size(hdrlen) /* OVS_PACKET_ATTR_PACKET */ in upcall_msg_size()
386 + nla_total_size(ovs_key_attr_size()); /* OVS_PACKET_ATTR_KEY */ in upcall_msg_size()
394 size += nla_total_size(ovs_tun_key_attr_size()); in upcall_msg_size()
398 size += nla_total_size(upcall_info->actions_len); in upcall_msg_size()
402 size += nla_total_size(sizeof(upcall_info->mru)); in upcall_msg_size()
730 len += nla_total_size(sfid->ufid_len); in ovs_flow_cmd_msg_size()
734 len += nla_total_size(ovs_key_attr_size()); in ovs_flow_cmd_msg_size()
738 len += nla_total_size(ovs_key_attr_size()); in ovs_flow_cmd_msg_size()
742 len += nla_total_size(acts->orig_len); in ovs_flow_cmd_msg_size()
745 + nla_total_size(sizeof(struct ovs_flow_stats)) /* OVS_FLOW_ATTR_STATS */ in ovs_flow_cmd_msg_size()
[all …]
/linux-4.4.14/lib/
Dnlattr.c158 len += nla_total_size(p->len); in nla_policy_len()
160 len += nla_total_size(nla_attr_minlen[p->type]); in nla_policy_len()
347 nla = (struct nlattr *) skb_put(skb, nla_total_size(attrlen)); in __nla_reserve()
392 if (unlikely(skb_tailroom(skb) < nla_total_size(attrlen))) in nla_reserve()
468 if (unlikely(skb_tailroom(skb) < nla_total_size(attrlen))) in nla_put()
/linux-4.4.14/fs/quota/
Dnetlink.c51 int msg_size = 4 * nla_total_size(sizeof(u32)) + in quota_send_warning()
52 2 * nla_total_size(sizeof(u64)); in quota_send_warning()
/linux-4.4.14/net/xfrm/
Dxfrm_user.c990 + nla_total_size(sizeof(struct xfrmu_spdinfo)) in xfrm_spdinfo_msgsize()
991 + nla_total_size(sizeof(struct xfrmu_spdhinfo)) in xfrm_spdinfo_msgsize()
992 + nla_total_size(sizeof(struct xfrmu_spdhthresh)) in xfrm_spdinfo_msgsize()
993 + nla_total_size(sizeof(struct xfrmu_spdhthresh)); in xfrm_spdinfo_msgsize()
1116 + nla_total_size(sizeof(struct xfrmu_sadhinfo)) in xfrm_sadinfo_msgsize()
1117 + nla_total_size(4); /* XFRMA_SAD_CNT */ in xfrm_sadinfo_msgsize()
1592 return nla_total_size(sizeof(struct xfrm_userpolicy_type)); in userpolicy_type_attrsize()
1815 + nla_total_size(replay_size) in xfrm_aevent_msgsize()
1816 + nla_total_size(sizeof(struct xfrm_lifetime_cur)) in xfrm_aevent_msgsize()
1817 + nla_total_size(sizeof(struct xfrm_mark)) in xfrm_aevent_msgsize()
[all …]
/linux-4.4.14/drivers/net/can/
Ddev.c930 size += nla_total_size(sizeof(struct can_bittiming)); in can_get_size()
932 size += nla_total_size(sizeof(struct can_bittiming_const)); in can_get_size()
933 size += nla_total_size(sizeof(struct can_clock)); /* IFLA_CAN_CLOCK */ in can_get_size()
934 size += nla_total_size(sizeof(u32)); /* IFLA_CAN_STATE */ in can_get_size()
935 size += nla_total_size(sizeof(struct can_ctrlmode)); /* IFLA_CAN_CTRLMODE */ in can_get_size()
936 size += nla_total_size(sizeof(u32)); /* IFLA_CAN_RESTART_MS */ in can_get_size()
938 size += nla_total_size(sizeof(struct can_berr_counter)); in can_get_size()
940 size += nla_total_size(sizeof(struct can_bittiming)); in can_get_size()
942 size += nla_total_size(sizeof(struct can_bittiming_const)); in can_get_size()
/linux-4.4.14/drivers/acpi/
Devent.c105 size = nla_total_size(sizeof(struct acpi_genl_event)) + in acpi_bus_generate_netlink_event()
106 nla_total_size(0); in acpi_bus_generate_netlink_event()
/linux-4.4.14/fs/dlm/
Dnetlink.c119 size = nla_total_size(sizeof(struct dlm_lock_data)) + in dlm_timeout_warn()
120 nla_total_size(0); /* why this? */ in dlm_timeout_warn()
/linux-4.4.14/net/wimax/
Dop-msg.c131 msg_size = nla_total_size(size) in wimax_msg_alloc()
132 + nla_total_size(sizeof(u32)) in wimax_msg_alloc()
133 + (pipe_name ? nla_total_size(strlen(pipe_name)) : 0); in wimax_msg_alloc()
/linux-4.4.14/net/decnet/
Ddn_table.c275 + nla_total_size(4) /* RTA_TABLE */ in dn_fib_nlmsg_size()
276 + nla_total_size(2) /* RTA_DST */ in dn_fib_nlmsg_size()
277 + nla_total_size(4) /* RTA_PRIORITY */ in dn_fib_nlmsg_size()
278 + nla_total_size(TCP_CA_NAME_MAX); /* RTAX_CC_ALGO */ in dn_fib_nlmsg_size()
281 payload += nla_total_size((RTAX_MAX * nla_total_size(4))); in dn_fib_nlmsg_size()
287 size_t nhsize = nla_total_size(sizeof(struct rtnexthop)); in dn_fib_nlmsg_size()
290 nhsize += nla_total_size(4); in dn_fib_nlmsg_size()
293 payload += nla_total_size(fi->fib_nhs * nhsize); in dn_fib_nlmsg_size()
Ddn_dev.c673 + nla_total_size(IFNAMSIZ) /* IFA_LABEL */ in dn_ifaddr_nlmsg_size()
674 + nla_total_size(2) /* IFA_ADDRESS */ in dn_ifaddr_nlmsg_size()
675 + nla_total_size(2) /* IFA_LOCAL */ in dn_ifaddr_nlmsg_size()
676 + nla_total_size(4); /* IFA_FLAGS */ in dn_ifaddr_nlmsg_size()
/linux-4.4.14/net/ipv6/
Dsit.c1628 nla_total_size(4) + in ipip6_get_size()
1630 nla_total_size(4) + in ipip6_get_size()
1632 nla_total_size(4) + in ipip6_get_size()
1634 nla_total_size(1) + in ipip6_get_size()
1636 nla_total_size(1) + in ipip6_get_size()
1638 nla_total_size(1) + in ipip6_get_size()
1640 nla_total_size(2) + in ipip6_get_size()
1642 nla_total_size(1) + in ipip6_get_size()
1645 nla_total_size(sizeof(struct in6_addr)) + in ipip6_get_size()
1647 nla_total_size(4) + in ipip6_get_size()
[all …]
Dip6_gre.c1597 nla_total_size(4) + in ip6gre_get_size()
1599 nla_total_size(2) + in ip6gre_get_size()
1601 nla_total_size(2) + in ip6gre_get_size()
1603 nla_total_size(4) + in ip6gre_get_size()
1605 nla_total_size(4) + in ip6gre_get_size()
1607 nla_total_size(sizeof(struct in6_addr)) + in ip6gre_get_size()
1609 nla_total_size(sizeof(struct in6_addr)) + in ip6gre_get_size()
1611 nla_total_size(1) + in ip6gre_get_size()
1613 nla_total_size(1) + in ip6gre_get_size()
1615 nla_total_size(1) + in ip6gre_get_size()
[all …]
Dfib6_rules.c274 return nla_total_size(16) /* dst */ in fib6_rule_nlmsg_payload()
275 + nla_total_size(16); /* src */ in fib6_rule_nlmsg_payload()
Dip6_vti.c985 nla_total_size(4) + in vti6_get_size()
987 nla_total_size(sizeof(struct in6_addr)) + in vti6_get_size()
989 nla_total_size(sizeof(struct in6_addr)) + in vti6_get_size()
991 nla_total_size(4) + in vti6_get_size()
993 nla_total_size(4) + in vti6_get_size()
Daddrconf.c473 + nla_total_size(4); /* NETCONFA_IFINDEX */ in inet6_netconf_msgsize_devconf()
477 size += nla_total_size(4); in inet6_netconf_msgsize_devconf()
480 size += nla_total_size(4); in inet6_netconf_msgsize_devconf()
483 size += nla_total_size(4); in inet6_netconf_msgsize_devconf()
486 size += nla_total_size(4); in inet6_netconf_msgsize_devconf()
4293 + nla_total_size(16) /* IFA_LOCAL */ in inet6_ifaddr_msgsize()
4294 + nla_total_size(16) /* IFA_ADDRESS */ in inet6_ifaddr_msgsize()
4295 + nla_total_size(sizeof(struct ifa_cacheinfo)) in inet6_ifaddr_msgsize()
4296 + nla_total_size(4) /* IFA_FLAGS */; in inet6_ifaddr_msgsize()
4689 return nla_total_size(4) /* IFLA_INET6_FLAGS */ in inet6_ifla6_size()
[all …]
Dip6_tunnel.c1789 nla_total_size(4) + in ip6_tnl_get_size()
1791 nla_total_size(sizeof(struct in6_addr)) + in ip6_tnl_get_size()
1793 nla_total_size(sizeof(struct in6_addr)) + in ip6_tnl_get_size()
1795 nla_total_size(1) + in ip6_tnl_get_size()
1797 nla_total_size(1) + in ip6_tnl_get_size()
1799 nla_total_size(4) + in ip6_tnl_get_size()
1801 nla_total_size(4) + in ip6_tnl_get_size()
1803 nla_total_size(1) + in ip6_tnl_get_size()
Daddrlabel.c520 + nla_total_size(16) /* IFAL_ADDRESS */ in ip6addrlbl_msgsize()
521 + nla_total_size(4); /* IFAL_LABEL */ in ip6addrlbl_msgsize()
Droute.c3032 + nla_total_size(16) /* RTA_SRC */ in rt6_nlmsg_size()
3033 + nla_total_size(16) /* RTA_DST */ in rt6_nlmsg_size()
3034 + nla_total_size(16) /* RTA_GATEWAY */ in rt6_nlmsg_size()
3035 + nla_total_size(16) /* RTA_PREFSRC */ in rt6_nlmsg_size()
3036 + nla_total_size(4) /* RTA_TABLE */ in rt6_nlmsg_size()
3037 + nla_total_size(4) /* RTA_IIF */ in rt6_nlmsg_size()
3038 + nla_total_size(4) /* RTA_OIF */ in rt6_nlmsg_size()
3039 + nla_total_size(4) /* RTA_PRIORITY */ in rt6_nlmsg_size()
3040 + RTAX_MAX * nla_total_size(4) /* RTA_METRICS */ in rt6_nlmsg_size()
3041 + nla_total_size(sizeof(struct rta_cacheinfo)) in rt6_nlmsg_size()
[all …]
Dip6mr.c2403 + nla_total_size(4) /* RTA_TABLE */ in mr6_msgsize()
2404 + nla_total_size(sizeof(struct in6_addr)) /* RTA_SRC */ in mr6_msgsize()
2405 + nla_total_size(sizeof(struct in6_addr)) /* RTA_DST */ in mr6_msgsize()
2410 + nla_total_size(4) /* RTA_IIF */ in mr6_msgsize()
2411 + nla_total_size(0) /* RTA_MULTIPATH */ in mr6_msgsize()
2414 + nla_total_size(sizeof(struct rta_mfc_stats)) in mr6_msgsize()
Dndisc.c1045 size_t msg_size = base_size + nla_total_size(sizeof(struct in6_addr)); in ndisc_ra_useropt()
/linux-4.4.14/drivers/net/
Dvxlan.c343 + nla_total_size(ETH_ALEN) /* NDA_LLADDR */ in vxlan_nlmsg_size()
344 + nla_total_size(sizeof(struct in6_addr)) /* NDA_DST */ in vxlan_nlmsg_size()
345 + nla_total_size(sizeof(__be16)) /* NDA_PORT */ in vxlan_nlmsg_size()
346 + nla_total_size(sizeof(__be32)) /* NDA_VNI */ in vxlan_nlmsg_size()
347 + nla_total_size(sizeof(__u32)) /* NDA_IFINDEX */ in vxlan_nlmsg_size()
348 + nla_total_size(sizeof(__s32)) /* NDA_LINK_NETNSID */ in vxlan_nlmsg_size()
349 + nla_total_size(sizeof(struct nda_cacheinfo)); in vxlan_nlmsg_size()
3046 return nla_total_size(sizeof(__u32)) + /* IFLA_VXLAN_ID */ in vxlan_get_size()
3047 nla_total_size(sizeof(struct in6_addr)) + /* IFLA_VXLAN_GROUP{6} */ in vxlan_get_size()
3048 nla_total_size(sizeof(__u32)) + /* IFLA_VXLAN_LINK */ in vxlan_get_size()
[all …]
Dgeneve.c1283 return nla_total_size(sizeof(__u32)) + /* IFLA_GENEVE_ID */ in geneve_get_size()
1284 nla_total_size(sizeof(struct in6_addr)) + /* IFLA_GENEVE_REMOTE{6} */ in geneve_get_size()
1285 nla_total_size(sizeof(__u8)) + /* IFLA_GENEVE_TTL */ in geneve_get_size()
1286 nla_total_size(sizeof(__u8)) + /* IFLA_GENEVE_TOS */ in geneve_get_size()
1287 nla_total_size(sizeof(__be16)) + /* IFLA_GENEVE_PORT */ in geneve_get_size()
1288 nla_total_size(0) + /* IFLA_GENEVE_COLLECT_METADATA */ in geneve_get_size()
Dmacvlan.c1412 return nla_total_size(0) /* IFLA_MACVLAN_MACADDR_DATA */ in macvlan_get_size_mac()
1413 + vlan->macaddr_count * nla_total_size(sizeof(u8) * ETH_ALEN); in macvlan_get_size_mac()
1421 + nla_total_size(4) /* IFLA_MACVLAN_MODE */ in macvlan_get_size()
1422 + nla_total_size(2) /* IFLA_MACVLAN_FLAGS */ in macvlan_get_size()
1423 + nla_total_size(4) /* IFLA_MACVLAN_MACADDR_COUNT */ in macvlan_get_size()
Dvrf.c930 return nla_total_size(sizeof(u32)); /* IFLA_VRF_TABLE */ in vrf_nl_getsize()
/linux-4.4.14/kernel/
Dtaskstats.c435 size = nla_total_size(sizeof(struct cgroupstats)); in cgroupstats_user_cmd()
502 size = nla_total_size(sizeof(u32)) + in taskstats_packet_size()
503 nla_total_size(sizeof(struct taskstats)) + nla_total_size(0); in taskstats_packet_size()
505 size += nla_total_size(0); /* Padding for alignment */ in taskstats_packet_size()
/linux-4.4.14/net/phonet/
Dpn_netlink.c44 nla_total_size(1), GFP_KERNEL); in phonet_address_notify()
208 nla_total_size(1) + nla_total_size(4), GFP_KERNEL); in rtm_phonet_notify()
/linux-4.4.14/net/caif/
Dchnl_net.c503 nla_total_size(4) + in ipcaif_get_size()
505 nla_total_size(4) + in ipcaif_get_size()
507 nla_total_size(2) + in ipcaif_get_size()
/linux-4.4.14/net/mpls/
Daf_mpls.c1334 + nla_total_size(4); /* RTA_DST */ in lfib_nlmsg_size()
1340 payload += nla_total_size(4); /* RTA_OIF */ in lfib_nlmsg_size()
1342 payload += nla_total_size(2 + nh->nh_via_alen); in lfib_nlmsg_size()
1344 payload += nla_total_size(nh->nh_labels * 4); in lfib_nlmsg_size()
1350 nhsize += nla_total_size(sizeof(struct rtnexthop)); in lfib_nlmsg_size()
1353 nhsize += nla_total_size(2 + nh->nh_via_alen); in lfib_nlmsg_size()
1355 nhsize += nla_total_size(nh->nh_labels * 4); in lfib_nlmsg_size()
1358 payload += nla_total_size(nhsize); in lfib_nlmsg_size()
Dmpls_iptunnel.c192 return nla_total_size(tun_encap_info->labels * 4); in mpls_encap_nlsize()
/linux-4.4.14/drivers/net/wireless/ti/wlcore/
Dtestmode.c125 len = nla_total_size(buf_len); in wl1271_tm_cmd_test()
259 len = nla_total_size(sizeof(wl->fem_manuf)); in wl1271_tm_detect_fem()
/linux-4.4.14/drivers/infiniband/core/
Dsa_query.c490 len += nla_total_size(sizeof(u64)); in ib_nl_get_path_rec_attrs_len()
492 len += nla_total_size(sizeof(struct rdma_nla_ls_gid)); in ib_nl_get_path_rec_attrs_len()
494 len += nla_total_size(sizeof(struct rdma_nla_ls_gid)); in ib_nl_get_path_rec_attrs_len()
496 len += nla_total_size(sizeof(u8)); in ib_nl_get_path_rec_attrs_len()
498 len += nla_total_size(sizeof(u16)); in ib_nl_get_path_rec_attrs_len()
500 len += nla_total_size(sizeof(u16)); in ib_nl_get_path_rec_attrs_len()
/linux-4.4.14/include/net/
Dnetlink.h642 static inline int nla_total_size(int payload) in nla_total_size() function
653 return nla_total_size(payload) - nla_attr_size(payload); in nla_padlen()
/linux-4.4.14/drivers/net/wireless/ath/ath10k/
Dtestmode.c121 nla_total_size(sizeof(u32))); in ath10k_tm_cmd_get_version()
/linux-4.4.14/drivers/net/ipvlan/
Dipvlan_main.c403 + nla_total_size(2) /* IFLA_IPVLAN_MODE */ in ipvlan_nl_getsize()
/linux-4.4.14/drivers/thermal/
Dthermal_core.c2093 size = nla_total_size(sizeof(struct thermal_genl_event)) + in thermal_generate_netlink_event()
2094 nla_total_size(0); in thermal_generate_netlink_event()
/linux-4.4.14/drivers/net/caif/
Dcaif_hsi.c1383 s += nla_total_size(caif_hsi_policy[i].len); in caif_hsi_get_size()
/linux-4.4.14/drivers/net/wireless/
Dmac80211_hwsim.c1796 nla_total_size(sizeof(u32))); in mac80211_hwsim_testmode_cmd()
/linux-4.4.14/drivers/scsi/
Dpmcraid.c1443 total_size = nla_total_size(data_size); in pmcraid_notify_aen()