Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( IP = IPProtocol{"ip", 0} ICMP = IPProtocol{"icmp", 1} UDP = IPProtocol{"udp", 17} ESP = IPProtocol{"esp", 50} )
Functions ¶
Types ¶
type ACE ¶
type ACE struct { Index uint8 Action Action Protocol IPProtocol SrcPrefix IPNetwork SrcMatch PortMatcher DestPrefix IPNetwork DestMatch PortMatcher }
type IPProtocol ¶
type IPProtocol struct {
// contains filtered or unexported fields
}
func (IPProtocol) Equals ¶
func (p IPProtocol) Equals(o IPProtocol) bool
func (IPProtocol) Gter ¶
func (p IPProtocol) Gter(o IPProtocol) bool
func (IPProtocol) Integer ¶
func (p IPProtocol) Integer() int8
func (IPProtocol) Lter ¶
func (p IPProtocol) Lter(o IPProtocol) bool
func (IPProtocol) String ¶
func (p IPProtocol) String() string
type PortMatch ¶
type PortMatch struct {
// contains filtered or unexported fields
}
func (PortMatch) Match ¶
func (p PortMatch) Match(o PortMatcher) bool
type PortMatcher ¶
type PortMatcher interface { Match(PortMatcher) bool String() string }
type RangeMatch ¶
type RangeMatch struct {
// contains filtered or unexported fields
}
func (RangeMatch) Match ¶
func (r RangeMatch) Match(o PortMatcher) bool
func (RangeMatch) String ¶
func (r RangeMatch) String() string
type TransProto ¶
type TransProto struct {
// contains filtered or unexported fields
}
func (TransProto) Compare ¶
func (t TransProto) Compare(o TransProto) bool
func (TransProto) Integer ¶
func (t TransProto) Integer() uint16
func (TransProto) String ¶
func (t TransProto) String() string
type TransportProtocol ¶
type TransportProtocol interface { String() string Integer() uint16 Compare(TransProto) bool }
Click to show internal directories.
Click to hide internal directories.