Filtering
You can modify the set of packets that rvtrace processes by supplying either the -filter parameter, or a combination of the -src, -dst, -addr, and -port parameters. Filter expressions specify the set of packets to process.
rvtrace uses the pcap facility to capture and filter packets. The tcpdump utility also uses pcap, so the syntax and semantics for rvtrace and tcpdump filter expressions are identical. Filter Expressions summarizes the subset of filter expressions that are relevant to rvtrace; for additional options, see documentation for tcpdump. (Disclaimer: pcap and tcpdump are not TIBCO products; we do not sell, support or document them.)
Each row of Filter Expressions constitutes an expr, and can be used in place of the syntax marker expr elsewhere in Filter Expressions, and in the parameter table for rvtrace.
When specifying a filter expression to an rvtrace parameter, enclose the expression in quotation marks (").
|
Element |
Description |
|
|
Process a packet if either the IP source or destination of the packet is |
|
|
Process a packet if its IP destination is |
|
|
Process a packet if its IP source is |
|
|
Process a packet if either the IP source or destination of the packet is |
|
|
Process a packet if its IP destination is |
|
|
Process a packet if its IP source is |
|
|
Process a packet if either the IP source or destination port of the packet is |
|
|
Process a packet if its IP destination port is |
|
|
Process a packet if its IP source port is |
|
|
Process a packet if it is an IP broadcast packet. If |
|
|
Process a packet if it is an IP multicast packet. If |
|
|
Process a packet if it is an IP packet with protocol type If |
|
|
Process a packet if it is an IP packet. If |
|
Use parentheses to group boolean expressions; use appropriate escape characters to override shell-specific semantics of parentheses. |
|
|
|
Process a packet if it meets both criteria. |
|
|
Process a packet if it meets either criterion. |
|
|
Process a packet if it does not meet the criterion. |