/external/libnl/lib/ |
attr.c | 120 void *nla_data(const struct nlattr *nla) function 215 char *data = nla_data(nla); 361 memcpy(dest, nla_data(src), minlen); 381 char *src = nla_data(nla); 410 d = memcmp(nla_data(nla), data, size); 429 d = memcmp(nla_data(nla), str, len); 512 memcpy(nla_data(nla), data, datalen); 582 return *(uint8_t *) nla_data(nla); 607 return *(uint16_t *) nla_data(nla); 632 return *(uint32_t *) nla_data(nla) [all...] |
data.c | 86 return nl_data_alloc(nla_data(nla), nla_len(nla));
|
/kernel/tests/net/test/ |
netlink.py | 89 def _Decode(self, command, msg, nla_type, nla_data): 91 return nla_type, nla_data 118 nla_data, data = data[:datalen], data[padded_len:] 121 nla_name, nla_data = self._Decode(command, msg, nla.nla_type, nla_data) 128 attributes[nla_name] = nla_data 129 self._Debug(" %s" % str((nla_name, nla_data)))
|
sock_diag.py | 118 def _Decode(self, command, msg, nla_type, nla_data): 132 data = ord(nla_data) 134 data = nla_data.strip("\x00") 136 data = InetDiagMeminfo(nla_data) 139 data = TcpInfo(nla_data) 141 data = SkMeminfo(nla_data) 143 data = struct.unpack("=I", nla_data)[0] 145 data = self.DecodeBytecode(nla_data) 148 while len(nla_data): 152 addr, nla_data = cstruct.Read(nla_data, csocket.SockaddrStorage [all...] |
iproute.py | 212 def _Decode(self, command, msg, nla_type, nla_data): 230 nla_data: A byte string, the netlink attribute data. 263 data = struct.unpack("=I", nla_data)[0] 265 data = struct.unpack("=i", nla_data)[0] 267 data = ord(nla_data) 271 data = socket.inet_ntop(msg.family, nla_data) 274 data = nla_data.strip("\x00") 276 data = self._ParseAttributes(-RTA_METRICS, None, nla_data) 278 data = RTACacheinfo(nla_data) 280 data = IFACacheinfo(nla_data) [all...] |
xfrm.py | 236 def _Decode(self, command, unused_msg, nla_type, nla_data): 241 data = cstruct.Read(nla_data, XfrmAlgo)[0] 243 data = cstruct.Read(nla_data, XfrmAlgoAuth)[0] 245 data = cstruct.Read(nla_data, XfrmEncapTmpl)[0] 247 data = nla_data
|
/hardware/qcom/wlan/qcwcn/wifi_hal/ |
cpp_bindings.h | 101 return mAttributes[attribute] ? nla_data(mAttributes[attribute]) : NULL; 113 pos = (struct nlattr *)nla_data(attr); 141 return nla_data(pos); 225 return *(u8 *) nla_data(nla); 229 return *(u16 *) nla_data(nla); 233 return *(u32 *) nla_data(nla); 237 return *(u64 *) nla_data(nla); 242 return *(s8 *) nla_data(nla); 247 return *(s16 *) nla_data(nla); 251 return *(s32 *) nla_data(nla) [all...] |
gscan_event_handler.cpp | 232 for (scanResultsInfo = (struct nlattr *) nla_data(tb_vendor[ 242 (struct nlattr *) nla_data(scanResultsInfo), 273 nla_data( 289 nla_data( 367 for (scanResultsInfo = (struct nlattr *) nla_data(tb_vendor[ 376 (struct nlattr *) nla_data(scanResultsInfo), 394 nla_data( 438 nla_data( 475 for (scanResultsInfo = (struct nlattr *) nla_data(tb_vendor[ 485 (struct nlattr *) nla_data(scanResultsInfo) [all...] |
llstats.cpp | 129 memcpy(&stats->mac_addr[0], nla_data(tb_vendor[QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_MAC_ADDR]), len); 159 memcpy(&stats->ssid[0], nla_data(tb_vendor[QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_SSID]), len); 168 memcpy(&stats->bssid[0], nla_data(tb_vendor[QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_BSSID]), len); 177 memcpy(&stats->ap_country_str[0], nla_data(tb_vendor[QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_AP_COUNTRY_STR]), 187 memcpy(&stats->country_str[0], nla_data(tb_vendor[QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_COUNTRY_STR]), 470 memcpy((void *)&stats->peer_mac_address[0], nla_data(tb_vendor[QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_MAC_ADDRESS]), 501 for (rateInfo = (struct nlattr *) nla_data(tb_vendor[QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_RATE_INFO]), rem = nla_len(tb_vendor[QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_RATE_INFO]); 508 nla_parse(tb2, QCA_WLAN_VENDOR_ATTR_LL_STATS_MAX, (struct nlattr *) nla_data(rateInfo), nla_len(rateInfo), NULL); 658 for (wmmInfo = (struct nlattr *) nla_data(tb_vendor[ 669 (struct nlattr *) nla_data(wmmInfo) [all...] |
/external/iw/ |
event.c | 55 frame = nla_data(attr); 149 mac_addr_n2a(buf, nla_data(attrs[NL80211_ATTR_MAC])); 183 mac_addr_n2a(addr, nla_data(attrs[NL80211_ATTR_MAC])); 189 unsigned char *seq = nla_data(attrs[NL80211_ATTR_KEY_SEQ]); 219 nla_data(attrs[NL80211_ATTR_WOWLAN_TRIGGERS]), 245 nla_parse(tb_match, NUM_NL80211_ATTR, nla_data(match), 250 nla_data(tb_match[NL80211_ATTR_SSID])); 263 uint8_t *d = nla_data(tb[NL80211_WOWLAN_TRIG_WAKEUP_PKT_80211]); 275 uint8_t *d = nla_data(tb[NL80211_WOWLAN_TRIG_WAKEUP_PKT_8023]); 362 print_ssid_escaped(nla_len(nst), nla_data(nst)) [all...] |
mpp.c | 31 mac_addr_n2a(dst, nla_data(tb[NL80211_ATTR_MAC])); 32 mac_addr_n2a(next_hop, nla_data(tb[NL80211_ATTR_MPATH_NEXT_HOP]));
|
genl.c | 53 nla_data(mcgrp), nla_len(mcgrp), NULL); 58 if (strncmp(nla_data(tb_mcgrp[CTRL_ATTR_MCAST_GRP_NAME]),
|
coalesce.c | 221 nla_data(rule), nla_len(rule), NULL); 242 nla_data(pattern), nla_len(pattern), 259 pat = nla_data(patattr[NL80211_PKTPAT_PATTERN]); 260 mask = nla_data(patattr[NL80211_PKTPAT_MASK]);
|
wowlan.c | 366 nla_data(attrs[NL80211_ATTR_WOWLAN_TRIGGERS]), 392 nla_data(trig[NL80211_WOWLAN_TRIG_NET_DETECT]), 408 nla_parse(tb, NUM_NL80211_ATTR, nla_data(match), 414 nla_data(tb[NL80211_SCHED_SCAN_MATCH_ATTR_SSID])); 436 nla_data(pattern), nla_len(pattern), NULL); 454 pat = nla_data(patattr[NL80211_PKTPAT_PATTERN]); 455 mask = nla_data(patattr[NL80211_PKTPAT_MASK]);
|
info.c | 141 nla_parse(tb_band, NL80211_BAND_ATTR_MAX, nla_data(nl_band), 158 print_ht_mcs(nla_data(tb_band[NL80211_BAND_ATTR_HT_MCS_SET])); 162 nla_data(tb_band[NL80211_BAND_ATTR_VHT_MCS_SET])); 171 nla_parse(tb_freq, NL80211_FREQUENCY_ATTR_MAX, nla_data(nl_freq), 225 nla_parse(tb_rate, NL80211_BITRATE_ATTR_MAX, nla_data(nl_rate), 297 __u32 *ciphers = nla_data(tb_msg[NL80211_ATTR_CIPHER_SUITES]); 497 pat = nla_data(tb_wowlan[NL80211_WOWLAN_TRIG_PKT_PATTERN]); 532 cm = nla_data(tb_msg[NL80211_ATTR_HT_CAPABILITY_MASK]); 619 if (ext_feature_isset(nla_data(tb), nla_len(tb), 632 rule = nla_data(tb_msg[NL80211_ATTR_COALESCE_RULE]) [all...] |
mpath.c | 63 mac_addr_n2a(dst, nla_data(tb[NL80211_ATTR_MAC])); 64 mac_addr_n2a(next_hop, nla_data(tb[NL80211_ATTR_MPATH_NEXT_HOP]));
|
/hardware/qcom/wlan/cld80211-lib/ |
cld80211_lib.h | 84 struct nlattr **nla_data, int pid);
|
cld80211_lib.c | 211 nla_parse(tb2, CTRL_ATTR_MCAST_GRP_MAX, nla_data(mcgrp), 216 strncmp(nla_data(tb2[CTRL_ATTR_MCAST_GRP_NAME]), 299 struct nlattr **nla_data, int pid) 303 if (!ctx || !nla_data) { 317 *nla_data = nla_nest_start(nlmsg, CLD80211_ATTR_VENDOR_DATA); 318 if (!nla_data)
|
/external/libnl/lib/netfilter/ |
log_msg.c | 88 struct nfulnl_msg_packet_hdr *hdr = nla_data(attr); 101 struct nfulnl_msg_packet_timestamp *timestamp = nla_data(attr); 127 struct nfulnl_msg_packet_hw *hw = nla_data(attr); 134 err = nfnl_log_msg_set_payload(msg, nla_data(attr), nla_len(attr)); 141 err = nfnl_log_msg_set_prefix(msg, nla_data(attr));
|
queue_msg.c | 87 struct nfqnl_msg_packet_hdr *hdr = nla_data(attr); 101 struct nfqnl_msg_packet_timestamp *timestamp = nla_data(attr); 127 struct nfqnl_msg_packet_hw *hw = nla_data(attr); 135 err = nfnl_queue_msg_set_payload(msg, nla_data(attr),
|
/external/wpa_supplicant_8/src/drivers/ |
driver_nl80211_event.c | 319 event.assoc_reject.bssid = nla_data(addr); 337 event.assoc_reject.resp_ies = nla_data(resp_ie); 366 os_memcpy(drv->bssid, nla_data(addr), ETH_ALEN); 371 event.assoc_info.req_ies = nla_data(req_ie); 389 event.assoc_info.resp_ies = nla_data(resp_ie); 410 event.assoc_info.key_replay_ctr = nla_data(key_replay_ctr); 414 event.assoc_info.ptk_kck = nla_data(ptk_kck); 418 event.assoc_info.ptk_kek = nla_data(ptk_kek); 582 cmd, MAC2STR((u8 *) nla_data(addr))); 592 os_memcpy(event.timeout_event.addr, nla_data(addr), ETH_ALEN) [all...] |
driver_nl80211_capa.c | 261 ciphers = nla_data(tb); 357 ext_features = nla_data(tb); 534 nla_parse(tb1, NL80211_ATTR_MAX, nla_data(attr), 553 os_memcpy(capa->ext_capa, nla_data(tb1[NL80211_ATTR_EXT_CAPA]), 565 nla_data(tb1[NL80211_ATTR_EXT_CAPA_MASK]), len); 675 nla_data(tb[NL80211_ATTR_EXT_CAPA]), 687 nla_data(tb[NL80211_ATTR_EXT_CAPA_MASK]), 712 vinfo = nla_data(nl); 769 vinfo = nla_data(nl); 881 nla_data(nl_vend), nla_len(nl_vend), NULL) [all...] |
/hardware/broadcom/wlan/bcmdhd/wifi_hal/ |
cpp_bindings.h | 84 return mAttributes[attribute] ? nla_data(mAttributes[attribute]) : NULL; 96 pos = (struct nlattr *)nla_data(attr); 124 return nla_data(pos); 349 for (pos = (nlattr *)nla_data(nla), rem = nla_len(nla); \
|
/external/libnl/include/netlink/ |
attr.h | 78 extern void * nla_data(const struct nlattr *); 275 for (pos = nla_data(nla), rem = nla_len(nla); \
|
/external/libnl/python/examples/ |
iface.py | 25 print("\tmac %02x:%02x:%02x:%02x:%02x:%02x" % tuple(nl.nla_data(attr[nl80211.NL80211_ATTR_MAC]))) 27 print("\tssid ", nl.nla_data(attr[nl80211.NL80211_ATTR_SSID]))
|