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.
no_cache
Packet._fast_copy()
1 parent 9c26a32 commit 000e16bCopy full SHA for 000e16b
scapy/packet.py
@@ -528,6 +528,10 @@ def _fast_copy_fields_dict(
528
clone.fields = _fast_copy_fields_dict(self.fields)
529
clone.explicit = self.explicit
530
531
+ # Copy the `no_cache` flag if set on the source packet, and not already set on the clone.
532
+ if self.no_cache and (not clone.no_cache):
533
+ clone.no_cache = True
534
+
535
# Both `copy()` and `clone_with()` set the `default_fields` attribute with the `copy_fields_dict()` method.
536
#
537
# Memo:
0 commit comments