conntrack

package
v0.48.0-dev2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 24, 2025 License: BSD-3-Clause Imports: 13 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConnTrack

type ConnTrack struct {
	// contains filtered or unexported fields
}

ConnTrack manages kernel-based conntrack events

func New

func New(flowLogger nftypes.FlowLogger, iface nftypes.IFaceMapper) *ConnTrack

New creates a new connection tracker that interfaces with the kernel's conntrack system

func (*ConnTrack) Close

func (c *ConnTrack) Close() error

Close stops listening for events and cleans up resources

func (*ConnTrack) EnableAccounting

func (c *ConnTrack) EnableAccounting()

EnableAccounting ensures that connection tracking accounting is enabled in the kernel.

func (*ConnTrack) RestoreAccounting

func (c *ConnTrack) RestoreAccounting()

RestoreAccounting restores the connection tracking accounting setting to its original value.

func (*ConnTrack) Start

func (c *ConnTrack) Start(enableCounters bool) error

Start begins tracking connections by listening for conntrack events. This method is idempotent.

func (*ConnTrack) Stop

func (c *ConnTrack) Stop()

Stop stops the connection tracking. This method is idempotent.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL