byteblowerll.byteblower.CaptureRawPacket¶
-
class
byteblowerll.byteblower.
CaptureRawPacket
(*args, **kwargs)¶ This class is used to capture the raw packet data that is received on the Physical interface that is associated with a ByteBlowerPort.
With an
CaptureRawpacket
you can capture the data that is received by the ByteBlower Port and save this to a pcap file on your pc. You can also apply a filter (BPF-style) to only capture the packets of your interest.Example
captureRaw = bbPort2.RxCaptureBasicAdd() captureRaw.FilterSet('ip dst 1.1.1.2') captureRaw.Start() #... captureRaw.Stop() result = captureRaw.ResultGet() print(result.DescriptionGet())
-
__init__
(*args, **kwargs)¶ Initialize self. See help(type(self)) for accurate signature.
Methods
DescriptionGet
(*args)Gets a textual description for the current object FileNameRemoteGet
()FilterGet
()Returns the current installed BPF filter string. FilterSet
(inFilter)Sets a BPF filter on a RX object. ParentGet
()Returns the parent object. Refresh
()Retrieves the latest data from the server for this object. ResultGet
()Returns the capture result. Start
()Start capturing. Stop
()Stop capturing. __init__
(*args, **kwargs)Initialize self. Attributes
thisown
The membership flag -