Skip to content

Commit bfddfac

Browse files
committed
Update rdpcap doc
1 parent 8202b1f commit bfddfac

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

scapy/utils.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -835,8 +835,11 @@ def wrpcap(filename, pkt, *args, **kargs):
835835
def rdpcap(filename, count=-1):
836836
"""Read a pcap or pcapng file and return a packet list
837837
838-
count: read only <count> packets
838+
params:
839+
- count: read only <count> packets
839840
841+
For a more efficient function, consider using `sniff(offline=...)`
842+
See help(sniff) for more informations.
840843
"""
841844
with PcapReader(filename) as fdesc:
842845
return fdesc.read_all(count=count)

0 commit comments

Comments
 (0)