Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Conntracker ¶
type Conntracker interface { GetTranslationForConn(ip util.Address, port uint16, transport process.ConnectionType) *IPTranslation ClearShortLived() GetStats() map[string]int64 Close() }
Conntracker is a wrapper around go-conntracker that keeps a record of all connections in user space
func NewConntracker ¶
func NewConntracker(procRoot string, deleteBufferSize, maxStateSize int) (Conntracker, error)
NewConntracker creates a new conntracker with a short term buffer capped at the given size
func NewNoOpConntracker ¶
func NewNoOpConntracker() Conntracker
NewNoOpConntracker creates a conntracker which always returns empty information
Click to show internal directories.
Click to hide internal directories.