Documentation ¶
Index ¶
Constants ¶
View Source
const ( ProtoAny = 0 // When we want to handle HOPOPT (0) we can change this, if ever ProtoTCP = 6 ProtoUDP = 17 ProtoICMP = 1 PortAny = 0 // Special value for matching `port: any` PortFragment = -1 // Special value for matching `port: fragment` )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConntrackCache ¶
type ConntrackCache map[Packet]struct{}
ConntrackCache is used as a local routine cache to know if a given flow has been seen in the conntrack table.
type ConntrackCacheTicker ¶
type ConntrackCacheTicker struct {
// contains filtered or unexported fields
}
func NewConntrackCacheTicker ¶
func NewConntrackCacheTicker(d time.Duration) *ConntrackCacheTicker
func (*ConntrackCacheTicker) Get ¶
func (c *ConntrackCacheTicker) Get(l *logrus.Logger) ConntrackCache
Get checks if the cache ticker has moved to the next version before returning the map. If it has moved, we reset the map.
Click to show internal directories.
Click to hide internal directories.