Home
last modified time | relevance | path

Searched refs:pkt (Results 1 – 17 of 17) sorted by relevance

/hostap-latest/wlantest/
Dwritepcap.c241 struct pcapng_enhanced_packet *pkt; in write_pcapng_decrypted() local
250 len = sizeof(*pkt) + wt->decrypted_len + 100 + notes_len(wt, 32); in write_pcapng_decrypted()
251 pkt = os_zalloc(len); in write_pcapng_decrypted()
252 if (pkt == NULL) in write_pcapng_decrypted()
255 pkt->block_type = PCAPNG_BLOCK_ENHANCED_PACKET; in write_pcapng_decrypted()
256 pkt->interface_id = 0; in write_pcapng_decrypted()
257 pkt->timestamp_high = wt->write_pcapng_time_high; in write_pcapng_decrypted()
258 pkt->timestamp_low = wt->write_pcapng_time_low; in write_pcapng_decrypted()
259 pkt->captured_len = wt->decrypted_len; in write_pcapng_decrypted()
260 pkt->packet_len = wt->decrypted_len; in write_pcapng_decrypted()
[all …]
/hostap-latest/tests/hwsim/
Dtest_hs20_filter.py90 pkt = dst
91 pkt += hapd.own_addr().replace(':', '')
92 pkt += '0800'
93 pkt += '45000020786840004011ae600a0000040a000001'
94 pkt += '30393039000c0000'
95 pkt += '61736466' # "asdf"
96 if "OK" not in hapd.request('DATA_TEST_FRAME ' + pkt):
128 pkt = dst
129 pkt += hapd.own_addr().replace(':', '')
130 pkt += '86dd'
[all …]
Dtest_kernel.py27 pkt = hapd.mgmt_rx()
28 if not pkt:
30 if pkt['fc'] & 0xc:
32 if pkt['subtype'] == 0: # assoc request
37 'sa': pkt['da'],
38 'da': pkt['sa'],
39 'bssid': pkt['bssid'],
45 binascii.hexlify(pkt['frame']).decode(), ))
Dtest_radius.py403 pkt = build_dhcp_ack(dst_ll="ff:ff:ff:ff:ff:ff", src_ll=bssid,
406 if "OK" not in hapd.request("DATA_TEST_FRAME ifname=ap-br0 " + binascii.hexlify(pkt).decode()):
1089 def _HandleAuthPacket(self, pkt): argument
1090 pyrad.server.Server._HandleAuthPacket(self, pkt)
1092 reply = self.CreateReplyPacket(pkt)
1112 hmac_obj.update(pkt.authenticator)
1119 self.SendReplyPacket(pkt.fd, reply)
1218 def _HandleAuthPacket(self, pkt): argument
1219 pyrad.server.Server._HandleAuthPacket(self, pkt)
1221 reply = self.CreateReplyPacket(pkt)
[all …]
Dtest_ap_hs20.py4342 pkt = build_ns(src_ll=addr0, ip_src="aaaa:bbbb:cccc::2",
4345 if "OK" not in dev[0].request("DATA_TEST_FRAME " + binascii.hexlify(pkt).decode()):
4348 pkt = build_ns(src_ll=addr1, ip_src="aaaa:bbbb:dddd::2",
4351 if "OK" not in dev[1].request("DATA_TEST_FRAME " + binascii.hexlify(pkt).decode()):
4354 pkt = build_ns(src_ll=addr1, ip_src="aaaa:bbbb:eeee::2",
4357 if "OK" not in dev[1].request("DATA_TEST_FRAME " + binascii.hexlify(pkt).decode()):
4464 pkt = build_ns(src_ll=addr0, ip_src="aaaa:bbbb:cccc::2",
4467 if "OK" not in dev[0].request("DATA_TEST_FRAME " + binascii.hexlify(pkt).decode()):
4470 pkt = build_ra(src_ll=apdev[0]['bssid'], ip_src="aaaa:bbbb:cccc::33",
4472 if "OK" not in hapd.request("DATA_TEST_FRAME ifname=ap-br0 " + binascii.hexlify(pkt).decode()):
[all …]
Dtest_ap_ft.py2873 pkt = ehdr + b'\x01'
2874 if "OK" not in dev[0].request("DATA_TEST_FRAME " + binascii.hexlify(pkt).decode()):
2878 pkt = ehdr + b'\x02' + b'\x02' + b'\x01\x00' + _src_ll
2879 if "OK" not in dev[0].request("DATA_TEST_FRAME " + binascii.hexlify(pkt).decode()):
2883 pkt = ehdr + b'\x01' + b'\x02' + b'\x01\x00' + _src_ll
2884 if "OK" not in dev[0].request("DATA_TEST_FRAME " + binascii.hexlify(pkt).decode()):
2888 pkt = ehdr + b'\x01' + b'\x02' + b'\x00\x00' + _src_ll
2889 if "OK" not in dev[0].request("DATA_TEST_FRAME " + binascii.hexlify(pkt).decode()):
2893pkt = ehdr + b'\x01' + b'\x02' + b'\x0e\x00' + _src_ll + b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0…
2894 if "OK" not in dev[0].request("DATA_TEST_FRAME " + binascii.hexlify(pkt).decode()):
[all …]
Dtest_wpas_mesh.py911 for pkt in pkts:
912 addr, cap = pkt.split('\t')
945 for pkt in pkts:
946 wlan = pkt["_source"]["layers"]["wlan"]
958 frame = pkt["_source"]["layers"]["frame_raw"][0]
Dtest_eap_proto.py85 def build_message_auth(pkt, reply): argument
96 hmac_obj.update(pkt.authenticator)
113 def _HandleAuthPacket(self, pkt): argument
114 pyrad.server.Server._HandleAuthPacket(self, pkt)
116 for p in pkt[79]:
119 reply = self.CreateReplyPacket(pkt)
133 build_message_auth(pkt, reply)
135 self.SendReplyPacket(pkt.fd, reply)
Dtest_ap_psk.py53 pkt = dev[0].request("PKTCNT_POLL").splitlines()
56 if "TXBAD=0" not in pkt:
57 raise Exception("Unexpected TXBAD value: " + str(pkt))
/hostap-latest/src/ap/
Dfils_hlp.c543 const u8 *pkt, *end; in fils_process_hlp_req() local
557 pkt = pos + 2 * ETH_ALEN; in fils_process_hlp_req()
558 if (end - pkt >= 6 && in fils_process_hlp_req()
559 os_memcmp(pkt, "\xaa\xaa\x03\x00\x00\x00", 6) == 0) in fils_process_hlp_req()
560 pkt += 6; /* Remove SNAP/LLC header */ in fils_process_hlp_req()
561 wpa_hexdump(MSG_MSGDUMP, "FILS: HLP request packet", pkt, end - pkt); in fils_process_hlp_req()
563 if (end - pkt < 2) in fils_process_hlp_req()
566 switch (WPA_GET_BE16(pkt)) { in fils_process_hlp_req()
568 return fils_process_hlp_ip(hapd, sta, pos, pkt + 2, in fils_process_hlp_req()
569 end - pkt - 2); in fils_process_hlp_req()
/hostap-latest/src/rsn_supp/
Dwpa_i.h478 const u8 *pkt, size_t pkt_len) in wpa_sm_fils_hlp_rx() argument
481 sm->ctx->fils_hlp_rx(sm->ctx->ctx, dst, src, pkt, pkt_len); in wpa_sm_fils_hlp_rx()
Dwpa.h95 const u8 *pkt, size_t pkt_len);
/hostap-latest/wpa_supplicant/
Dwpas_glue.c1280 const u8 *pkt, size_t pkt_len) in wpa_supplicant_fils_hlp_rx() argument
1290 wpa_snprintf_hex(hex, hexlen, pkt, pkt_len); in wpa_supplicant_fils_hlp_rx()
Dwpa_supplicant_i.h507 struct wpabuf *pkt; member
Dwpa_supplicant.c498 wpabuf_free(req->pkt); in wpas_flush_fils_hlp_req()
3168 pos = wpabuf_head(req->pkt); in wpas_add_fils_hlp_req()
3170 hlp_len = wpabuf_len(req->pkt); in wpas_add_fils_hlp_req()
3345 max_wpa_ie_len += 3 + 2 * ETH_ALEN + 6 + wpabuf_len(req->pkt) + in wpas_populate_assoc_ies()
3346 2 + 2 * wpabuf_len(req->pkt) / 255; in wpas_populate_assoc_ies()
Dsme.c2261 wpabuf_len(req->pkt)); in sme_associate()
2269 wpabuf_put_buf(hlp[num_hlp], req->pkt); in sme_associate()
Dctrl_iface.c11073 req->pkt = wpabuf_parse_bin(pos); in wpas_ctrl_iface_fils_hlp_req_add()
11074 if (!req->pkt) in wpas_ctrl_iface_fils_hlp_req_add()
11080 wpabuf_free(req->pkt); in wpas_ctrl_iface_fils_hlp_req_add()