Documentation ¶
Index ¶
- Constants
- func ComputeHash(flowLog config.GenericMap, keyDefinition api.KeyDefinition, hasher hash.Hash64, ...) (totalHashType, error)
- func NewConnBuilder(metrics *metricsType) *connBuilder
- func NewConnectionTrack(opMetrics *operational.Metrics, params config.StageParam, clock clock.Clock) (extract.Extractor, error)
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) )
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.
Click to show internal directories.
Click to hide internal directories.