Skip to content
Snippets Groups Projects
Commit 93b1d5fb authored by Pierre Lalet's avatar Pierre Lalet Committed by GitHub
Browse files

Merge pull request #785 from william-r-dieter/fix-dot11qos-qos-control

Fix ordering of bit fields in the Dot11QoS QoS Control field
parents db280e36 25c6470c
No related branches found
No related tags found
No related merge requests found
...@@ -178,10 +178,10 @@ class Dot11(Packet): ...@@ -178,10 +178,10 @@ class Dot11(Packet):
class Dot11QoS(Packet): class Dot11QoS(Packet):
name = "802.11 QoS" name = "802.11 QoS"
fields_desc = [ BitField("TID",None,4), fields_desc = [ BitField("Reserved",None,1),
BitField("EOSP",None,1),
BitField("Ack Policy",None,2), BitField("Ack Policy",None,2),
BitField("Reserved",None,1), BitField("EOSP",None,1),
BitField("TID",None,4),
ByteField("TXOP",None) ] ByteField("TXOP",None) ]
def guess_payload_class(self, payload): def guess_payload_class(self, payload):
if isinstance(self.underlayer, Dot11): if isinstance(self.underlayer, Dot11):
......
...@@ -8611,8 +8611,8 @@ Dot11 in p and p.addr3 == "00:00:00:00:00:00" ...@@ -8611,8 +8611,8 @@ Dot11 in p and p.addr3 == "00:00:00:00:00:00"
p.mysummary() == '802.11 Management 0 00:00:00:00:00:00 > 00:00:00:00:00:00' p.mysummary() == '802.11 Management 0 00:00:00:00:00:00 > 00:00:00:00:00:00'
= Dot11QoS - build = Dot11QoS - build
s = str(Dot11(type=2, subtype=8)/Dot11QoS()) s = str(Dot11(type=2, subtype=8)/Dot11QoS(TID=4))
s == b'\x88\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00' s == b'\x88\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00'
= Dot11QoS - dissection = Dot11QoS - dissection
p = Dot11(s) p = Dot11(s)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment