mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-25 00:38:24 -05:00
libwifi: add remove_dot11qos function
This commit is contained in:
parent
e665e2d8ad
commit
6cb61da4a1
@ -146,6 +146,15 @@ def is_amsdu(p):
|
||||
else:
|
||||
return p.Reserved == 1
|
||||
|
||||
def remove_dot11qos(p):
|
||||
if not Dot11QoS in p: return
|
||||
p = p.copy()
|
||||
payload = p[Dot11QoS].payload
|
||||
p.remove_payload()
|
||||
p /= payload
|
||||
p.subtype = 0
|
||||
return p
|
||||
|
||||
#### Packet Processing Functions ####
|
||||
|
||||
class DHCP_sock(DHCP_am):
|
||||
|
Loading…
Reference in New Issue
Block a user