PCAP Dumper

pcapkit.dumpkit.pcap is the dumper for pcapkit implementation, specifically for PCAP format, which is alike those described in dictdumper.

class pcapkit.dumpkit.pcap.PCAPIO(fname, *, protocol, byteorder='little', nanosecond=False, **kwargs)[source]

Bases: Dumper

PCAP file dumper.

Parameters
  • fname – output file name

  • protocol – data link type

  • byteorder – header byte order

  • nanosecond – nanosecond-resolution file flag

  • **kwargs – arbitrary keyword arguments

property kind: Literal['pcap']

File format of current dumper.

Return type

Literal[‘pcap’]