/linux-4.1.27/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() 399 return nla_total_size(sizeof(u8)) + /* IFLA_BOND_MODE */ in bond_get_size() 400 nla_total_size(sizeof(u32)) + /* IFLA_BOND_ACTIVE_SLAVE */ in bond_get_size() 401 nla_total_size(sizeof(u32)) + /* IFLA_BOND_MIIMON */ in bond_get_size() 402 nla_total_size(sizeof(u32)) + /* IFLA_BOND_UPDELAY */ in bond_get_size() [all …]
|
/linux-4.1.27/net/bridge/ |
D | br_netlink.c | 101 return num_vlan_infos * nla_total_size(sizeof(struct bridge_vlan_info)); in br_get_link_af_size_filtered() 106 return nla_total_size(1) /* IFLA_BRPORT_STATE */ in br_port_info_size() 107 + nla_total_size(2) /* IFLA_BRPORT_PRIORITY */ in br_port_info_size() 108 + nla_total_size(4) /* IFLA_BRPORT_COST */ in br_port_info_size() 109 + nla_total_size(1) /* IFLA_BRPORT_MODE */ in br_port_info_size() 110 + nla_total_size(1) /* IFLA_BRPORT_GUARD */ in br_port_info_size() 111 + nla_total_size(1) /* IFLA_BRPORT_PROTECT */ in br_port_info_size() 112 + nla_total_size(1) /* IFLA_BRPORT_FAST_LEAVE */ in br_port_info_size() 113 + nla_total_size(1) /* IFLA_BRPORT_LEARNING */ in br_port_info_size() 114 + nla_total_size(1) /* IFLA_BRPORT_UNICAST_FLOOD */ in br_port_info_size() [all …]
|
D | br_fdb.c | 647 + nla_total_size(ETH_ALEN) /* NDA_LLADDR */ in fdb_nlmsg_size() 648 + nla_total_size(sizeof(u32)) /* NDA_MASTER */ in fdb_nlmsg_size() 649 + nla_total_size(sizeof(u16)) /* NDA_VLAN */ in fdb_nlmsg_size() 650 + nla_total_size(sizeof(struct nda_cacheinfo)); in fdb_nlmsg_size()
|
D | br_mdb.c | 206 + nla_total_size(sizeof(struct br_mdb_entry)); in rtnl_mdb_nlmsg_size()
|
/linux-4.1.27/net/core/ |
D | rtnetlink.c | 419 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() 506 size = nla_total_size(sizeof(struct nlattr)); in rtnl_link_get_af_size() 511 size += nla_total_size(sizeof(struct nlattr)) + in rtnl_link_get_af_size() 814 size_t size = nla_total_size(sizeof(struct nlattr)); in rtnl_vfinfo_size() 815 size += nla_total_size(num_vfs * sizeof(struct nlattr)); in rtnl_vfinfo_size() 817 (nla_total_size(sizeof(struct ifla_vf_mac)) + in rtnl_vfinfo_size() [all …]
|
D | fib_rules.c | 531 + nla_total_size(IFNAMSIZ) /* FRA_IIFNAME */ in fib_rule_nlmsg_size() 532 + nla_total_size(IFNAMSIZ) /* FRA_OIFNAME */ in fib_rule_nlmsg_size() 533 + nla_total_size(4) /* FRA_PRIORITY */ in fib_rule_nlmsg_size() 534 + nla_total_size(4) /* FRA_TABLE */ in fib_rule_nlmsg_size() 535 + nla_total_size(4) /* FRA_SUPPRESS_PREFIXLEN */ in fib_rule_nlmsg_size() 536 + nla_total_size(4) /* FRA_SUPPRESS_IFGROUP */ in fib_rule_nlmsg_size() 537 + nla_total_size(4) /* FRA_FWMARK */ in fib_rule_nlmsg_size() 538 + nla_total_size(4); /* FRA_FWMASK */ in fib_rule_nlmsg_size()
|
D | neighbour.c | 2776 + nla_total_size(MAX_ADDR_LEN) /* NDA_DST */ in neigh_nlmsg_size() 2777 + nla_total_size(MAX_ADDR_LEN) /* NDA_LLADDR */ in neigh_nlmsg_size() 2778 + nla_total_size(sizeof(struct nda_cacheinfo)) in neigh_nlmsg_size() 2779 + nla_total_size(4); /* NDA_PROBES */ in neigh_nlmsg_size()
|
D | net_namespace.c | 536 + nla_total_size(sizeof(s32)) /* NETNSA_NSID */ in rtnl_net_get_size()
|
/linux-4.1.27/net/netfilter/ |
D | nfnetlink_log.c | 582 if (skb_tailroom(inst->skb) < nla_total_size(data_len)) in __build_packet_message() 585 nla = (struct nlattr *)skb_put(inst->skb, nla_total_size(data_len)); in __build_packet_message() 649 + nla_total_size(sizeof(struct nfulnl_msg_packet_hdr)) in nfulnl_log_packet() 650 + nla_total_size(sizeof(u_int32_t)) /* ifindex */ in nfulnl_log_packet() 651 + nla_total_size(sizeof(u_int32_t)) /* ifindex */ in nfulnl_log_packet() 653 + nla_total_size(sizeof(u_int32_t)) /* ifindex */ in nfulnl_log_packet() 654 + nla_total_size(sizeof(u_int32_t)) /* ifindex */ in nfulnl_log_packet() 656 + nla_total_size(sizeof(u_int32_t)) /* mark */ in nfulnl_log_packet() 657 + nla_total_size(sizeof(u_int32_t)) /* uid */ in nfulnl_log_packet() 658 + nla_total_size(sizeof(u_int32_t)) /* gid */ in nfulnl_log_packet() [all …]
|
D | nf_conntrack_netlink.c | 340 return nla_total_size(labels->words * sizeof(long)); in ctnetlink_label_size() 541 return 2 * nla_total_size(0) /* CTA_COUNTERS_ORIG|REPL */ in ctnetlink_acct_size() 542 + 2 * nla_total_size(sizeof(uint64_t)) /* CTA_COUNTERS_PACKETS */ in ctnetlink_acct_size() 543 + 2 * nla_total_size(sizeof(uint64_t)) /* CTA_COUNTERS_BYTES */ in ctnetlink_acct_size() 557 return nla_total_size(0) /* CTA_SECCTX */ in ctnetlink_secctx_size() 558 + nla_total_size(sizeof(char) * len); /* CTA_SECCTX_NAME */ in ctnetlink_secctx_size() 570 return nla_total_size(0) + 2 * nla_total_size(sizeof(uint64_t)); in ctnetlink_timestamp_size() 580 + 3 * nla_total_size(0) /* CTA_TUPLE_ORIG|REPL|MASTER */ in ctnetlink_nlmsg_size() 581 + 3 * nla_total_size(0) /* CTA_TUPLE_IP */ in ctnetlink_nlmsg_size() 582 + 3 * nla_total_size(0) /* CTA_TUPLE_PROTO */ in ctnetlink_nlmsg_size() [all …]
|
D | nfnetlink_queue_core.c | 302 + nla_total_size(sizeof(struct nfqnl_msg_packet_hdr)) in nfqnl_build_packet_message() 303 + nla_total_size(sizeof(u_int32_t)) /* ifindex */ in nfqnl_build_packet_message() 304 + nla_total_size(sizeof(u_int32_t)) /* ifindex */ in nfqnl_build_packet_message() 306 + nla_total_size(sizeof(u_int32_t)) /* ifindex */ in nfqnl_build_packet_message() 307 + nla_total_size(sizeof(u_int32_t)) /* ifindex */ in nfqnl_build_packet_message() 309 + nla_total_size(sizeof(u_int32_t)) /* mark */ in nfqnl_build_packet_message() 310 + nla_total_size(sizeof(struct nfqnl_msg_packet_hw)) in nfqnl_build_packet_message() 311 + nla_total_size(sizeof(u_int32_t)) /* skbinfo */ in nfqnl_build_packet_message() 312 + nla_total_size(sizeof(u_int32_t)); /* cap_len */ in nfqnl_build_packet_message() 315 size += nla_total_size(sizeof(struct nfqnl_msg_packet_timestamp)); in nfqnl_build_packet_message() [all …]
|
D | nf_conntrack_proto_dccp.c | 705 return nla_total_size(0) /* CTA_PROTOINFO_DCCP */ in dccp_nlattr_size()
|
D | nf_conntrack_proto_sctp.c | 558 return nla_total_size(0) /* CTA_PROTOINFO_SCTP */ in sctp_nlattr_size()
|
D | nf_conntrack_proto_tcp.c | 1282 return nla_total_size(0) /* CTA_PROTOINFO_TCP */ in tcp_nlattr_size()
|
/linux-4.1.27/net/ipv4/ |
D | ipip.c | 425 nla_total_size(4) + in ipip_get_size() 427 nla_total_size(4) + in ipip_get_size() 429 nla_total_size(4) + 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(1) + 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() 443 nla_total_size(2) + in ipip_get_size()
|
D | ip_gre.c | 741 nla_total_size(4) + in ipgre_get_size() 743 nla_total_size(2) + in ipgre_get_size() 745 nla_total_size(2) + in ipgre_get_size() 747 nla_total_size(4) + in ipgre_get_size() 749 nla_total_size(4) + in ipgre_get_size() 751 nla_total_size(4) + in ipgre_get_size() 753 nla_total_size(4) + in ipgre_get_size() 755 nla_total_size(1) + in ipgre_get_size() 757 nla_total_size(1) + in ipgre_get_size() 759 nla_total_size(1) + in ipgre_get_size() [all …]
|
D | fib_semantics.c | 359 + nla_total_size(4) /* RTA_TABLE */ in fib_nlmsg_size() 360 + nla_total_size(4) /* RTA_DST */ in fib_nlmsg_size() 361 + nla_total_size(4) /* RTA_PRIORITY */ in fib_nlmsg_size() 362 + nla_total_size(4) /* RTA_PREFSRC */ in fib_nlmsg_size() 363 + nla_total_size(TCP_CA_NAME_MAX); /* RTAX_CC_ALGO */ in fib_nlmsg_size() 366 payload += nla_total_size((RTAX_MAX * nla_total_size(4))); in fib_nlmsg_size() 372 size_t nhsize = nla_total_size(sizeof(struct rtnexthop)); in fib_nlmsg_size() 375 nhsize += 2 * nla_total_size(4); in fib_nlmsg_size() 378 payload += nla_total_size(fi->fib_nhs * nhsize); in fib_nlmsg_size()
|
D | ip_vti.c | 494 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()
|
D | inet_diag.c | 95 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()
|
D | fib_rules.c | 299 return nla_total_size(4) /* dst */ in fib4_rule_nlmsg_payload() 300 + nla_total_size(4) /* src */ in fib4_rule_nlmsg_payload() 301 + nla_total_size(4); /* flow */ in fib4_rule_nlmsg_payload()
|
D | devinet.c | 1478 + nla_total_size(4) /* IFA_ADDRESS */ in inet_nlmsg_size() 1479 + nla_total_size(4) /* IFA_LOCAL */ in inet_nlmsg_size() 1480 + nla_total_size(4) /* IFA_BROADCAST */ in inet_nlmsg_size() 1481 + nla_total_size(IFNAMSIZ) /* IFA_LABEL */ in inet_nlmsg_size() 1482 + nla_total_size(4) /* IFA_FLAGS */ in inet_nlmsg_size() 1483 + nla_total_size(sizeof(struct ifa_cacheinfo)); /* IFA_CACHEINFO */ in inet_nlmsg_size() 1655 return nla_total_size(IPV4_DEVCONF_MAX * 4); /* IFLA_INET_CONF */ in inet_get_link_af_size() 1732 + nla_total_size(4); /* NETCONFA_IFINDEX */ in inet_netconf_msgsize_devconf() 1736 size += nla_total_size(4); in inet_netconf_msgsize_devconf() 1738 size += nla_total_size(4); in inet_netconf_msgsize_devconf() [all …]
|
D | ipmr.c | 2316 + nla_total_size(4) /* RTA_TABLE */ in mroute_msgsize() 2317 + nla_total_size(4) /* RTA_SRC */ in mroute_msgsize() 2318 + nla_total_size(4) /* RTA_DST */ in mroute_msgsize() 2323 + nla_total_size(4) /* RTA_IIF */ in mroute_msgsize() 2324 + nla_total_size(0) /* RTA_MULTIPATH */ in mroute_msgsize() 2327 + nla_total_size(sizeof(struct rta_mfc_stats)) in mroute_msgsize()
|
D | fib_frontend.c | 405 return len + nla_total_size(4); in put_rtax() 516 mx = kzalloc(3 * nla_total_size(4), GFP_KERNEL); in rtentry_to_fib_config()
|
/linux-4.1.27/net/8021q/ |
D | vlan_netlink.c | 164 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.1.27/drivers/infiniband/ulp/ipoib/ |
D | ipoib_netlink.c | 154 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.1.27/lib/ |
D | nlattr.c | 158 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.1.27/net/openvswitch/ |
D | flow_netlink.c | 263 return nla_total_size(8) /* OVS_TUNNEL_KEY_ATTR_ID */ in ovs_tun_key_attr_size() 264 + nla_total_size(4) /* OVS_TUNNEL_KEY_ATTR_IPV4_SRC */ in ovs_tun_key_attr_size() 265 + nla_total_size(4) /* OVS_TUNNEL_KEY_ATTR_IPV4_DST */ in ovs_tun_key_attr_size() 266 + nla_total_size(1) /* OVS_TUNNEL_KEY_ATTR_TOS */ in ovs_tun_key_attr_size() 267 + nla_total_size(1) /* OVS_TUNNEL_KEY_ATTR_TTL */ in ovs_tun_key_attr_size() 268 + nla_total_size(0) /* OVS_TUNNEL_KEY_ATTR_DONT_FRAGMENT */ in ovs_tun_key_attr_size() 269 + nla_total_size(0) /* OVS_TUNNEL_KEY_ATTR_CSUM */ in ovs_tun_key_attr_size() 270 + nla_total_size(0) /* OVS_TUNNEL_KEY_ATTR_OAM */ in ovs_tun_key_attr_size() 271 + nla_total_size(256) /* OVS_TUNNEL_KEY_ATTR_GENEVE_OPTS */ in ovs_tun_key_attr_size() 275 + nla_total_size(2) /* OVS_TUNNEL_KEY_ATTR_TP_SRC */ in ovs_tun_key_attr_size() [all …]
|
D | datapath.c | 386 + nla_total_size(hdrlen) /* OVS_PACKET_ATTR_PACKET */ in upcall_msg_size() 387 + nla_total_size(ovs_key_attr_size()); /* OVS_PACKET_ATTR_KEY */ in upcall_msg_size() 395 size += nla_total_size(ovs_tun_key_attr_size()); in upcall_msg_size() 687 len += nla_total_size(sfid->ufid_len); in ovs_flow_cmd_msg_size() 691 len += nla_total_size(ovs_key_attr_size()); in ovs_flow_cmd_msg_size() 695 len += nla_total_size(ovs_key_attr_size()); in ovs_flow_cmd_msg_size() 699 len += nla_total_size(acts->actions_len); in ovs_flow_cmd_msg_size() 702 + nla_total_size(sizeof(struct ovs_flow_stats)) /* OVS_FLOW_ATTR_STATS */ in ovs_flow_cmd_msg_size() 703 + nla_total_size(1) /* OVS_FLOW_ATTR_TCP_FLAGS */ in ovs_flow_cmd_msg_size() 704 + nla_total_size(8); /* OVS_FLOW_ATTR_USED */ in ovs_flow_cmd_msg_size() [all …]
|
/linux-4.1.27/fs/quota/ |
D | netlink.c | 51 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.1.27/net/xfrm/ |
D | xfrm_user.c | 967 + nla_total_size(sizeof(struct xfrmu_spdinfo)) in xfrm_spdinfo_msgsize() 968 + nla_total_size(sizeof(struct xfrmu_spdhinfo)) in xfrm_spdinfo_msgsize() 969 + nla_total_size(sizeof(struct xfrmu_spdhthresh)) in xfrm_spdinfo_msgsize() 970 + nla_total_size(sizeof(struct xfrmu_spdhthresh)); in xfrm_spdinfo_msgsize() 1093 + nla_total_size(sizeof(struct xfrmu_sadhinfo)) in xfrm_sadinfo_msgsize() 1094 + nla_total_size(4); /* XFRMA_SAD_CNT */ in xfrm_sadinfo_msgsize() 1569 return nla_total_size(sizeof(struct xfrm_userpolicy_type)); in userpolicy_type_attrsize() 1792 + nla_total_size(replay_size) in xfrm_aevent_msgsize() 1793 + nla_total_size(sizeof(struct xfrm_lifetime_cur)) in xfrm_aevent_msgsize() 1794 + nla_total_size(sizeof(struct xfrm_mark)) in xfrm_aevent_msgsize() [all …]
|
/linux-4.1.27/drivers/net/can/ |
D | dev.c | 930 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.1.27/fs/dlm/ |
D | netlink.c | 119 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.1.27/drivers/acpi/ |
D | event.c | 105 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.1.27/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-4.1.27/net/decnet/ |
D | dn_table.c | 275 + 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()
|
D | dn_dev.c | 673 + 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.1.27/net/ipv6/ |
D | sit.c | 1628 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 …]
|
D | ip6_gre.c | 1577 nla_total_size(4) + in ip6gre_get_size() 1579 nla_total_size(2) + in ip6gre_get_size() 1581 nla_total_size(2) + in ip6gre_get_size() 1583 nla_total_size(4) + in ip6gre_get_size() 1585 nla_total_size(4) + in ip6gre_get_size() 1587 nla_total_size(sizeof(struct in6_addr)) + in ip6gre_get_size() 1589 nla_total_size(sizeof(struct in6_addr)) + in ip6gre_get_size() 1591 nla_total_size(1) + in ip6gre_get_size() 1593 nla_total_size(1) + in ip6gre_get_size() 1595 nla_total_size(1) + in ip6gre_get_size() [all …]
|
D | fib6_rules.c | 268 return nla_total_size(16) /* dst */ in fib6_rule_nlmsg_payload() 269 + nla_total_size(16); /* src */ in fib6_rule_nlmsg_payload()
|
D | ip6_vti.c | 985 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()
|
D | ip6_tunnel.c | 1722 nla_total_size(4) + in ip6_tnl_get_size() 1724 nla_total_size(sizeof(struct in6_addr)) + in ip6_tnl_get_size() 1726 nla_total_size(sizeof(struct in6_addr)) + in ip6_tnl_get_size() 1728 nla_total_size(1) + in ip6_tnl_get_size() 1730 nla_total_size(1) + in ip6_tnl_get_size() 1732 nla_total_size(4) + in ip6_tnl_get_size() 1734 nla_total_size(4) + in ip6_tnl_get_size() 1736 nla_total_size(1) + in ip6_tnl_get_size()
|
D | addrconf.c | 468 + nla_total_size(4); /* NETCONFA_IFINDEX */ in inet6_netconf_msgsize_devconf() 472 size += nla_total_size(4); in inet6_netconf_msgsize_devconf() 475 size += nla_total_size(4); in inet6_netconf_msgsize_devconf() 478 size += nla_total_size(4); in inet6_netconf_msgsize_devconf() 4210 + nla_total_size(16) /* IFA_LOCAL */ in inet6_ifaddr_msgsize() 4211 + nla_total_size(16) /* IFA_ADDRESS */ in inet6_ifaddr_msgsize() 4212 + nla_total_size(sizeof(struct ifa_cacheinfo)) in inet6_ifaddr_msgsize() 4213 + nla_total_size(4) /* IFA_FLAGS */; in inet6_ifaddr_msgsize() 4604 return nla_total_size(4) /* IFLA_INET6_FLAGS */ in inet6_ifla6_size() 4605 + nla_total_size(sizeof(struct ifla_cacheinfo)) in inet6_ifla6_size() [all …]
|
D | route.c | 2738 + nla_total_size(16) /* RTA_SRC */ in rt6_nlmsg_size() 2739 + nla_total_size(16) /* RTA_DST */ in rt6_nlmsg_size() 2740 + nla_total_size(16) /* RTA_GATEWAY */ in rt6_nlmsg_size() 2741 + nla_total_size(16) /* RTA_PREFSRC */ in rt6_nlmsg_size() 2742 + nla_total_size(4) /* RTA_TABLE */ in rt6_nlmsg_size() 2743 + nla_total_size(4) /* RTA_IIF */ in rt6_nlmsg_size() 2744 + nla_total_size(4) /* RTA_OIF */ in rt6_nlmsg_size() 2745 + nla_total_size(4) /* RTA_PRIORITY */ in rt6_nlmsg_size() 2746 + RTAX_MAX * nla_total_size(4) /* RTA_METRICS */ in rt6_nlmsg_size() 2747 + nla_total_size(sizeof(struct rta_cacheinfo)) in rt6_nlmsg_size() [all …]
|
D | addrlabel.c | 520 + nla_total_size(16) /* IFAL_ADDRESS */ in ip6addrlbl_msgsize() 521 + nla_total_size(4); /* IFAL_LABEL */ in ip6addrlbl_msgsize()
|
D | ip6mr.c | 2408 + nla_total_size(4) /* RTA_TABLE */ in mr6_msgsize() 2409 + nla_total_size(sizeof(struct in6_addr)) /* RTA_SRC */ in mr6_msgsize() 2410 + nla_total_size(sizeof(struct in6_addr)) /* RTA_DST */ in mr6_msgsize() 2415 + nla_total_size(4) /* RTA_IIF */ in mr6_msgsize() 2416 + nla_total_size(0) /* RTA_MULTIPATH */ in mr6_msgsize() 2419 + nla_total_size(sizeof(struct rta_mfc_stats)) in mr6_msgsize()
|
D | ndisc.c | 1031 size_t msg_size = base_size + nla_total_size(sizeof(struct in6_addr)); in ndisc_ra_useropt()
|
/linux-4.1.27/drivers/net/ |
D | vxlan.c | 377 + nla_total_size(ETH_ALEN) /* NDA_LLADDR */ in vxlan_nlmsg_size() 378 + nla_total_size(sizeof(struct in6_addr)) /* NDA_DST */ in vxlan_nlmsg_size() 379 + nla_total_size(sizeof(__be16)) /* NDA_PORT */ in vxlan_nlmsg_size() 380 + nla_total_size(sizeof(__be32)) /* NDA_VNI */ in vxlan_nlmsg_size() 381 + nla_total_size(sizeof(__u32)) /* NDA_IFINDEX */ in vxlan_nlmsg_size() 382 + nla_total_size(sizeof(__s32)) /* NDA_LINK_NETNSID */ in vxlan_nlmsg_size() 383 + nla_total_size(sizeof(struct nda_cacheinfo)); in vxlan_nlmsg_size() 2771 return nla_total_size(sizeof(__u32)) + /* IFLA_VXLAN_ID */ in vxlan_get_size() 2772 nla_total_size(sizeof(struct in6_addr)) + /* IFLA_VXLAN_GROUP{6} */ in vxlan_get_size() 2773 nla_total_size(sizeof(__u32)) + /* IFLA_VXLAN_LINK */ in vxlan_get_size() [all …]
|
D | macvlan.c | 1409 return nla_total_size(0) /* IFLA_MACVLAN_MACADDR_DATA */ in macvlan_get_size_mac() 1410 + vlan->macaddr_count * nla_total_size(sizeof(u8) * ETH_ALEN); in macvlan_get_size_mac() 1418 + nla_total_size(4) /* IFLA_MACVLAN_MODE */ in macvlan_get_size() 1419 + nla_total_size(2) /* IFLA_MACVLAN_FLAGS */ in macvlan_get_size() 1420 + nla_total_size(4) /* IFLA_MACVLAN_MACADDR_COUNT */ in macvlan_get_size()
|
/linux-4.1.27/kernel/ |
D | taskstats.c | 435 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.1.27/net/phonet/ |
D | pn_netlink.c | 44 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.1.27/net/caif/ |
D | chnl_net.c | 503 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.1.27/drivers/net/wireless/ti/wlcore/ |
D | testmode.c | 125 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.1.27/net/mpls/ |
D | af_mpls.c | 894 + nla_total_size(2 + rt->rt_via_alen) /* RTA_VIA */ in lfib_nlmsg_size() 895 + nla_total_size(4); /* RTA_DST */ in lfib_nlmsg_size() 897 payload += nla_total_size(rt->rt_labels * 4); in lfib_nlmsg_size() 899 payload += nla_total_size(4); in lfib_nlmsg_size()
|
/linux-4.1.27/include/net/ |
D | netlink.h | 642 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.1.27/drivers/net/wireless/ath/ath10k/ |
D | testmode.c | 121 nla_total_size(sizeof(u32))); in ath10k_tm_cmd_get_version()
|
/linux-4.1.27/drivers/net/ipvlan/ |
D | ipvlan_main.c | 405 + nla_total_size(2) /* IFLA_IPVLAN_MODE */ in ipvlan_nl_getsize()
|
/linux-4.1.27/drivers/thermal/ |
D | thermal_core.c | 1768 size = nla_total_size(sizeof(struct thermal_genl_event)) + in thermal_generate_netlink_event() 1769 nla_total_size(0); in thermal_generate_netlink_event()
|
/linux-4.1.27/drivers/net/caif/ |
D | caif_hsi.c | 1383 s += nla_total_size(caif_hsi_policy[i].len); in caif_hsi_get_size()
|
/linux-4.1.27/drivers/net/wireless/ |
D | mac80211_hwsim.c | 1798 nla_total_size(sizeof(u32))); in mac80211_hwsim_testmode_cmd()
|
/linux-4.1.27/drivers/scsi/ |
D | pmcraid.c | 1442 total_size = nla_total_size(data_size); in pmcraid_notify_aen()
|