Fixing piggy back commands field

This commit is contained in:
Sebastien Dudek 2021-01-08 23:33:13 +01:00
parent e185b68f2d
commit bb71a76ed5
1 changed files with 2 additions and 2 deletions

View File

@ -523,7 +523,7 @@ class FOpts(Packet):
def FOptsDownShow(pkt):
try:
if pkt.FCtrl[0].FOptsLen > 0 and pkt.MType & 0b1 == 1 and pkt.MType <= 0b101 and (pkt.MType & 0b10 > 0): # noqa: E501
if pkt.FCtrl[0].FOptsLen > 0 and pkt.MType & 0b1 == 1 and pkt.MType <= 0b101 and (pkt.MType & 0b101 > 0): # noqa: E501
return True
return False
except Exception:
@ -532,7 +532,7 @@ def FOptsDownShow(pkt):
def FOptsUpShow(pkt):
try:
if pkt.FCtrl[0].FOptsLen > 0 and pkt.MType & 0b1 == 0 and pkt.MType >= 0b010 and (pkt.MType & 0b10 > 0): # noqa: E501
if pkt.FCtrl[0].FOptsLen > 0 and pkt.MType & 0b1 == 0 and pkt.MType >= 0b010 and (pkt.MType & 0b110 > 0): # noqa: E501
return True
return False
except Exception: