byteblowerll.byteblower.PacketDump

class byteblowerll.byteblower.PacketDump(*args, **kwargs)

Utility for dumping ByteBlower network traffic to a pcap file.

A PacketDump object is created for a ByteBlower interface and can be configured with a BPF filter and a maximum snapshot length.

Example

packetDump = interface.PacketDumpCreate()
packetDump.Start('packetDump.pcap')
while (packetDump.FileSizeGet()) < 1000000000:
    time.sleep(10)
packetDump.Stop()
__init__(*args, **kwargs)

Initialize self. See help(type(self)) for accurate signature.

Methods

DescriptionGet(*args) Gets a textual description for the current object
FileNameGet() Returns file name of the target pcap file.
FileSizeGet() Returns current size of the target pcap file.
FilterGet() Returns the BPF filter.
FilterSet(value) Configures a BPF filter so that only packets that match the filter will be captured.
ParentGet() Returns the parent object.
Refresh() Retrieves the latest data from the server for this object.
ServerGet()
SnapshotLengthGet() Returns the maximum number of bytes that can be captured for each packet.
SnapshotLengthSet(value) Configure the maximum number of bytes that can be captured for each packet.
Start(filename) Start capturing packets.
Stop() Stop capturing packets.
__init__(*args, **kwargs) Initialize self.

Attributes

thisown The membership flag