Documentation ¶
Overview ¶
The filter package provides support for assembling fell formed bpf filters.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Filter ¶
type Filter struct { SrcIP net.IP // The source IP address SrcPort int // The source port number DstIp net.IP // The destination IP address DstPort int // The destination port number }
Represents the elements that go into a very common bpf filter.
Most users can give the same filter strings that they would give to tcpdump directly to the Setfilter function.
Click to show internal directories.
Click to hide internal directories.