mask

package
v2.2.1 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Setup

func Setup(raw json.RawMessage) (types.FilterPlugin, error)

Types

type Mask

type Mask struct {
	plugin.PluginCommon
	// PrefixLength value to mask ipv4 address. default is 22.
	MaskLen4 uint8
	// PrefixLength value to mask ipv6 address. default is 40.
	MaskLen6 uint8
	// If QueryAddressEnabled is true, mask QueryAddress. defaut is true
	QueryAddressEnabled bool
	// If ResponseAddressEnabled is true, mask ResponseAddress. defaut is true
	ResponseAddressEnabled bool
	// contains filtered or unexported fields
}

Mask plug-ins mask IP addresses.

func (*Mask) Filter

func (f *Mask) Filter(t *types.DnstapMessage) *types.DnstapMessage

Jump to

Keyboard shortcuts

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