Home
last modified time | relevance | path

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

1234

/Linux-v5.4/drivers/net/bonding/
Dbond_netlink.c21 return nla_total_size(sizeof(u8)) + /* IFLA_BOND_SLAVE_STATE */ in bond_get_slave_size()
22 nla_total_size(sizeof(u8)) + /* IFLA_BOND_SLAVE_MII_STATUS */ in bond_get_slave_size()
23 nla_total_size(sizeof(u32)) + /* IFLA_BOND_SLAVE_LINK_FAILURE_COUNT */ in bond_get_slave_size()
24 nla_total_size(MAX_ADDR_LEN) + /* IFLA_BOND_SLAVE_PERM_HWADDR */ in bond_get_slave_size()
25 nla_total_size(sizeof(u16)) + /* IFLA_BOND_SLAVE_QUEUE_ID */ in bond_get_slave_size()
26 nla_total_size(sizeof(u16)) + /* IFLA_BOND_SLAVE_AD_AGGREGATOR_ID */ in bond_get_slave_size()
27 nla_total_size(sizeof(u8)) + /* IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE */ in bond_get_slave_size()
28 nla_total_size(sizeof(u16)) + /* IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE */ in bond_get_slave_size()
472 return nla_total_size(sizeof(u8)) + /* IFLA_BOND_MODE */ in bond_get_size()
473 nla_total_size(sizeof(u32)) + /* IFLA_BOND_ACTIVE_SLAVE */ in bond_get_size()
[all …]
/Linux-v5.4/net/netfilter/
Dnf_tables_trace.c196 nla_total_size(strlen(info->chain->table->name)) + in nft_trace_notify()
197 nla_total_size(strlen(info->chain->name)) + in nft_trace_notify()
199 nla_total_size(sizeof(__be32)) + /* trace type */ in nft_trace_notify()
200 nla_total_size(0) + /* VERDICT, nested */ in nft_trace_notify()
201 nla_total_size(sizeof(u32)) + /* verdict code */ in nft_trace_notify()
202 nla_total_size(sizeof(u32)) + /* id */ in nft_trace_notify()
203 nla_total_size(NFT_TRACETYPE_LL_HSIZE) + in nft_trace_notify()
204 nla_total_size(NFT_TRACETYPE_NETWORK_HSIZE) + in nft_trace_notify()
205 nla_total_size(NFT_TRACETYPE_TRANSPORT_HSIZE) + in nft_trace_notify()
206 nla_total_size(sizeof(u32)) + /* iif */ in nft_trace_notify()
[all …]
Dnfnetlink_log.c396 size += nla_total_size(0); /* nested */ in nfulnl_get_bridge_size()
397 size += nla_total_size(sizeof(u16)); /* id */ in nfulnl_get_bridge_size()
398 size += nla_total_size(sizeof(u16)); /* tag */ in nfulnl_get_bridge_size()
402 size += nla_total_size(skb->network_header - skb->mac_header); in nfulnl_get_bridge_size()
642 if (skb_tailroom(inst->skb) < nla_total_size(data_len)) in __build_packet_message()
645 nla = skb_put(inst->skb, nla_total_size(data_len)); in __build_packet_message()
710 + nla_total_size(sizeof(struct nfulnl_msg_packet_hdr)) in nfulnl_log_packet()
711 + nla_total_size(sizeof(u_int32_t)) /* ifindex */ in nfulnl_log_packet()
712 + nla_total_size(sizeof(u_int32_t)) /* ifindex */ in nfulnl_log_packet()
714 + nla_total_size(sizeof(u_int32_t)) /* ifindex */ in nfulnl_log_packet()
[all …]
Dnfnetlink_queue.c330 nlalen += nla_total_size(nla_total_size(sizeof(__be16)) + in nfqnl_get_bridge_size()
331 nla_total_size(sizeof(__be16))); in nfqnl_get_bridge_size()
334 nlalen += nla_total_size((entskb->network_header - in nfqnl_get_bridge_size()
398 + nla_total_size(sizeof(struct nfqnl_msg_packet_hdr)) in nfqnl_build_packet_message()
399 + nla_total_size(sizeof(u_int32_t)) /* ifindex */ in nfqnl_build_packet_message()
400 + nla_total_size(sizeof(u_int32_t)) /* ifindex */ in nfqnl_build_packet_message()
402 + nla_total_size(sizeof(u_int32_t)) /* ifindex */ in nfqnl_build_packet_message()
403 + nla_total_size(sizeof(u_int32_t)) /* ifindex */ in nfqnl_build_packet_message()
405 + nla_total_size(sizeof(u_int32_t)) /* mark */ in nfqnl_build_packet_message()
406 + nla_total_size(sizeof(struct nfqnl_msg_packet_hw)) in nfqnl_build_packet_message()
[all …]
Dnf_conntrack_netlink.c364 return nla_total_size(sizeof(labels->bits)); in ctnetlink_label_size()
614 return 2 * nla_total_size(0) /* CTA_COUNTERS_ORIG|REPL */ in ctnetlink_acct_size()
629 return nla_total_size(0) /* CTA_SECCTX */ in ctnetlink_secctx_size()
630 + nla_total_size(sizeof(char) * len); /* CTA_SECCTX_NAME */ in ctnetlink_secctx_size()
641 return nla_total_size(0) + 2 * nla_total_size_64bit(sizeof(uint64_t)); in ctnetlink_timestamp_size()
651 + 3 * nla_total_size(0) /* CTA_TUPLE_ORIG|REPL|MASTER */ in ctnetlink_nlmsg_size()
652 + 3 * nla_total_size(0) /* CTA_TUPLE_IP */ in ctnetlink_nlmsg_size()
653 + 3 * nla_total_size(0) /* CTA_TUPLE_PROTO */ in ctnetlink_nlmsg_size()
654 + 3 * nla_total_size(sizeof(u_int8_t)) /* CTA_PROTO_NUM */ in ctnetlink_nlmsg_size()
655 + nla_total_size(sizeof(u_int32_t)) /* CTA_ID */ in ctnetlink_nlmsg_size()
[all …]
/Linux-v5.4/net/bridge/
Dbr_netlink.c115 vinfo_sz += num_vlan_infos * nla_total_size(sizeof(struct bridge_vlan_info)); in br_get_link_af_size_filtered()
122 return nla_total_size(1) /* IFLA_BRPORT_STATE */ in br_port_info_size()
123 + nla_total_size(2) /* IFLA_BRPORT_PRIORITY */ in br_port_info_size()
124 + nla_total_size(4) /* IFLA_BRPORT_COST */ in br_port_info_size()
125 + nla_total_size(1) /* IFLA_BRPORT_MODE */ in br_port_info_size()
126 + nla_total_size(1) /* IFLA_BRPORT_GUARD */ in br_port_info_size()
127 + nla_total_size(1) /* IFLA_BRPORT_PROTECT */ in br_port_info_size()
128 + nla_total_size(1) /* IFLA_BRPORT_FAST_LEAVE */ in br_port_info_size()
129 + nla_total_size(1) /* IFLA_BRPORT_MCAST_TO_UCAST */ in br_port_info_size()
130 + nla_total_size(1) /* IFLA_BRPORT_LEARNING */ in br_port_info_size()
[all …]
Dbr_netlink_tunnel.c23 return nla_total_size(0) + /* nest IFLA_BRIDGE_VLAN_TUNNEL_INFO */ in __get_vlan_tinfo_size()
24 nla_total_size(sizeof(u32)) + /* IFLA_BRIDGE_VLAN_TUNNEL_ID */ in __get_vlan_tinfo_size()
25 nla_total_size(sizeof(u16)) + /* IFLA_BRIDGE_VLAN_TUNNEL_VID */ in __get_vlan_tinfo_size()
26 nla_total_size(sizeof(u16)); /* IFLA_BRIDGE_VLAN_TUNNEL_FLAGS */ in __get_vlan_tinfo_size()
/Linux-v5.4/net/psample/
Dpsample.c220 meta_len = (in_ifindex ? nla_total_size(sizeof(u16)) : 0) + in psample_sample_packet()
221 (out_ifindex ? nla_total_size(sizeof(u16)) : 0) + in psample_sample_packet()
222 nla_total_size(sizeof(u32)) + /* sample_rate */ in psample_sample_packet()
223 nla_total_size(sizeof(u32)) + /* orig_size */ in psample_sample_packet()
224 nla_total_size(sizeof(u32)) + /* group_num */ in psample_sample_packet()
225 nla_total_size(sizeof(u32)); /* seq */ in psample_sample_packet()
228 if (meta_len + nla_total_size(data_len) > PSAMPLE_MAX_PACKET_SIZE) in psample_sample_packet()
270 int nla_len = nla_total_size(data_len); in psample_sample_packet()
/Linux-v5.4/net/ipv4/
Dipip.c546 nla_total_size(4) + in ipip_get_size()
548 nla_total_size(4) + in ipip_get_size()
550 nla_total_size(4) + in ipip_get_size()
552 nla_total_size(1) + in ipip_get_size()
554 nla_total_size(1) + in ipip_get_size()
556 nla_total_size(1) + in ipip_get_size()
558 nla_total_size(1) + in ipip_get_size()
560 nla_total_size(2) + in ipip_get_size()
562 nla_total_size(2) + in ipip_get_size()
564 nla_total_size(2) + in ipip_get_size()
[all …]
Dip_tunnel_core.c308 + nla_total_size(4) /* LWTUNNEL_IP_DST */ in ip_tun_encap_nlsize()
309 + nla_total_size(4) /* LWTUNNEL_IP_SRC */ in ip_tun_encap_nlsize()
310 + nla_total_size(1) /* LWTUNNEL_IP_TOS */ in ip_tun_encap_nlsize()
311 + nla_total_size(1) /* LWTUNNEL_IP_TTL */ in ip_tun_encap_nlsize()
312 + nla_total_size(2); /* LWTUNNEL_IP_FLAGS */ in ip_tun_encap_nlsize()
408 + nla_total_size(16) /* LWTUNNEL_IP6_DST */ in ip6_tun_encap_nlsize()
409 + nla_total_size(16) /* LWTUNNEL_IP6_SRC */ in ip6_tun_encap_nlsize()
410 + nla_total_size(1) /* LWTUNNEL_IP6_HOPLIMIT */ in ip6_tun_encap_nlsize()
411 + nla_total_size(1) /* LWTUNNEL_IP6_TC */ in ip6_tun_encap_nlsize()
412 + nla_total_size(2); /* LWTUNNEL_IP6_FLAGS */ in ip6_tun_encap_nlsize()
Dip_gre.c1336 nla_total_size(4) + in ipgre_get_size()
1338 nla_total_size(2) + in ipgre_get_size()
1340 nla_total_size(2) + in ipgre_get_size()
1342 nla_total_size(4) + in ipgre_get_size()
1344 nla_total_size(4) + in ipgre_get_size()
1346 nla_total_size(4) + in ipgre_get_size()
1348 nla_total_size(4) + in ipgre_get_size()
1350 nla_total_size(1) + in ipgre_get_size()
1352 nla_total_size(1) + in ipgre_get_size()
1354 nla_total_size(1) + in ipgre_get_size()
[all …]
Dtcp_diag.c162 size += nla_total_size(md5sig_count * in tcp_diag_get_aux_size()
172 size += nla_total_size(0) + in tcp_diag_get_aux_size()
173 nla_total_size(TCP_ULP_NAME_MAX); in tcp_diag_get_aux_size()
/Linux-v5.4/net/core/
Drtnetlink.c505 size = nla_total_size(sizeof(struct nlattr)) + in rtnl_link_get_slave_info_data_size()
521 size = nla_total_size(sizeof(struct nlattr)) + /* IFLA_LINKINFO */ in rtnl_link_get_size()
522 nla_total_size(strlen(ops->kind) + 1); /* IFLA_INFO_KIND */ in rtnl_link_get_size()
526 size += nla_total_size(sizeof(struct nlattr)) + in rtnl_link_get_size()
531 size += nla_total_size(ops->get_xstats_size(dev)); in rtnl_link_get_size()
587 size = nla_total_size(sizeof(struct nlattr)); in rtnl_link_get_af_size()
593 size += nla_total_size(sizeof(struct nlattr)) + in rtnl_link_get_af_size()
911 size_t size = nla_total_size(0); in rtnl_vfinfo_size()
913 (nla_total_size(0) + in rtnl_vfinfo_size()
914 nla_total_size(sizeof(struct ifla_vf_mac)) + in rtnl_vfinfo_size()
[all …]
Ddrop_monitor.c533 return nla_total_size(0) + in net_dm_in_port_size()
535 nla_total_size(sizeof(u32)) + in net_dm_in_port_size()
537 nla_total_size(IFNAMSIZ + 1); in net_dm_in_port_size()
550 nla_total_size(sizeof(u16)) + in net_dm_packet_report_size()
552 nla_total_size(sizeof(u64)) + in net_dm_packet_report_size()
554 nla_total_size(NET_DM_MAX_SYMBOL_LEN + 1) + in net_dm_packet_report_size()
558 nla_total_size(sizeof(u64)) + in net_dm_packet_report_size()
560 nla_total_size(sizeof(u32)) + in net_dm_packet_report_size()
562 nla_total_size(sizeof(u16)) + in net_dm_packet_report_size()
564 nla_total_size(payload_len); in net_dm_packet_report_size()
[all …]
Dfib_rules.c936 + nla_total_size(IFNAMSIZ) /* FRA_IIFNAME */ in fib_rule_nlmsg_size()
937 + nla_total_size(IFNAMSIZ) /* FRA_OIFNAME */ in fib_rule_nlmsg_size()
938 + nla_total_size(4) /* FRA_PRIORITY */ in fib_rule_nlmsg_size()
939 + nla_total_size(4) /* FRA_TABLE */ in fib_rule_nlmsg_size()
940 + nla_total_size(4) /* FRA_SUPPRESS_PREFIXLEN */ in fib_rule_nlmsg_size()
941 + nla_total_size(4) /* FRA_SUPPRESS_IFGROUP */ in fib_rule_nlmsg_size()
942 + nla_total_size(4) /* FRA_FWMARK */ in fib_rule_nlmsg_size()
943 + nla_total_size(4) /* FRA_FWMASK */ in fib_rule_nlmsg_size()
945 + nla_total_size(sizeof(struct fib_kuid_range)) in fib_rule_nlmsg_size()
946 + nla_total_size(1) /* FRA_PROTOCOL */ in fib_rule_nlmsg_size()
[all …]
/Linux-v5.4/net/sctp/
Ddiag.c239 return nla_total_size(sizeof(struct sctp_info)) in inet_assoc_attr_size()
240 + nla_total_size(1) /* INET_DIAG_SHUTDOWN */ in inet_assoc_attr_size()
241 + nla_total_size(1) /* INET_DIAG_TOS */ in inet_assoc_attr_size()
242 + nla_total_size(1) /* INET_DIAG_TCLASS */ in inet_assoc_attr_size()
243 + nla_total_size(4) /* INET_DIAG_MARK */ in inet_assoc_attr_size()
244 + nla_total_size(4) /* INET_DIAG_CLASS_ID */ in inet_assoc_attr_size()
245 + nla_total_size(addrlen * asoc->peer.transport_count) in inet_assoc_attr_size()
246 + nla_total_size(addrlen * addrcnt) in inet_assoc_attr_size()
247 + nla_total_size(sizeof(struct inet_diag_meminfo)) in inet_assoc_attr_size()
248 + nla_total_size(sizeof(struct inet_diag_msg)) in inet_assoc_attr_size()
/Linux-v5.4/net/8021q/
Dvlan_netlink.c193 return nla_total_size(sizeof(struct nlattr)) + in vlan_qos_map_size()
194 nla_total_size(sizeof(struct ifla_vlan_qos_mapping)) * n; in vlan_qos_map_size()
201 return nla_total_size(2) + /* IFLA_VLAN_PROTOCOL */ in vlan_get_size()
202 nla_total_size(2) + /* IFLA_VLAN_ID */ in vlan_get_size()
203 nla_total_size(sizeof(struct ifla_vlan_flags)) + /* IFLA_VLAN_FLAGS */ in vlan_get_size()
/Linux-v5.4/drivers/infiniband/ulp/ipoib/
Dipoib_netlink.c149 return nla_total_size(2) + /* IFLA_IPOIB_PKEY */ in ipoib_get_size()
150 nla_total_size(2) + /* IFLA_IPOIB_MODE */ in ipoib_get_size()
151 nla_total_size(2); /* IFLA_IPOIB_UMCAST */ in ipoib_get_size()
/Linux-v5.4/net/sched/
Dact_skbedit.c312 return nla_total_size(sizeof(struct tc_skbedit)) in tcf_skbedit_get_fill_size()
313 + nla_total_size(sizeof(u32)) /* TCA_SKBEDIT_PRIORITY */ in tcf_skbedit_get_fill_size()
314 + nla_total_size(sizeof(u16)) /* TCA_SKBEDIT_QUEUE_MAPPING */ in tcf_skbedit_get_fill_size()
315 + nla_total_size(sizeof(u32)) /* TCA_SKBEDIT_MARK */ in tcf_skbedit_get_fill_size()
316 + nla_total_size(sizeof(u16)) /* TCA_SKBEDIT_PTYPE */ in tcf_skbedit_get_fill_size()
317 + nla_total_size(sizeof(u32)) /* TCA_SKBEDIT_MASK */ in tcf_skbedit_get_fill_size()
/Linux-v5.4/lib/
Dnlattr.c446 len += nla_total_size(p->len); in nla_policy_len()
448 len += nla_total_size(nla_attr_len[p->type]); in nla_policy_len()
450 len += nla_total_size(nla_attr_minlen[p->type]); in nla_policy_len()
640 nla = skb_put(skb, nla_total_size(attrlen)); in __nla_reserve()
704 if (unlikely(skb_tailroom(skb) < nla_total_size(attrlen))) in nla_reserve()
733 len = nla_total_size(attrlen); in nla_reserve_64bit()
831 if (unlikely(skb_tailroom(skb) < nla_total_size(attrlen))) in nla_put()
858 len = nla_total_size(attrlen); in nla_put_64bit()
/Linux-v5.4/drivers/net/can/
Ddev.c1095 size += nla_total_size(sizeof(struct can_bittiming)); in can_get_size()
1097 size += nla_total_size(sizeof(struct can_bittiming_const)); in can_get_size()
1098 size += nla_total_size(sizeof(struct can_clock)); /* IFLA_CAN_CLOCK */ in can_get_size()
1099 size += nla_total_size(sizeof(u32)); /* IFLA_CAN_STATE */ in can_get_size()
1100 size += nla_total_size(sizeof(struct can_ctrlmode)); /* IFLA_CAN_CTRLMODE */ in can_get_size()
1101 size += nla_total_size(sizeof(u32)); /* IFLA_CAN_RESTART_MS */ in can_get_size()
1103 size += nla_total_size(sizeof(struct can_berr_counter)); in can_get_size()
1105 size += nla_total_size(sizeof(struct can_bittiming)); in can_get_size()
1107 size += nla_total_size(sizeof(struct can_bittiming_const)); in can_get_size()
1109 size += nla_total_size(sizeof(priv->termination)); /* IFLA_CAN_TERMINATION */ in can_get_size()
[all …]
/Linux-v5.4/net/xfrm/
Dxfrm_user.c1097 + nla_total_size(sizeof(struct xfrmu_spdinfo)) in xfrm_spdinfo_msgsize()
1098 + nla_total_size(sizeof(struct xfrmu_spdhinfo)) in xfrm_spdinfo_msgsize()
1099 + nla_total_size(sizeof(struct xfrmu_spdhthresh)) in xfrm_spdinfo_msgsize()
1100 + nla_total_size(sizeof(struct xfrmu_spdhthresh)); in xfrm_spdinfo_msgsize()
1224 + nla_total_size(sizeof(struct xfrmu_sadhinfo)) in xfrm_sadinfo_msgsize()
1225 + nla_total_size(4); /* XFRMA_SAD_CNT */ in xfrm_sadinfo_msgsize()
1735 return nla_total_size(sizeof(struct xfrm_userpolicy_type)); in userpolicy_type_attrsize()
1966 + nla_total_size(replay_size) in xfrm_aevent_msgsize()
1968 + nla_total_size(sizeof(struct xfrm_mark)) in xfrm_aevent_msgsize()
1969 + nla_total_size(4) /* XFRM_AE_RTHR */ in xfrm_aevent_msgsize()
[all …]
/Linux-v5.4/net/openvswitch/
Dflow_netlink.c313 + nla_total_size(16) /* OVS_TUNNEL_KEY_ATTR_IPV[46]_SRC */ in ovs_tun_key_attr_size()
314 + nla_total_size(16) /* OVS_TUNNEL_KEY_ATTR_IPV[46]_DST */ in ovs_tun_key_attr_size()
315 + nla_total_size(1) /* OVS_TUNNEL_KEY_ATTR_TOS */ in ovs_tun_key_attr_size()
316 + nla_total_size(1) /* OVS_TUNNEL_KEY_ATTR_TTL */ in ovs_tun_key_attr_size()
317 + nla_total_size(0) /* OVS_TUNNEL_KEY_ATTR_DONT_FRAGMENT */ in ovs_tun_key_attr_size()
318 + nla_total_size(0) /* OVS_TUNNEL_KEY_ATTR_CSUM */ in ovs_tun_key_attr_size()
319 + nla_total_size(0) /* OVS_TUNNEL_KEY_ATTR_OAM */ in ovs_tun_key_attr_size()
320 + nla_total_size(256) /* OVS_TUNNEL_KEY_ATTR_GENEVE_OPTS */ in ovs_tun_key_attr_size()
325 + nla_total_size(2) /* OVS_TUNNEL_KEY_ATTR_TP_SRC */ in ovs_tun_key_attr_size()
326 + nla_total_size(2); /* OVS_TUNNEL_KEY_ATTR_TP_DST */ in ovs_tun_key_attr_size()
[all …]
/Linux-v5.4/net/ipv6/
Dseg6_local.c1045 nlsize = nla_total_size(4); /* action */ in seg6_local_get_encap_size()
1050 nlsize += nla_total_size((slwt->srh->hdrlen + 1) << 3); in seg6_local_get_encap_size()
1053 nlsize += nla_total_size(4); in seg6_local_get_encap_size()
1056 nlsize += nla_total_size(4); in seg6_local_get_encap_size()
1059 nlsize += nla_total_size(16); in seg6_local_get_encap_size()
1062 nlsize += nla_total_size(4); in seg6_local_get_encap_size()
1065 nlsize += nla_total_size(4); in seg6_local_get_encap_size()
1068 nlsize += nla_total_size(sizeof(struct nlattr)) + in seg6_local_get_encap_size()
1069 nla_total_size(MAX_PROG_NAME) + in seg6_local_get_encap_size()
1070 nla_total_size(4); in seg6_local_get_encap_size()
/Linux-v5.4/net/wimax/
Dop-msg.c116 msg_size = nla_total_size(size) in wimax_msg_alloc()
117 + nla_total_size(sizeof(u32)) in wimax_msg_alloc()
118 + (pipe_name ? nla_total_size(strlen(pipe_name)) : 0); in wimax_msg_alloc()

1234