Read a ERF file and return a packet list :param count: read only packets
(filename, count=-1)
| 2674 | |
| 2675 | @conf.commands.register |
| 2676 | def 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 | |
| 2686 | class ERFEthernetReader_metaclass(PcapReader_metaclass): |
nothing calls this directly
no test coverage detected