fragattack: workaround for scapy bug

This commit is contained in:
Mathy Vanhoef 2020-05-22 21:13:30 +04:00 committed by Mathy Vanhoef
parent c23fd0ae92
commit 1e7de58084
2 changed files with 4 additions and 1 deletions

View File

@ -1011,6 +1011,9 @@ class Daemon(metaclass=abc.ABCMeta):
log(DEBUG, f"Cannot forward frame longer than MTU (length {len(p)}).")
return
# Due to very strange buy in Scapy, we cannot directly forward frames with a
# Dot11Encrypted layer. So we first convert them into a raw byte stream.
p = Raw(raw(p))
s.send(p)
def run(self):

@ -1 +1 @@
Subproject commit 1b06e87920eac9380c9cfaaf0594c784bc7c30c8
Subproject commit 3aa69b2ccbd08dec0093d7fd3b2837d30606dffe