Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { ReadBufSize int // size of userspace read buffer (>32K no benefit in kernels 4.9-5.2, at least) ReceiveBufSize int // socket receive buffer size ReceiveBufSizeForce int // force socket receive buffer size (requires CAP_NET_ADMIN or root) SrcPorts []uint16 // source (local) ports for kernel to filter by DstPorts []uint16 // dest (remote) ports for kernel to filter by ReceiveTimeout time.Duration // socket receive timeout Log bool // if true enable logging }
Config contains the netlink client configuration.
type Metrics ¶
type Metrics struct { SampleTimes metrics.DurationStats ConvertTimes metrics.DurationStats sync.RWMutex }
type Result ¶
type Result struct {
// contains filtered or unexported fields
}
Result holds the results from a one netlink inet_diag call.
Click to show internal directories.
Click to hide internal directories.