conntrack

package
v0.1.11 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2024 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FIN_FLAG = uint32(0x01)
	SYN_FLAG = uint32(0x02)
	RST_FLAG = uint32(0x04)
	PSH_FLAG = uint32(0x08)
	ACK_FLAG = uint32(0x10)
	URG_FLAG = uint32(0x20)
	ECE_FLAG = uint32(0x40)
	CWR_FLAG = uint32(0x80)
	// Custom flags
	SYN_ACK_FLAG = uint32(0x100)
	FIN_ACK_FLAG = uint32(0x200)
	RST_ACK_FLAG = uint32(0x400)
)

From: https://github.com/netobserv/netobserv-ebpf-agent/blob/c54e7eb9e37e8ef5bb948eff6141cdddf584a6f9/bpf/flows.c#L45-L56

Variables

This section is empty.

Functions

func ComputeHash

func ComputeHash(flowLog config.GenericMap, keyDefinition api.KeyDefinition, hasher hash.Hash64, metrics *metricsType) (totalHashType, error)

ComputeHash computes the hash of a flow log according to keyDefinition. Two flow logs will have the same hash if they belong to the same connection.

func NewConnBuilder

func NewConnBuilder(metrics *metricsType) *connBuilder

func NewConnectionTrack

func NewConnectionTrack(opMetrics *operational.Metrics, params config.StageParam, clock clock.Clock) (extract.Extractor, error)

NewConnectionTrack creates a new connection track instance

Types

This section is empty.

Jump to

Keyboard shortcuts

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