Home
last modified time | relevance | path

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

12

/linux-2.6.39/net/bridge/
Dbr_netlink.c23 + nla_total_size(IFNAMSIZ) /* IFLA_IFNAME */ in br_nlmsg_size()
24 + nla_total_size(MAX_ADDR_LEN) /* IFLA_ADDRESS */ in br_nlmsg_size()
25 + nla_total_size(4) /* IFLA_MASTER */ in br_nlmsg_size()
26 + nla_total_size(4) /* IFLA_MTU */ in br_nlmsg_size()
27 + nla_total_size(4) /* IFLA_LINK */ in br_nlmsg_size()
28 + nla_total_size(1) /* IFLA_OPERSTATE */ in br_nlmsg_size()
29 + nla_total_size(1); /* IFLA_PROTINFO */ in br_nlmsg_size()
/linux-2.6.39/net/netfilter/
Dnfnetlink_log.c515 if (skb_tailroom(inst->skb) < nla_total_size(data_len)) { in __build_packet_message()
520 nla = (struct nlattr *)skb_put(inst->skb, nla_total_size(data_len)); in __build_packet_message()
583 + nla_total_size(sizeof(struct nfulnl_msg_packet_hdr)) in nfulnl_log_packet()
584 + nla_total_size(sizeof(u_int32_t)) /* ifindex */ in nfulnl_log_packet()
585 + nla_total_size(sizeof(u_int32_t)) /* ifindex */ in nfulnl_log_packet()
587 + nla_total_size(sizeof(u_int32_t)) /* ifindex */ in nfulnl_log_packet()
588 + nla_total_size(sizeof(u_int32_t)) /* ifindex */ in nfulnl_log_packet()
590 + nla_total_size(sizeof(u_int32_t)) /* mark */ in nfulnl_log_packet()
591 + nla_total_size(sizeof(u_int32_t)) /* uid */ in nfulnl_log_packet()
592 + nla_total_size(sizeof(u_int32_t)) /* gid */ in nfulnl_log_packet()
[all …]
Dnfnetlink_queue.c230 + nla_total_size(sizeof(struct nfqnl_msg_packet_hdr)) in nfqnl_build_packet_message()
231 + nla_total_size(sizeof(u_int32_t)) /* ifindex */ in nfqnl_build_packet_message()
232 + nla_total_size(sizeof(u_int32_t)) /* ifindex */ in nfqnl_build_packet_message()
234 + nla_total_size(sizeof(u_int32_t)) /* ifindex */ in nfqnl_build_packet_message()
235 + nla_total_size(sizeof(u_int32_t)) /* ifindex */ in nfqnl_build_packet_message()
237 + nla_total_size(sizeof(u_int32_t)) /* mark */ in nfqnl_build_packet_message()
238 + nla_total_size(sizeof(struct nfqnl_msg_packet_hw)) in nfqnl_build_packet_message()
239 + nla_total_size(sizeof(struct nfqnl_msg_packet_timestamp)); in nfqnl_build_packet_message()
257 size += nla_total_size(data_len); in nfqnl_build_packet_message()
360 if (skb_tailroom(skb) < nla_total_size(data_len)) { in nfqnl_build_packet_message()
[all …]
Dnf_conntrack_netlink.c479 return 2 * nla_total_size(0) /* CTA_COUNTERS_ORIG|REPL */ in ctnetlink_counters_size()
480 + 2 * nla_total_size(sizeof(uint64_t)) /* CTA_COUNTERS_PACKETS */ in ctnetlink_counters_size()
481 + 2 * nla_total_size(sizeof(uint64_t)) /* CTA_COUNTERS_BYTES */ in ctnetlink_counters_size()
495 return nla_total_size(0) /* CTA_SECCTX */ in ctnetlink_secctx_size()
496 + nla_total_size(sizeof(char) * len); /* CTA_SECCTX_NAME */ in ctnetlink_secctx_size()
508 return nla_total_size(0) + 2 * nla_total_size(sizeof(uint64_t)); in ctnetlink_timestamp_size()
518 + 3 * nla_total_size(0) /* CTA_TUPLE_ORIG|REPL|MASTER */ in ctnetlink_nlmsg_size()
519 + 3 * nla_total_size(0) /* CTA_TUPLE_IP */ in ctnetlink_nlmsg_size()
520 + 3 * nla_total_size(0) /* CTA_TUPLE_PROTO */ in ctnetlink_nlmsg_size()
521 + 3 * nla_total_size(sizeof(u_int8_t)) /* CTA_PROTO_NUM */ in ctnetlink_nlmsg_size()
[all …]
/linux-2.6.39/net/core/
Drtnetlink.c350 size = nla_total_size(sizeof(struct nlattr)) + /* IFLA_LINKINFO */ in rtnl_link_get_size()
351 nla_total_size(strlen(ops->kind) + 1); /* IFLA_INFO_KIND */ in rtnl_link_get_size()
355 size += nla_total_size(sizeof(struct nlattr)) + in rtnl_link_get_size()
360 size += nla_total_size(ops->get_xstats_size(dev)); in rtnl_link_get_size()
441 size = nla_total_size(sizeof(struct nlattr)); in rtnl_link_get_af_size()
446 size += nla_total_size(sizeof(struct nlattr)) + in rtnl_link_get_af_size()
706 size_t size = nla_total_size(sizeof(struct nlattr)); in rtnl_vfinfo_size()
707 size += nla_total_size(num_vfs * sizeof(struct nlattr)); in rtnl_vfinfo_size()
709 (nla_total_size(sizeof(struct ifla_vf_mac)) + in rtnl_vfinfo_size()
710 nla_total_size(sizeof(struct ifla_vf_vlan)) + in rtnl_vfinfo_size()
[all …]
Dfib_rules.c514 + nla_total_size(IFNAMSIZ) /* FRA_IIFNAME */ in fib_rule_nlmsg_size()
515 + nla_total_size(IFNAMSIZ) /* FRA_OIFNAME */ in fib_rule_nlmsg_size()
516 + nla_total_size(4) /* FRA_PRIORITY */ in fib_rule_nlmsg_size()
517 + nla_total_size(4) /* FRA_TABLE */ in fib_rule_nlmsg_size()
518 + nla_total_size(4) /* FRA_FWMARK */ in fib_rule_nlmsg_size()
519 + nla_total_size(4); /* FRA_FWMASK */ in fib_rule_nlmsg_size()
/linux-2.6.39/lib/
Dnlattr.c153 len += nla_total_size(p->len); in nla_policy_len()
155 len += nla_total_size(nla_attr_minlen[p->type]); in nla_policy_len()
327 nla = (struct nlattr *) skb_put(skb, nla_total_size(attrlen)); in __nla_reserve()
372 if (unlikely(skb_tailroom(skb) < nla_total_size(attrlen))) in nla_reserve()
448 if (unlikely(skb_tailroom(skb) < nla_total_size(attrlen))) in nla_put()
/linux-2.6.39/fs/quota/
Dnetlink.c40 int msg_size = 4 * nla_total_size(sizeof(u32)) + in quota_send_warning()
41 2 * nla_total_size(sizeof(u64)); in quota_send_warning()
/linux-2.6.39/net/xfrm/
Dxfrm_user.c886 + nla_total_size(sizeof(struct xfrmu_spdinfo)) in xfrm_spdinfo_msgsize()
887 + nla_total_size(sizeof(struct xfrmu_spdhinfo)); in xfrm_spdinfo_msgsize()
947 + nla_total_size(sizeof(struct xfrmu_sadhinfo)) in xfrm_sadinfo_msgsize()
948 + nla_total_size(4); /* XFRMA_SAD_CNT */ in xfrm_sadinfo_msgsize()
1438 return nla_total_size(sizeof(struct xfrm_userpolicy_type)); in userpolicy_type_attrsize()
1668 + nla_total_size(replay_size) in xfrm_aevent_msgsize()
1669 + nla_total_size(sizeof(struct xfrm_lifetime_cur)) in xfrm_aevent_msgsize()
1670 + nla_total_size(sizeof(struct xfrm_mark)) in xfrm_aevent_msgsize()
1671 + nla_total_size(4) /* XFRM_AE_RTHR */ in xfrm_aevent_msgsize()
1672 + nla_total_size(4); /* XFRM_AE_ETHR */ in xfrm_aevent_msgsize()
[all …]
/linux-2.6.39/net/8021q/
Dvlan_netlink.c145 return nla_total_size(sizeof(struct nlattr)) + in vlan_qos_map_size()
146 nla_total_size(sizeof(struct ifla_vlan_qos_mapping)) * n; in vlan_qos_map_size()
153 return nla_total_size(2) + /* IFLA_VLAN_ID */ in vlan_get_size()
/linux-2.6.39/fs/dlm/
Dnetlink.c122 size = nla_total_size(sizeof(struct dlm_lock_data)) + in dlm_timeout_warn()
123 nla_total_size(0); /* why this? */ in dlm_timeout_warn()
/linux-2.6.39/net/wimax/
Dop-msg.c130 msg_size = nla_total_size(size) in wimax_msg_alloc()
131 + nla_total_size(sizeof(u32)) in wimax_msg_alloc()
132 + (pipe_name ? nla_total_size(strlen(pipe_name)) : 0); in wimax_msg_alloc()
/linux-2.6.39/net/ipv4/
Dfib_rules.c240 return nla_total_size(4) /* dst */ in fib4_rule_nlmsg_payload()
241 + nla_total_size(4) /* src */ in fib4_rule_nlmsg_payload()
242 + nla_total_size(4); /* flow */ in fib4_rule_nlmsg_payload()
Dfib_semantics.c295 + nla_total_size(4) /* RTA_TABLE */ in fib_nlmsg_size()
296 + nla_total_size(4) /* RTA_DST */ in fib_nlmsg_size()
297 + nla_total_size(4) /* RTA_PRIORITY */ in fib_nlmsg_size()
298 + nla_total_size(4); /* RTA_PREFSRC */ in fib_nlmsg_size()
301 payload += nla_total_size((RTAX_MAX * nla_total_size(4))); in fib_nlmsg_size()
307 size_t nhsize = nla_total_size(sizeof(struct rtnexthop)); in fib_nlmsg_size()
310 nhsize += 2 * nla_total_size(4); in fib_nlmsg_size()
313 payload += nla_total_size(fi->fib_nhs * nhsize); in fib_nlmsg_size()
Dip_gre.c1617 nla_total_size(4) + in ipgre_get_size()
1619 nla_total_size(2) + in ipgre_get_size()
1621 nla_total_size(2) + in ipgre_get_size()
1623 nla_total_size(4) + in ipgre_get_size()
1625 nla_total_size(4) + in ipgre_get_size()
1627 nla_total_size(4) + in ipgre_get_size()
1629 nla_total_size(4) + in ipgre_get_size()
1631 nla_total_size(1) + in ipgre_get_size()
1633 nla_total_size(1) + in ipgre_get_size()
1635 nla_total_size(1) + in ipgre_get_size()
/linux-2.6.39/net/decnet/
Ddn_table.c270 + nla_total_size(4) /* RTA_TABLE */ in dn_fib_nlmsg_size()
271 + nla_total_size(2) /* RTA_DST */ in dn_fib_nlmsg_size()
272 + nla_total_size(4); /* RTA_PRIORITY */ in dn_fib_nlmsg_size()
275 payload += nla_total_size((RTAX_MAX * nla_total_size(4))); in dn_fib_nlmsg_size()
281 size_t nhsize = nla_total_size(sizeof(struct rtnexthop)); in dn_fib_nlmsg_size()
284 nhsize += nla_total_size(4); in dn_fib_nlmsg_size()
287 payload += nla_total_size(fi->fib_nhs * nhsize); in dn_fib_nlmsg_size()
/linux-2.6.39/kernel/
Dtaskstats.c423 size = nla_total_size(sizeof(struct cgroupstats)); in cgroupstats_user_cmd()
484 size = nla_total_size(sizeof(u32)) + in taskstats_packet_size()
485 nla_total_size(sizeof(struct taskstats)) + nla_total_size(0); in taskstats_packet_size()
487 size += nla_total_size(0); /* Padding for alignment */ in taskstats_packet_size()
/linux-2.6.39/net/phonet/
Dpn_netlink.c44 nla_total_size(1), GFP_KERNEL); in phonet_address_notify()
201 nla_total_size(1) + nla_total_size(4), GFP_KERNEL); in rtm_phonet_notify()
/linux-2.6.39/drivers/acpi/
Devent.c197 size = nla_total_size(sizeof(struct acpi_genl_event)) + in acpi_bus_generate_netlink_event()
198 nla_total_size(0); in acpi_bus_generate_netlink_event()
/linux-2.6.39/net/caif/
Dchnl_net.c474 nla_total_size(4) + in ipcaif_get_size()
476 nla_total_size(4) + in ipcaif_get_size()
478 nla_total_size(2) + in ipcaif_get_size()
/linux-2.6.39/net/ipv6/
Dfib6_rules.c238 return nla_total_size(16) /* dst */ in fib6_rule_nlmsg_payload()
239 + nla_total_size(16); /* src */ in fib6_rule_nlmsg_payload()
Daddrconf.c3455 + nla_total_size(16) /* IFA_ADDRESS */ in inet6_ifaddr_msgsize()
3456 + nla_total_size(sizeof(struct ifa_cacheinfo)); in inet6_ifaddr_msgsize()
3822 return nla_total_size(4) /* IFLA_INET6_FLAGS */ in inet6_ifla6_size()
3823 + nla_total_size(sizeof(struct ifla_cacheinfo)) in inet6_ifla6_size()
3824 + nla_total_size(DEVCONF_MAX * 4) /* IFLA_INET6_CONF */ in inet6_ifla6_size()
3825 + nla_total_size(IPSTATS_MIB_MAX * 8) /* IFLA_INET6_STATS */ in inet6_ifla6_size()
3826 + nla_total_size(ICMP6_MIB_MAX * 8); /* IFLA_INET6_ICMP6STATS */ in inet6_ifla6_size()
3832 + nla_total_size(IFNAMSIZ) /* IFLA_IFNAME */ in inet6_if_nlmsg_size()
3833 + nla_total_size(MAX_ADDR_LEN) /* IFLA_ADDRESS */ in inet6_if_nlmsg_size()
3834 + nla_total_size(4) /* IFLA_MTU */ in inet6_if_nlmsg_size()
[all …]
Droute.c2238 + nla_total_size(16) /* RTA_SRC */ in rt6_nlmsg_size()
2239 + nla_total_size(16) /* RTA_DST */ in rt6_nlmsg_size()
2240 + nla_total_size(16) /* RTA_GATEWAY */ in rt6_nlmsg_size()
2241 + nla_total_size(16) /* RTA_PREFSRC */ in rt6_nlmsg_size()
2242 + nla_total_size(4) /* RTA_TABLE */ in rt6_nlmsg_size()
2243 + nla_total_size(4) /* RTA_IIF */ in rt6_nlmsg_size()
2244 + nla_total_size(4) /* RTA_OIF */ in rt6_nlmsg_size()
2245 + nla_total_size(4) /* RTA_PRIORITY */ in rt6_nlmsg_size()
2246 + RTAX_MAX * nla_total_size(4) /* RTA_METRICS */ in rt6_nlmsg_size()
2247 + nla_total_size(sizeof(struct rta_cacheinfo)); in rt6_nlmsg_size()
Daddrlabel.c522 + nla_total_size(16) /* IFAL_ADDRESS */ in ip6addrlbl_msgsize()
523 + nla_total_size(4); /* IFAL_LABEL */ in ip6addrlbl_msgsize()
/linux-2.6.39/include/net/
Dnetlink.h658 static inline int nla_total_size(int payload) in nla_total_size() function
669 return nla_total_size(payload) - nla_attr_size(payload); in nla_padlen()

12