Skip to content

Commit 730e3f4

Browse files
Guillaume Valadonguedou
authored andcommitted
RawPcapReader iterator
1 parent 34f00d8 commit 730e3f4

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

test/regression.uts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6930,9 +6930,14 @@ f.seek(0) or None
69306930
assert len(f.getvalue()) != 0
69316931

69326932
r = PcapReader(f)
6933+
f.seek(0) or None
69336934
assert r.LLcls is Ether
69346935
assert r.linktype == DLT_EN10MB
69356936

6937+
l = [ p for p in RawPcapReader(f) ]
6938+
assert len(l) == 1
6939+
6940+
69366941
= Check tcpdump()
69376942
~ tcpdump
69386943
from io import BytesIO

0 commit comments

Comments
 (0)