addcid

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2023 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Overview

Enriches any passing flow message with a customer id field based on a CIDR match. Requires a remote address to be marked in any given flow message by default, but lookups can be done for both source and destination address separately using the matchboth parameter. The result is written to the Cid field of any flow. If matchboth is set, SrcCid and DstCid will contain the results, with Cid containing an additional copy if just one address had a match.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddCid

type AddCid struct {
	segments.BaseSegment
	FileName      string // required
	DropUnmatched bool   // optional, default is false, determines whether flows are dropped when no Cid is found
	MatchBoth     bool   // optional, default is false, determines whether src and dst addresses are matched seperately and not according to remote addresses
	// contains filtered or unexported fields
}

func (AddCid) New

func (segment AddCid) New(config map[string]string) segments.Segment

func (*AddCid) Run

func (segment *AddCid) Run(wg *sync.WaitGroup)

Jump to

Keyboard shortcuts

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