Skip to content

Commit 8ceee51

Browse files
authored
Update utils.py to forward size parameter in RawPcapnpReader (#4721)
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
1 parent 65843d0 commit 8ceee51

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scapy/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1786,7 +1786,7 @@ def _read_packet(self, size=MTU): # type: ignore
17861786
17871787
"""
17881788
while True:
1789-
res = self._read_block()
1789+
res = self._read_block(size=size)
17901790
if res is not None:
17911791
return res
17921792

0 commit comments

Comments
 (0)