Previous Topic

Next Topic

Book Contents

Book Index

udp

Purpose

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.

Syntax

udp

udp element

Parameters

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.

Example 1

The following filter string captures all UDP packets:

udp

Example 2

The following filter string captures all UDP packets destined for port 80:

udp dst port 80

See Also

Filter String Syntax

and

dst

dst port

ether proto

host

not

or

port

src

src port

tcp