add some clarification comment
This commit is contained in:
@@ -124,9 +124,10 @@ def pre_parse_attributes( # pylint: disable=too-many-branches
|
||||
else:
|
||||
modifier = 2
|
||||
# Redundand in the "normal" case
|
||||
tmp_attributes = [(key, value, offset + modifier,)]
|
||||
tmp_attributes = [(key, value, offset + modifier)]
|
||||
except (KeyError, IndexError):
|
||||
# We do not know the TLV, but the packet seems to be well-formed so far
|
||||
# RFC recommends to treat unknown Attributes as transparently as blobs
|
||||
tmp_attributes = [(key, value, offset + 2)]
|
||||
|
||||
for key, value, offset in tmp_attributes:
|
||||
|
||||
Reference in New Issue
Block a user