From 63794fd7a366f4932b888dbb3dd98bae085c0409 Mon Sep 17 00:00:00 2001 From: kruschen Date: Sat, 19 Apr 2025 11:40:32 +0200 Subject: [PATCH] Update utils.py to forward size parameter in RawPcapnpReader I found this little flaw when reading packages from a pcap that was captured on a different device. This fixed the issue of raw data being truncated. If there is a good reason to ignore the size in here lmk --- scapy/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scapy/utils.py b/scapy/utils.py index c86b09cbf72..c9d673c9244 100644 --- a/scapy/utils.py +++ b/scapy/utils.py @@ -1786,7 +1786,7 @@ def _read_packet(self, size=MTU): # type: ignore """ while True: - res = self._read_block() + res = self._read_block(size=size) if res is not None: return res