/external/libnl/lib/ |
D | attr.c | 471 int nla_len(const struct nlattr *nla) in nla_len() function 473 return nla->nla_len - NLA_HDRLEN; in nla_len() 491 nla->nla_len >= sizeof(*nla) && in nla_ok() 492 nla->nla_len <= remaining; in nla_ok() 513 int totlen = NLA_ALIGN(nla->nla_len); in nla_next() 546 if (pt->type == NLA_FLAG && nla_len(nla) > 0) in validate_nla() 549 if (nla_len(nla) < minlen) in validate_nla() 552 if (pt->maxlen && nla_len(nla) > pt->maxlen) in validate_nla() 557 if (data[nla_len(nla) - 1] != '\0') in validate_nla() 702 minlen = min_t(int, count, nla_len(src)); in nla_memcpy() [all …]
|
D | data.c | 74 return nl_data_alloc(nla_data(nla), nla_len(nla)); in nl_data_alloc_attr()
|
/external/wpa_supplicant_8/src/drivers/ |
D | driver_nl80211_capa.c | 264 num = nla_len(tb) / sizeof(u32); in wiphy_info_cipher_suites() 359 if (ext_feature_isset(nla_data(tb), nla_len(tb), in wiphy_info_ext_feature_flags() 565 os_malloc(nla_len(tb[NL80211_ATTR_EXT_CAPA])); in wiphy_info_handler() 569 nla_len(tb[NL80211_ATTR_EXT_CAPA])); in wiphy_info_handler() 571 nla_len(tb[NL80211_ATTR_EXT_CAPA]); in wiphy_info_handler() 574 os_malloc(nla_len(tb[NL80211_ATTR_EXT_CAPA_MASK])); in wiphy_info_handler() 578 nla_len(tb[NL80211_ATTR_EXT_CAPA_MASK])); in wiphy_info_handler() 592 if (nla_len(nl) != sizeof(*vinfo)) { in wiphy_info_handler() 643 if (nla_len(nl) != sizeof(*vinfo)) { in wiphy_info_handler() 759 nla_data(nl_vend), nla_len(nl_vend), NULL); in dfs_info_handler() [all …]
|
D | driver_nl80211_event.c | 322 event.assoc_reject.resp_ies_len = nla_len(resp_ie); in mlme_event_connect() 337 event.assoc_info.req_ies_len = nla_len(req_ie); in mlme_event_connect() 351 event.assoc_info.resp_ies_len = nla_len(resp_ie); in mlme_event_connect() 362 event.assoc_info.key_replay_ctr_len = nla_len(key_replay_ctr); in mlme_event_connect() 366 event.assoc_info.ptk_kck_len = nla_len(ptk_kck); in mlme_event_connect() 370 event.assoc_info.ptk_kek_len = nla_len(ptk_kek); in mlme_event_connect() 528 if (nla_len(addr) != ETH_ALEN) in mlme_timeout_event() 817 len = nla_len(frame); in mlme_event() 838 nla_data(frame), nla_len(frame)); in mlme_event() 842 mlme_event_auth(drv, nla_data(frame), nla_len(frame)); in mlme_event() [all …]
|
D | driver_nl80211_scan.c | 628 ie_len = nla_len(bss[NL80211_BSS_INFORMATION_ELEMENTS]); in bss_info_handler() 635 beacon_ie_len = nla_len(bss[NL80211_BSS_BEACON_IES]); in bss_info_handler() 901 nla_data(nl_vendor), nla_len(nl_vendor), NULL); in scan_cookie_handler()
|
/external/iw/ |
D | wowlan.c | 367 nla_len(attrs[NL80211_ATTR_WOWLAN_TRIGGERS]), in print_wowlan_handler() 393 nla_len(trig[NL80211_WOWLAN_TRIG_NET_DETECT]), NULL); in print_wowlan_handler() 409 nla_len(match), in print_wowlan_handler() 413 nla_len(tb[NL80211_SCHED_SCAN_MATCH_ATTR_SSID]), in print_wowlan_handler() 436 nla_data(pattern), nla_len(pattern), NULL); in print_wowlan_handler() 442 masklen = nla_len(patattr[NL80211_PKTPAT_MASK]); in print_wowlan_handler() 443 patlen = nla_len(patattr[NL80211_PKTPAT_PATTERN]); in print_wowlan_handler()
|
D | event.c | 56 len = nla_len(attr); in print_frame() 188 nla_len(attrs[NL80211_ATTR_KEY_SEQ]) == 6) { in parse_mic_failure() 220 nla_len(attrs[NL80211_ATTR_WOWLAN_TRIGGERS]), NULL); in parse_wowlan_wake_event() 246 nla_len(match), in parse_wowlan_wake_event() 249 print_ssid_escaped(nla_len(tb_match[NL80211_ATTR_SSID]), in parse_wowlan_wake_event() 264 int l = nla_len(tb[NL80211_WOWLAN_TRIG_WAKEUP_PKT_80211]); in parse_wowlan_wake_event() 276 int l = nla_len(tb[NL80211_WOWLAN_TRIG_WAKEUP_PKT_8023]); in parse_wowlan_wake_event() 362 print_ssid_escaped(nla_len(nst), nla_data(nst)); in print_event() 581 nla_len(tb[NL80211_ATTR_VENDOR_DATA])); in print_event()
|
D | info.c | 142 nla_len(nl_band), NULL); in print_phy_handler() 157 nla_len(tb_band[NL80211_BAND_ATTR_HT_MCS_SET]) == 16) in print_phy_handler() 172 nla_len(nl_freq), freq_policy); in print_phy_handler() 226 nla_len(nl_rate), rate_policy); in print_phy_handler() 295 int num = nla_len(tb_msg[NL80211_ATTR_CIPHER_SUITES]) / sizeof(__u32); in print_phy_handler() 501 (nla_len(tb_wowlan[NL80211_WOWLAN_TRIG_PKT_PATTERN]) < in print_phy_handler() 531 if (nla_len(tb_msg[NL80211_ATTR_HT_CAPABILITY_MASK]) >= sizeof(*cm)) { in print_phy_handler() 553 (int)(nla_len(tb_msg[NL80211_ATTR_HT_CAPABILITY_MASK]))); in print_phy_handler() 619 if (ext_feature_isset(nla_data(tb), nla_len(tb), in print_phy_handler()
|
D | coalesce.c | 221 nla_data(rule), nla_len(rule), NULL); in print_coalesce_handler() 242 nla_data(pattern), nla_len(pattern), in print_coalesce_handler() 250 masklen = nla_len(patattr[NL80211_PKTPAT_MASK]); in print_coalesce_handler() 251 patlen = nla_len(patattr[NL80211_PKTPAT_PATTERN]); in print_coalesce_handler()
|
D | genl.c | 53 nla_data(mcgrp), nla_len(mcgrp), NULL); in family_handler() 59 grp->group, nla_len(tb_mcgrp[CTRL_ATTR_MCAST_GRP_NAME]))) in family_handler()
|
D | hwsim.c | 48 nla_len(attrs[NL80211_ATTR_TESTDATA]), NULL); in print_hwsim_ps_handler()
|
D | reg.c | 171 …nla_parse(tb_rule, NL80211_REG_RULE_ATTR_MAX, nla_data(nl_rule), nla_len(nl_rule), reg_rule_policy… in print_reg_handler()
|
D | link.c | 84 nla_len(bss[NL80211_BSS_INFORMATION_ELEMENTS]), in link_bss_handler()
|
D | interface.c | 340 print_ssid_escaped(nla_len(tb_msg[NL80211_ATTR_SSID]), in print_iface_handler()
|
/external/libnl/lib/netfilter/ |
D | queue_msg.c | 135 nla_len(attr)); in nfnlmsg_queue_msg_parse() 243 nla.nla_len = payload_len + sizeof(nla); in nfnl_queue_msg_send_verdict_payload() 244 nlmsg_hdr(nlmsg)->nlmsg_len += nla.nla_len; in nfnl_queue_msg_send_verdict_payload()
|
D | log_msg.c | 133 err = nfnl_log_msg_set_payload(msg, nla_data(attr), nla_len(attr)); in nfnlmsg_log_msg_parse()
|
/external/libnl/lib/route/cls/ |
D | ematch.c | 283 if (thdr->nmatches > (nla_len(tb[TCA_EMATCH_TREE_LIST]) / in rtnl_ematch_parse() 302 if (nla_len(a) < sizeof(*hdr)) { in rtnl_ematch_parse() 314 len = nla_len(a) - NLA_ALIGN(sizeof(*hdr)); in rtnl_ematch_parse()
|
/external/libnl/include/netlink/ |
D | attr.h | 79 extern int nla_len(const struct nlattr *); 273 for (pos = nla_data(nla), rem = nla_len(nla); \
|
/external/autotest/client/deps/iwcap/src/ |
D | iwcap.c | 316 nla_len(nl_band), NULL); in check_phy_handler() 340 nla_len(tb_band[NL80211_BAND_ATTR_HT_MCS_SET]) == 16) { in check_phy_handler() 352 nla_data(nl_freq), nla_len(nl_freq), in check_phy_handler() 377 nla_len(nl_rate), rate_policy); in check_phy_handler()
|
/external/libnl/include/linux/ |
D | netlink.h | 128 __u16 nla_len; member
|
/external/iproute2/include/linux/ |
D | netlink.h | 166 __u16 nla_len; member
|
/external/kernel-headers/original/uapi/linux/ |
D | netlink.h | 166 __u16 nla_len; member
|
/external/libnl/lib/route/sch/ |
D | netem.c | 299 int old_len = head->nla_len; in netem_build_msg() 300 head->nla_len = (void *)tail - (void *)head; in netem_build_msg() 301 msg->nm_nlh->nlmsg_len += (head->nla_len - old_len); in netem_build_msg()
|
/external/dhcpcd-6.8.2/ |
D | if-linux.c | 923 *rem -= NLA_ALIGN(nla->nla_len); in nla_next() 924 return (struct nlattr *)(void *)((char *)nla + NLA_ALIGN(nla->nla_len)); in nla_next() 928 #define NLA_LEN(nla) (unsigned int)((nla)->nla_len - NLA_HDRLEN) 931 (nla)->nla_len >= sizeof(struct nlattr) && \ 932 (nla)->nla_len <= rem) 959 nla->nla_len = len; in nla_put_32() 982 nla->nla_len = (unsigned short)len; in nla_put_string()
|
/external/libnl/lib/route/link/ |
D | vlan.c | 121 if (nla_len(nla) < sizeof(*map)) in vlan_parse() 141 if (nla_len(nla) < sizeof(*map)) in vlan_parse()
|