This class is used to capture the raw packet data that is received on the Physical interface that is associated with a ByteBlowerPort. More...
Methods | |
Counters.Clear | |
Clears the counters and deletes the captured packets. More... | |
Counters.Get | |
Returns the current counters of the capture. More... | |
Description.Get | |
Returns a textual description of the object. | |
Filter.Get | |
Returns the current installed BPF filter string. More... | |
Filter.Set bpfString | |
Sets a BPF filter on a RX object. More... | |
Frames.Get | |
Returns the captured frames. More... | |
Parent.Get | |
Returns the parent object. | |
Pcap.Save fileName | |
Stores the captured frames into a pcap file. More... | |
Result.Get | |
Returns the capture result. Rx.Capture.ResultSnapshot. More... | |
Start | |
Start capturing. More... | |
Status.Get | |
Returns the current status of the Capture. More... | |
Stop | |
Stop capturing. More... | |
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 Rx.Capture.RawPacket 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.
Rx.Capture.RawPacket::Counters.Clear |
Clears the counters and deletes the captured packets.
Rx.Capture.RawPacket::Counters.Get |
Returns the current counters of the capture.
ByteBlower.Rx.Capture.GetFailed | When no results are available or when an exception occurred while obtaining the results. |
Returns:
NrOfPackets 6 NrOfOctets 482 NrOfErrors 0 ElapsedTime {7 486177}
Rx.Capture.RawPacket::Filter.Get |
Returns the current installed BPF filter string.
The filter string can be configured using Filter.Set
Suppose we configured the trigger with filter string:
where $ipv4_1
and $ipv4_2
are Layer3.IPv4 objects and $frameSize
is the (layer2) size of the frames (without CRC!). The BPF filter string would then become for example:
Returns:
ip src 10.10.10.2 and ip dst 10.10.10.3 and len = 252
Rx.Capture.RawPacket::Filter.Set | bpfString | ||
Sets a BPF filter on a RX object.
bpfString | Valid BPF filter string. For creating valid BPF filter strings, please have a look at http://www.tcpdump.org/#documentation for more information. |
ByteBlower.Rx.Filter.CompilationFailed | When an invalid BPF filter string is given. |
ByteBlower.InvalidFilter | When an invalid BPF filter string is given. |
This will filter only UDP traffic.
Set the filter on packets that match:
Rx.Capture.RawPacket::Frames.Get |
Returns the captured frames.
ByteBlower.Rx.Capture.GetFailed | When no results are available or when an exception occurred while obtaining the results. |
ByteBlower.Rx.Capture.GetFramesFailed | Invalid captured packet offset |
Returns:
{1233228188 647870 0 110 33330000000d0090....} ...
Rx.Capture.RawPacket::Pcap.Save | fileName | ||
Stores the captured frames into a pcap
file.
The stored capture file can be opened by e.g. wireshark
.
pcap
library is installed on the host PC. You should use the OS-specific software to install it. e.g. On windows WinPcap
comes together with wireshark
. It can also be installed separately if required.fileName | Destination filename for the capture file. |
<tcl_error> | No pcap support found: When the pcap library is not installed on the ByteBlower client PC. |
ByteBlower.Rx.Capture.GetFailed | When no results are available or when an exception occurred while obtaining the results. |
ByteBlower.Rx.Capture.GetFramesFailed | Invalid captured packet offset. |
Stores all packets captured by filter to c:.pcap
Rx.Capture.RawPacket::Result.Get |
Returns the capture result. Rx.Capture.ResultSnapshot.
Returns:
<Rx.Capture.ResultSnapshot object>
Rx.Capture.RawPacket::Start |
Rx.Capture.RawPacket::Status.Get |
Returns the current status of the Capture.
ByteBlower.Rx.Capture.NotFound | When this capture has an invalid reference to the capture at server-side. |
ByteBlower.Rx.Capture.GetFailed | When no results are available or when an exception occurred while obtaining the results. |
Returns:
active