| /Linux-v4.19/drivers/net/bonding/ |
| D | bond_netlink.c | 25 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() 467 return nla_total_size(sizeof(u8)) + /* IFLA_BOND_MODE */ in bond_get_size() 468 nla_total_size(sizeof(u32)) + /* IFLA_BOND_ACTIVE_SLAVE */ in bond_get_size() [all …]
|
| /Linux-v4.19/net/netfilter/ |
| D | nf_tables_trace.c | 199 nla_total_size(strlen(info->chain->table->name)) + in nft_trace_notify() 200 nla_total_size(strlen(info->chain->name)) + in nft_trace_notify() 202 nla_total_size(sizeof(__be32)) + /* trace type */ in nft_trace_notify() 203 nla_total_size(0) + /* VERDICT, nested */ in nft_trace_notify() 204 nla_total_size(sizeof(u32)) + /* verdict code */ in nft_trace_notify() 205 nla_total_size(sizeof(u32)) + /* id */ in nft_trace_notify() 206 nla_total_size(NFT_TRACETYPE_LL_HSIZE) + in nft_trace_notify() 207 nla_total_size(NFT_TRACETYPE_NETWORK_HSIZE) + in nft_trace_notify() 208 nla_total_size(NFT_TRACETYPE_TRANSPORT_HSIZE) + in nft_trace_notify() 209 nla_total_size(sizeof(u32)) + /* iif */ in nft_trace_notify() [all …]
|
| D | nfnetlink_log.c | 590 if (skb_tailroom(inst->skb) < nla_total_size(data_len)) in __build_packet_message() 593 nla = 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 …]
|
| D | nfnetlink_queue.c | 334 nlalen += nla_total_size(nla_total_size(sizeof(__be16)) + in nfqnl_get_bridge_size() 335 nla_total_size(sizeof(__be16))); in nfqnl_get_bridge_size() 338 nlalen += nla_total_size((entskb->network_header - in nfqnl_get_bridge_size() 402 + nla_total_size(sizeof(struct nfqnl_msg_packet_hdr)) in nfqnl_build_packet_message() 403 + nla_total_size(sizeof(u_int32_t)) /* ifindex */ in nfqnl_build_packet_message() 404 + nla_total_size(sizeof(u_int32_t)) /* ifindex */ in nfqnl_build_packet_message() 406 + nla_total_size(sizeof(u_int32_t)) /* ifindex */ in nfqnl_build_packet_message() 407 + nla_total_size(sizeof(u_int32_t)) /* ifindex */ in nfqnl_build_packet_message() 409 + nla_total_size(sizeof(u_int32_t)) /* mark */ in nfqnl_build_packet_message() 410 + nla_total_size(sizeof(struct nfqnl_msg_packet_hw)) in nfqnl_build_packet_message() [all …]
|
| D | nf_conntrack_netlink.c | 365 return nla_total_size(sizeof(labels->bits)); in ctnetlink_label_size() 610 return 2 * nla_total_size(0) /* CTA_COUNTERS_ORIG|REPL */ in ctnetlink_acct_size() 625 return nla_total_size(0) /* CTA_SECCTX */ in ctnetlink_secctx_size() 626 + nla_total_size(sizeof(char) * len); /* CTA_SECCTX_NAME */ in ctnetlink_secctx_size() 637 return nla_total_size(0) + 2 * nla_total_size_64bit(sizeof(uint64_t)); in ctnetlink_timestamp_size() 647 + 3 * nla_total_size(0) /* CTA_TUPLE_ORIG|REPL|MASTER */ in ctnetlink_nlmsg_size() 648 + 3 * nla_total_size(0) /* CTA_TUPLE_IP */ in ctnetlink_nlmsg_size() 649 + 3 * nla_total_size(0) /* CTA_TUPLE_PROTO */ in ctnetlink_nlmsg_size() 650 + 3 * nla_total_size(sizeof(u_int8_t)) /* CTA_PROTO_NUM */ in ctnetlink_nlmsg_size() 651 + nla_total_size(sizeof(u_int32_t)) /* CTA_ID */ in ctnetlink_nlmsg_size() [all …]
|
| /Linux-v4.19/net/bridge/ |
| D | br_netlink.c | 119 vinfo_sz += num_vlan_infos * nla_total_size(sizeof(struct bridge_vlan_info)); in br_get_link_af_size_filtered() 126 return nla_total_size(1) /* IFLA_BRPORT_STATE */ in br_port_info_size() 127 + nla_total_size(2) /* IFLA_BRPORT_PRIORITY */ in br_port_info_size() 128 + nla_total_size(4) /* IFLA_BRPORT_COST */ in br_port_info_size() 129 + nla_total_size(1) /* IFLA_BRPORT_MODE */ in br_port_info_size() 130 + nla_total_size(1) /* IFLA_BRPORT_GUARD */ in br_port_info_size() 131 + nla_total_size(1) /* IFLA_BRPORT_PROTECT */ in br_port_info_size() 132 + nla_total_size(1) /* IFLA_BRPORT_FAST_LEAVE */ in br_port_info_size() 133 + nla_total_size(1) /* IFLA_BRPORT_MCAST_TO_UCAST */ in br_port_info_size() 134 + nla_total_size(1) /* IFLA_BRPORT_LEARNING */ in br_port_info_size() [all …]
|
| D | br_netlink_tunnel.c | 27 return nla_total_size(0) + /* nest IFLA_BRIDGE_VLAN_TUNNEL_INFO */ in __get_vlan_tinfo_size() 28 nla_total_size(sizeof(u32)) + /* IFLA_BRIDGE_VLAN_TUNNEL_ID */ in __get_vlan_tinfo_size() 29 nla_total_size(sizeof(u16)) + /* IFLA_BRIDGE_VLAN_TUNNEL_VID */ in __get_vlan_tinfo_size() 30 nla_total_size(sizeof(u16)); /* IFLA_BRIDGE_VLAN_TUNNEL_FLAGS */ in __get_vlan_tinfo_size()
|
| /Linux-v4.19/net/psample/ |
| D | psample.c | 214 meta_len = (in_ifindex ? nla_total_size(sizeof(u16)) : 0) + in psample_sample_packet() 215 (out_ifindex ? nla_total_size(sizeof(u16)) : 0) + in psample_sample_packet() 216 nla_total_size(sizeof(u32)) + /* sample_rate */ in psample_sample_packet() 217 nla_total_size(sizeof(u32)) + /* orig_size */ in psample_sample_packet() 218 nla_total_size(sizeof(u32)) + /* group_num */ in psample_sample_packet() 219 nla_total_size(sizeof(u32)); /* seq */ in psample_sample_packet() 222 if (meta_len + nla_total_size(data_len) > PSAMPLE_MAX_PACKET_SIZE) in psample_sample_packet() 264 int nla_len = nla_total_size(data_len); in psample_sample_packet()
|
| /Linux-v4.19/net/core/ |
| D | rtnetlink.c | 504 size = nla_total_size(sizeof(struct nlattr)) + in rtnl_link_get_slave_info_data_size() 520 size = nla_total_size(sizeof(struct nlattr)) + /* IFLA_LINKINFO */ in rtnl_link_get_size() 521 nla_total_size(strlen(ops->kind) + 1); /* IFLA_INFO_KIND */ in rtnl_link_get_size() 525 size += nla_total_size(sizeof(struct nlattr)) + in rtnl_link_get_size() 530 size += nla_total_size(ops->get_xstats_size(dev)); in rtnl_link_get_size() 586 size = nla_total_size(sizeof(struct nlattr)); in rtnl_link_get_af_size() 592 size += nla_total_size(sizeof(struct nlattr)) + in rtnl_link_get_af_size() 906 size_t size = nla_total_size(0); in rtnl_vfinfo_size() 908 (nla_total_size(0) + in rtnl_vfinfo_size() 909 nla_total_size(sizeof(struct ifla_vf_mac)) + in rtnl_vfinfo_size() [all …]
|
| D | fib_rules.c | 937 + nla_total_size(IFNAMSIZ) /* FRA_IIFNAME */ in fib_rule_nlmsg_size() 938 + nla_total_size(IFNAMSIZ) /* FRA_OIFNAME */ in fib_rule_nlmsg_size() 939 + nla_total_size(4) /* FRA_PRIORITY */ in fib_rule_nlmsg_size() 940 + nla_total_size(4) /* FRA_TABLE */ in fib_rule_nlmsg_size() 941 + nla_total_size(4) /* FRA_SUPPRESS_PREFIXLEN */ in fib_rule_nlmsg_size() 942 + nla_total_size(4) /* FRA_SUPPRESS_IFGROUP */ in fib_rule_nlmsg_size() 943 + nla_total_size(4) /* FRA_FWMARK */ in fib_rule_nlmsg_size() 944 + nla_total_size(4) /* FRA_FWMASK */ in fib_rule_nlmsg_size() 946 + nla_total_size(sizeof(struct fib_kuid_range)) in fib_rule_nlmsg_size() 947 + nla_total_size(1) /* FRA_PROTOCOL */ in fib_rule_nlmsg_size() [all …]
|
| /Linux-v4.19/net/ipv4/ |
| D | ipip.c | 549 nla_total_size(4) + in ipip_get_size() 551 nla_total_size(4) + in ipip_get_size() 553 nla_total_size(4) + in ipip_get_size() 555 nla_total_size(1) + in ipip_get_size() 557 nla_total_size(1) + in ipip_get_size() 559 nla_total_size(1) + in ipip_get_size() 561 nla_total_size(1) + in ipip_get_size() 563 nla_total_size(2) + in ipip_get_size() 565 nla_total_size(2) + in ipip_get_size() 567 nla_total_size(2) + in ipip_get_size() [all …]
|
| D | ip_tunnel_core.c | 300 + nla_total_size(4) /* LWTUNNEL_IP_DST */ in ip_tun_encap_nlsize() 301 + nla_total_size(4) /* LWTUNNEL_IP_SRC */ in ip_tun_encap_nlsize() 302 + nla_total_size(1) /* LWTUNNEL_IP_TOS */ in ip_tun_encap_nlsize() 303 + nla_total_size(1) /* LWTUNNEL_IP_TTL */ in ip_tun_encap_nlsize() 304 + nla_total_size(2); /* LWTUNNEL_IP_FLAGS */ in ip_tun_encap_nlsize() 399 + nla_total_size(16) /* LWTUNNEL_IP6_DST */ in ip6_tun_encap_nlsize() 400 + nla_total_size(16) /* LWTUNNEL_IP6_SRC */ in ip6_tun_encap_nlsize() 401 + nla_total_size(1) /* LWTUNNEL_IP6_HOPLIMIT */ in ip6_tun_encap_nlsize() 402 + nla_total_size(1) /* LWTUNNEL_IP6_TC */ in ip6_tun_encap_nlsize() 403 + nla_total_size(2); /* LWTUNNEL_IP6_FLAGS */ in ip6_tun_encap_nlsize()
|
| D | ip_gre.c | 1412 nla_total_size(4) + in ipgre_get_size() 1414 nla_total_size(2) + in ipgre_get_size() 1416 nla_total_size(2) + in ipgre_get_size() 1418 nla_total_size(4) + in ipgre_get_size() 1420 nla_total_size(4) + in ipgre_get_size() 1422 nla_total_size(4) + in ipgre_get_size() 1424 nla_total_size(4) + in ipgre_get_size() 1426 nla_total_size(1) + in ipgre_get_size() 1428 nla_total_size(1) + in ipgre_get_size() 1430 nla_total_size(1) + in ipgre_get_size() [all …]
|
| /Linux-v4.19/lib/ |
| D | nlattr.c | 214 len += nla_total_size(p->len); in nla_policy_len() 216 len += nla_total_size(nla_attr_len[p->type]); in nla_policy_len() 218 len += nla_total_size(nla_attr_minlen[p->type]); in nla_policy_len() 433 nla = skb_put(skb, nla_total_size(attrlen)); in __nla_reserve() 497 if (unlikely(skb_tailroom(skb) < nla_total_size(attrlen))) in nla_reserve() 526 len = nla_total_size(attrlen); in nla_reserve_64bit() 624 if (unlikely(skb_tailroom(skb) < nla_total_size(attrlen))) in nla_put() 651 len = nla_total_size(attrlen); in nla_put_64bit()
|
| /Linux-v4.19/net/8021q/ |
| D | vlan_netlink.c | 195 return nla_total_size(sizeof(struct nlattr)) + in vlan_qos_map_size() 196 nla_total_size(sizeof(struct ifla_vlan_qos_mapping)) * n; in vlan_qos_map_size() 203 return nla_total_size(2) + /* IFLA_VLAN_PROTOCOL */ in vlan_get_size() 204 nla_total_size(2) + /* IFLA_VLAN_ID */ in vlan_get_size() 205 nla_total_size(sizeof(struct ifla_vlan_flags)) + /* IFLA_VLAN_FLAGS */ in vlan_get_size()
|
| /Linux-v4.19/drivers/infiniband/ulp/ipoib/ |
| D | ipoib_netlink.c | 135 return nla_total_size(2) + /* IFLA_IPOIB_PKEY */ in ipoib_get_size() 136 nla_total_size(2) + /* IFLA_IPOIB_MODE */ in ipoib_get_size() 137 nla_total_size(2); /* IFLA_IPOIB_UMCAST */ in ipoib_get_size()
|
| /Linux-v4.19/net/sctp/ |
| D | diag.c | 254 return nla_total_size(sizeof(struct sctp_info)) in inet_assoc_attr_size() 255 + nla_total_size(1) /* INET_DIAG_SHUTDOWN */ in inet_assoc_attr_size() 256 + nla_total_size(1) /* INET_DIAG_TOS */ in inet_assoc_attr_size() 257 + nla_total_size(1) /* INET_DIAG_TCLASS */ in inet_assoc_attr_size() 258 + nla_total_size(4) /* INET_DIAG_MARK */ in inet_assoc_attr_size() 259 + nla_total_size(addrlen * asoc->peer.transport_count) in inet_assoc_attr_size() 260 + nla_total_size(addrlen * addrcnt) in inet_assoc_attr_size() 261 + nla_total_size(sizeof(struct inet_diag_meminfo)) in inet_assoc_attr_size() 262 + nla_total_size(sizeof(struct inet_diag_msg)) in inet_assoc_attr_size()
|
| /Linux-v4.19/drivers/net/can/ |
| D | dev.c | 1081 size += nla_total_size(sizeof(struct can_bittiming)); in can_get_size() 1083 size += nla_total_size(sizeof(struct can_bittiming_const)); in can_get_size() 1084 size += nla_total_size(sizeof(struct can_clock)); /* IFLA_CAN_CLOCK */ in can_get_size() 1085 size += nla_total_size(sizeof(u32)); /* IFLA_CAN_STATE */ in can_get_size() 1086 size += nla_total_size(sizeof(struct can_ctrlmode)); /* IFLA_CAN_CTRLMODE */ in can_get_size() 1087 size += nla_total_size(sizeof(u32)); /* IFLA_CAN_RESTART_MS */ in can_get_size() 1089 size += nla_total_size(sizeof(struct can_berr_counter)); in can_get_size() 1091 size += nla_total_size(sizeof(struct can_bittiming)); in can_get_size() 1093 size += nla_total_size(sizeof(struct can_bittiming_const)); in can_get_size() 1095 size += nla_total_size(sizeof(priv->termination)); /* IFLA_CAN_TERMINATION */ in can_get_size() [all …]
|
| /Linux-v4.19/net/openvswitch/ |
| D | flow_netlink.c | 325 + nla_total_size(16) /* OVS_TUNNEL_KEY_ATTR_IPV[46]_SRC */ in ovs_tun_key_attr_size() 326 + nla_total_size(16) /* OVS_TUNNEL_KEY_ATTR_IPV[46]_DST */ in ovs_tun_key_attr_size() 327 + nla_total_size(1) /* OVS_TUNNEL_KEY_ATTR_TOS */ in ovs_tun_key_attr_size() 328 + nla_total_size(1) /* OVS_TUNNEL_KEY_ATTR_TTL */ in ovs_tun_key_attr_size() 329 + nla_total_size(0) /* OVS_TUNNEL_KEY_ATTR_DONT_FRAGMENT */ in ovs_tun_key_attr_size() 330 + nla_total_size(0) /* OVS_TUNNEL_KEY_ATTR_CSUM */ in ovs_tun_key_attr_size() 331 + nla_total_size(0) /* OVS_TUNNEL_KEY_ATTR_OAM */ in ovs_tun_key_attr_size() 332 + nla_total_size(256) /* OVS_TUNNEL_KEY_ATTR_GENEVE_OPTS */ in ovs_tun_key_attr_size() 337 + nla_total_size(2) /* OVS_TUNNEL_KEY_ATTR_TP_SRC */ in ovs_tun_key_attr_size() 338 + nla_total_size(2); /* OVS_TUNNEL_KEY_ATTR_TP_DST */ in ovs_tun_key_attr_size() [all …]
|
| /Linux-v4.19/net/xfrm/ |
| D | xfrm_user.c | 1077 + nla_total_size(sizeof(struct xfrmu_spdinfo)) in xfrm_spdinfo_msgsize() 1078 + nla_total_size(sizeof(struct xfrmu_spdhinfo)) in xfrm_spdinfo_msgsize() 1079 + nla_total_size(sizeof(struct xfrmu_spdhthresh)) in xfrm_spdinfo_msgsize() 1080 + nla_total_size(sizeof(struct xfrmu_spdhthresh)); in xfrm_spdinfo_msgsize() 1204 + nla_total_size(sizeof(struct xfrmu_sadhinfo)) in xfrm_sadinfo_msgsize() 1205 + nla_total_size(4); /* XFRMA_SAD_CNT */ in xfrm_sadinfo_msgsize() 1722 return nla_total_size(sizeof(struct xfrm_userpolicy_type)); in userpolicy_type_attrsize() 1953 + nla_total_size(replay_size) in xfrm_aevent_msgsize() 1955 + nla_total_size(sizeof(struct xfrm_mark)) in xfrm_aevent_msgsize() 1956 + nla_total_size(4) /* XFRM_AE_RTHR */ in xfrm_aevent_msgsize() [all …]
|
| /Linux-v4.19/net/ipv6/ |
| D | seg6_local.c | 1038 nlsize = nla_total_size(4); /* action */ in seg6_local_get_encap_size() 1043 nlsize += nla_total_size((slwt->srh->hdrlen + 1) << 3); in seg6_local_get_encap_size() 1046 nlsize += nla_total_size(4); in seg6_local_get_encap_size() 1049 nlsize += nla_total_size(4); in seg6_local_get_encap_size() 1052 nlsize += nla_total_size(16); in seg6_local_get_encap_size() 1055 nlsize += nla_total_size(4); in seg6_local_get_encap_size() 1058 nlsize += nla_total_size(4); in seg6_local_get_encap_size() 1061 nlsize += nla_total_size(sizeof(struct nlattr)) + in seg6_local_get_encap_size() 1062 nla_total_size(MAX_PROG_NAME) + in seg6_local_get_encap_size() 1063 nla_total_size(4); in seg6_local_get_encap_size()
|
| /Linux-v4.19/net/wimax/ |
| D | op-msg.c | 131 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-v4.19/net/decnet/ |
| D | dn_table.c | 277 + nla_total_size(4) /* RTA_TABLE */ in dn_fib_nlmsg_size() 278 + nla_total_size(2) /* RTA_DST */ in dn_fib_nlmsg_size() 279 + nla_total_size(4) /* RTA_PRIORITY */ in dn_fib_nlmsg_size() 280 + nla_total_size(TCP_CA_NAME_MAX); /* RTAX_CC_ALGO */ in dn_fib_nlmsg_size() 283 payload += nla_total_size((RTAX_MAX * nla_total_size(4))); in dn_fib_nlmsg_size() 289 size_t nhsize = nla_total_size(sizeof(struct rtnexthop)); in dn_fib_nlmsg_size() 292 nhsize += nla_total_size(4); in dn_fib_nlmsg_size() 295 payload += nla_total_size(fi->fib_nhs * nhsize); in dn_fib_nlmsg_size()
|
| /Linux-v4.19/drivers/acpi/ |
| D | event.c | 106 size = nla_total_size(sizeof(struct acpi_genl_event)) + in acpi_bus_generate_netlink_event() 107 nla_total_size(0); in acpi_bus_generate_netlink_event()
|
| /Linux-v4.19/fs/dlm/ |
| D | netlink.c | 123 size = nla_total_size(sizeof(struct dlm_lock_data)) + in dlm_timeout_warn() 124 nla_total_size(0); /* why this? */ in dlm_timeout_warn()
|