SolarCapture C Bindings User Guide  SF-115721-CD
Issue 1
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
sc_range_filter Node Reference

Node that forwards one or more ranges of packets.

Detailed Description

Node that forwards one or more ranges of packets.

Incoming packets are assigned an index starting at zero. Packets whose index lies within the ranges indicated by the "range" argument are forwarded to the default output, and other packets are forwarded to the "reject" output or freed.

  • Ranges must be non-overlapping and in order.
  • Ranges are inclusive at both ends.
  • Indices are zero-based.

Arguments

Argument Optional? Default Type Description
range No SC_PARAM_STR Comma-separated list of packet ranges or indices.

Output Links

Link Description
"" Packets indicated by the "range" argument are forwarded here.
"reject" Other packets are forwarded here.

Exposed Statistics

Statistics exposed by the sc_filter, sc_range_filter and sc_timestamp_filter nodes.

Name Type Data Type Description
pkts_rejected uint64_t pkt_count The number of packets not matched by the filter.