Home
last modified time | relevance | path

Searched refs:nla_len (Results 1 – 25 of 37) sorted by relevance

12

/third_party/libnl/lib/
Dattr.c132 int nla_len(const struct nlattr *nla) in nla_len() function
134 return nla->nla_len - NLA_HDRLEN; in nla_len()
152 nla->nla_len >= sizeof(*nla) && in nla_ok()
153 nla->nla_len <= remaining; in nla_ok()
174 int totlen = NLA_ALIGN(nla->nla_len); in nla_next()
209 if (nla_len(nla) < minlen) in validate_nla()
212 if (pt->maxlen && nla_len(nla) > pt->maxlen) in validate_nla()
217 if (data[nla_len(nla) - 1] != '\0') in validate_nla()
361 minlen = min_t(int, count, nla_len(src)); in nla_memcpy()
381 size_t srclen = nla_len(nla); in nla_strlcpy()
[all …]
Ddata.c87 return nl_data_alloc(nla_data(nla), nla_len(nla)); in nl_data_alloc_attr()
Dmsg.c871 int len = nla_len(attr); in dump_attr()
883 int padlen, alen = nla_len(nla); in dump_attrs()
/third_party/ltp/testcases/kernel/controllers/cgroup/
Dcgroup_regression_getdelays.c124 __u8 genl_cmd, __u16 nla_type, void *nla_data, int nla_len) in send_cmd() argument
142 na->nla_len = nla_len + 1 + NLA_HDRLEN; in send_cmd()
143 memcpy(NLA_DATA(na), nla_data, nla_len); in send_cmd()
144 msg.n.nlmsg_len += NLMSG_ALIGN(na->nla_len); in send_cmd()
188 na = (struct nlattr *)((char *)na + NLA_ALIGN(na->nla_len)); in get_family_id()
438 len += NLA_ALIGN(na->nla_len); in main()
443 aggr_len = NLA_PAYLOAD(na->nla_len); in main()
483 na->nla_len) < 0) { in main()
497 len2 += NLA_ALIGN(na->nla_len); in main()
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/drivers/
Ddriver_nl80211_capa.c260 num = nla_len(tb) / sizeof(u32); in wiphy_info_cipher_suites()
358 len = nla_len(tb); in wiphy_info_ext_feature_flags()
570 nla_len(attr), NULL); in wiphy_info_extended_capab()
583 len = nla_len(tb1[NL80211_ATTR_EXT_CAPA]); in wiphy_info_extended_capab()
593 len = nla_len(tb1[NL80211_ATTR_EXT_CAPA_MASK]); in wiphy_info_extended_capab()
706 os_malloc(nla_len(tb[NL80211_ATTR_EXT_CAPA])); in wiphy_info_handler()
710 nla_len(tb[NL80211_ATTR_EXT_CAPA])); in wiphy_info_handler()
712 nla_len(tb[NL80211_ATTR_EXT_CAPA]); in wiphy_info_handler()
718 os_malloc(nla_len(tb[NL80211_ATTR_EXT_CAPA_MASK])); in wiphy_info_handler()
722 nla_len(tb[NL80211_ATTR_EXT_CAPA_MASK])); in wiphy_info_handler()
[all …]
Ddriver_nl80211_event.c268 event.assoc_info.req_ies_len = nla_len(req_ie); in mlme_event_assoc()
354 event.assoc_reject.resp_ies_len = nla_len(resp_ie); in mlme_event_connect()
391 event.assoc_info.req_ies_len = nla_len(req_ie); in mlme_event_connect()
409 event.assoc_info.resp_ies_len = nla_len(resp_ie); in mlme_event_connect()
431 event.assoc_info.key_replay_ctr_len = nla_len(key_replay_ctr); in mlme_event_connect()
435 event.assoc_info.ptk_kck_len = nla_len(ptk_kck); in mlme_event_connect()
439 event.assoc_info.ptk_kek_len = nla_len(ptk_kek); in mlme_event_connect()
459 event.assoc_info.fils_pmk_len = nla_len(fils_pmk); in mlme_event_connect()
614 if (nla_len(addr) != ETH_ALEN) in mlme_timeout_event()
903 len = nla_len(frame); in mlme_event()
[all …]
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/drivers/
Ddriver_nl80211_capa.c268 num = nla_len(tb) / sizeof(u32); in get_akm_suites_info()
353 nla_data(nl_akms), nla_len(nl_akms), NULL); in get_iface_akm_suites_info()
441 num = nla_len(tb) / sizeof(u32); in wiphy_info_cipher_suites()
539 len = nla_len(tb); in wiphy_info_ext_feature_flags()
796 nla_len(attr), NULL); in wiphy_info_extended_capab()
809 len = nla_len(tb1[NL80211_ATTR_EXT_CAPA]); in wiphy_info_extended_capab()
819 len = nla_len(tb1[NL80211_ATTR_EXT_CAPA_MASK]); in wiphy_info_extended_capab()
934 os_malloc(nla_len(tb[NL80211_ATTR_EXT_CAPA])); in wiphy_info_handler()
938 nla_len(tb[NL80211_ATTR_EXT_CAPA])); in wiphy_info_handler()
940 nla_len(tb[NL80211_ATTR_EXT_CAPA]); in wiphy_info_handler()
[all …]
Ddriver_nl80211_event.c304 event.assoc_info.req_ies_len = nla_len(req_ie); in mlme_event_assoc()
347 nla_len(tb[NL80211_ATTR_VENDOR_DATA]), NULL); in qca_drv_connect_fail_reason_code_handler()
478 event.assoc_reject.resp_ies_len = nla_len(resp_ie); in mlme_event_connect()
526 event.assoc_info.req_ies_len = nla_len(req_ie); in mlme_event_connect()
544 event.assoc_info.resp_ies_len = nla_len(resp_ie); in mlme_event_connect()
566 event.assoc_info.key_replay_ctr_len = nla_len(key_replay_ctr); in mlme_event_connect()
570 event.assoc_info.ptk_kck_len = nla_len(ptk_kck); in mlme_event_connect()
574 event.assoc_info.ptk_kek_len = nla_len(ptk_kek); in mlme_event_connect()
594 event.assoc_info.fils_pmk_len = nla_len(fils_pmk); in mlme_event_connect()
764 if (nla_len(addr) != ETH_ALEN) in mlme_timeout_event()
[all …]
/third_party/libnl/lib/route/link/
Dinet6.c156 if (tb[IFLA_INET6_CONF] && nla_len(tb[IFLA_INET6_CONF]) % 4) in inet6_parse_protinfo()
158 if (tb[IFLA_INET6_STATS] && nla_len(tb[IFLA_INET6_STATS]) % 8) in inet6_parse_protinfo()
160 if (tb[IFLA_INET6_ICMP6STATS] && nla_len(tb[IFLA_INET6_ICMP6STATS]) % 8) in inet6_parse_protinfo()
189 int len = nla_len(tb[IFLA_INET6_STATS]) / 8; in inet6_parse_protinfo()
193 (tb[IFLA_INET6_ICMP6STATS] && nla_len(tb[IFLA_INET6_ICMP6STATS]) < 6)) { in inet6_parse_protinfo()
213 int len = min_t(int, __ICMP6_MIB_MAX, nla_len(tb[IFLA_INET6_ICMP6STATS]) / 8); in inet6_parse_protinfo()
Dinet.c108 if (tb[IFLA_INET_CONF] && nla_len(tb[IFLA_INET_CONF]) % 4) in inet_parse_af()
113 int len = min_t(int, IPV4_DEVCONF_MAX, nla_len(tb[IFLA_INET_CONF]) / 4); in inet_parse_af()
Dvlan.c129 if (nla_len(nla) < sizeof(*map)) in vlan_parse()
160 if (nla_len(nla) < sizeof(*map)) in vlan_parse()
Dveth.c68 nla_len(nla_peer) - sizeof(struct ifinfomsg), in veth_parse()
Dmacvlan.c122 len = nla_len(tb[IFLA_MACVLAN_MACADDR_DATA]); in macvlan_parse()
132 nla_len(nla) < ETH_ALEN) in macvlan_parse()
Dbridge.c139 if (nla_len(attr) < 1) in bridge_parse_protinfo()
201 if (nla_len(attr) != sizeof(struct bridge_vlan_info)) in bridge_parse_af_full()
/third_party/libnl/lib/netfilter/
Dqueue_msg.c125 nla_len(attr)); in nfnlmsg_queue_msg_parse()
269 nla.nla_len = payload_len + sizeof(nla); in nfnl_queue_msg_send_verdict_payload()
270 nlmsg_hdr(nlmsg)->nlmsg_len += nla.nla_len; in nfnl_queue_msg_send_verdict_payload()
Dlog_msg.c123 err = nfnl_log_msg_set_payload(msg, nla_data(attr), nla_len(attr)); in nfnlmsg_log_msg_parse()
/third_party/libnl/include/netlink/
Dattr.h88 extern int nla_len(const struct nlattr *);
331 for (pos = (struct nlattr *) nla_data(nla), rem = nla_len(nla); \
Dnetlink-kernel.h241 __u16 nla_len;
/third_party/libnl/lib/route/cls/
Dematch.c434 if (thdr->nmatches > (nla_len(tb[TCA_EMATCH_TREE_LIST]) / in rtnl_ematch_parse_attr()
454 nmatches+1, nla_len(a)); in rtnl_ematch_parse_attr()
456 if (nla_len(a) < sizeof(*hdr)) { in rtnl_ematch_parse_attr()
469 len = nla_len(a) - NLA_ALIGN(sizeof(*hdr)); in rtnl_ematch_parse_attr()
/third_party/libnl/lib/route/
Dact.c406 NLMSG_ALIGN(nla_len(tb)), NULL); in rtnl_act_parse()
423 nla_len(nla[i]), NULL); in rtnl_act_parse()
Droute_obj.c987 int alen = nla_len(nla) - offsetof(struct rtvia, rtvia_addr); in rtnl_route_parse_via()
1027 size_t tlen = nla_len(attr); in parse_multipath()
1213 if (mtb[i] && nla_len(mtb[i]) >= sizeof(uint32_t)) { in rtnl_route_parse()
1275 int alen = nla_len(tb[RTA_VIA]) - offsetof(struct rtvia, rtvia_addr); in rtnl_route_parse()
/third_party/libnl/lib/route/cls/ematch/
Dmeta.c138 vlen = nla_len(tb[TCA_EM_META_LVALUE]); in meta_parse()
152 vlen = nla_len(tb[TCA_EM_META_RVALUE]); in meta_parse()
/third_party/libnl/include/linux-private/linux/
Dnetlink.h207 __u16 nla_len; member
/third_party/libnl/lib/route/qdisc/
Dnetem.c332 old_len = head->nla_len; in netem_msg_fill_raw()
333 head->nla_len = (char *)tail - (char *)head; in netem_msg_fill_raw()
334 msg->nm_nlh->nlmsg_len += (head->nla_len - old_len); in netem_msg_fill_raw()
/third_party/libnl/
Dlibnl-3.sym258 nla_len;

12