Using Diagnostic Tools
Chapter 17: Maintenance
357
E
XAMPLE
1
The following filter string captures all TCP packets:
tcp
E
XAMPLE
2
The following filter string captures all TCP packets destined for port 80:
tcp dst port 80
udp
P
URPOSE
The
udp
element captures all UDP packets. This element can be prepended to port-related
elements.
Note:
When not prepended to other elements, the
udp
element is the equivalent of
ip proto udp
.
S
YNTAX
udp
udp
element
P
ARAMETERS
element
String. A port-related filter string element that should be
restricted to saving only UDP packets. This can be the
following:
•
dst port
- Capture all UDP packets destined
for a specific port.
•
port
- Captures all UDP packets originating
from or destined for a specific port.
•
src port
- Capture all UDP packets
originating from a specific port.