pcap module
PCAP Processing Helper Functions
- pcap.count_packets_in_pcap(in_filename: str) int [source]
Count the total number of packets from a given PCAP(NG) file.
- pcap.eth_from_sll(sll_bytes: bytes) bytes [source]
Convert an SLL (“cooked”) PCAP packet into an Ethernet one
- pcap.get_reader(file: BinaryIO) dpkt.pcap.Reader | dpkt.pcapng.Reader [source]
Create a reader for a PCAP(NG) file