Documentation ¶
Index ¶
Constants ¶
View Source
const IPAny = IP(0)
View Source
const LRU_MAX = 512 // max entries in UDP LRU cache
Variables ¶
View Source
var IPPortRangeAny = IPPortRange{IPAny, PortRangeAny}
View Source
var MatchAllowAll = Matches{ Match{[]IPPortRange{IPPortRangeAny}, []IP{IPAny}}, }
View Source
var NewIP = packet.NewIP
View Source
var PortRangeAny = PortRange{0, 65535}
Functions ¶
This section is empty.
Types ¶
type Filter ¶
type Filter struct {
// contains filtered or unexported fields
}
func NewAllowAll ¶
func NewAllowAll() *Filter
func NewAllowNone ¶
func NewAllowNone() *Filter
type IPPortRange ¶
func (IPPortRange) String ¶
func (ipr IPPortRange) String() string
type Match ¶
type Match struct { DstPorts []IPPortRange SrcIPs []IP }
Click to show internal directories.
Click to hide internal directories.