Berkeley Packet Filter Syntax
Berkeley Packet Filter Syntax (BPF)
- The expression consists of one or more primitives
- Primitives usually consist of an id (name or number) preceded by one or more qualifiers
- IDs are specifically what you're searching for
- Could be a hostname, an IP address, subnet, etc.
- Qualifiers clarify and qualify what the ID is
- type identifies what kind of thing the ID is
- host, net, port, portrange
- dir specifies the direction of traffic
- src, dst, src and/or dst
- The default is src or dst
- proto identify the protocol
- ether, fddi, tr, wlan, ip, ip6, arp, rarp, decnet, tcp, udp
Sources
BPF syntax
#defs_sec