MCPcopy Index your code
hub / github.com/secdev/scapy / rderf

Function rderf

scapy/utils.py:2676–2683  ·  view source on GitHub ↗

Read a ERF file and return a packet list :param count: read only packets

(filename, count=-1)

Source from the content-addressed store, hash-verified

2674
2675@conf.commands.register
2676def rderf(filename, count=-1):
2677 # type: (Union[IO[bytes], str], int) -> PacketList
2678 """Read a ERF file and return a packet list
2679
2680 :param count: read only <count> packets
2681 """
2682 with ERFEthernetReader(filename) as fdesc:
2683 return fdesc.read_all(count=count)
2684
2685
2686class ERFEthernetReader_metaclass(PcapReader_metaclass):

Callers

nothing calls this directly

Calls 2

ERFEthernetReaderClass · 0.85
read_allMethod · 0.45

Tested by

no test coverage detected