Receive-side packet processor which counts the incoming frames, matching a filter. More...
Methods | |
Counters.Clear | |
Resets the counter values to zero and empties the Result.History. More... | |
Counters.Get | |
Returns the current values of the counter. 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... | |
Parent.Get | |
Returns the parent object. | |
Result.Clear | |
Resets the counter values to zero. More... | |
Result.Get | |
Returns the current result counters. More... | |
Result.History.Get | |
Returns the current History counters. More... | |
Receive-side packet processor which counts the incoming frames, matching a filter.
This trigger is always active and starts counting frames as soon as it is created. Counting continues until the trigger is destructed.
A basic trigger object can be created via a ByteBlowerPort, using ByteBlowerPort::Rx.Trigger.Add "basic"
This trigger processes frames received on the ByteBlower interface where its parent ByteBlowerPort is located.
Receive all frames on "trunk-1-2" of some server, matching UDP source or destination port 67.
Rx.Trigger.Basic::Counters.Clear |
Resets the counter values to zero and empties the Result.History.
Rx.Trigger.Basic::Counters.Get |
Returns the current values of the counter.
This example returns a list of name-value pairs of packet processor counter values.
Returns:
NrOfFrames 1562
Rx.Trigger.Basic::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.Trigger.Basic::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.* | When the {server-side} RX object could not be resolved. |
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.Trigger.Basic::Result.Clear |
Rx.Trigger.Basic::Result.Get |
Returns the current result counters.
This method will return an object of Rx.Trigger.Basic.ResultSnapshot. It will contain all the current Cumulative counters. To update the counters, call Refresh on Rx.Trigger.Basic.ResultSnapshot
Returns:
<Rx.Trigger.Basic.ResultSnapshot object>
Rx.Trigger.Basic::Result.History.Get |
Returns the current History counters.
This method returns a Rx.Trigger.Basic.ResultHistory Object. This will contain the Cumulative and the Interval counters over time. Use this to create results over time.
Returns:
<Rx.Trigger.Basic.ResultHistory object>