We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Packet._ensure_bound_field_value()
1 parent 471bf40 commit 9415f58Copy full SHA for 9415f58
scapy/packet.py
@@ -704,7 +704,11 @@ def _ensure_bound_field_value(
704
# If `value` is a simple `list`, create a new `list_field` instance.
705
# If `value` is already a `list_field` instance, we never know where this instance comes from, and what it's being used for.
706
# Let's create a new `list_field` instance in any case.
707
- return list_field(self, value)
+ return list_field(
708
+ self,
709
+ # Recurse on list items.
710
+ [self._ensure_bound_field_value(x) for x in value],
711
+ )
712
713
if isinstance(value, FlagValue):
714
# We never know where the `FlagValue` instance comes from, and what it's being used for.
0 commit comments