Skip to content
Snippets Groups Projects
Commit 44d8b52b authored by Pierre LALET's avatar Pierre LALET
Browse files

Fix contrib HomePlugAV after 9dff11b6

parent c2b38595
Branches
No related tags found
No related merge requests found
...@@ -658,7 +658,7 @@ class ModulePIB(Packet): ...@@ -658,7 +658,7 @@ class ModulePIB(Packet):
/!\ A wrong slice would produce 'bad' results /!\ A wrong slice would produce 'bad' results
""" """
name = "ModulePIB" name = "ModulePIB"
__slots__ = ["__offset", "__length"] __slots__ = ["_ModulePIB__offset", "_ModulePIB__length"]
fields_desc=[ fields_desc=[
ConditionalField(XByteField("FirmwareMajorVersion", 0x00), ConditionalField(XByteField("FirmwareMajorVersion", 0x00),
lambda pkt:(0x0 == pkt.__offset and 0x1 <= pkt.__offset+pkt.__length)), # The following conditional fiels just check if the current field fits in the data range lambda pkt:(0x0 == pkt.__offset and 0x1 <= pkt.__offset+pkt.__length)), # The following conditional fiels just check if the current field fits in the data range
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment