edns0_filter

package
v4.5.3 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2022 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const PluginType = "edns0_filter"

Variables

This section is empty.

Functions

func Init

func Init(bp *coremain.BP, args interface{}) (p coremain.Plugin, err error)

Types

type Args

type Args struct {
	// Args priority: NoEDNS > Keep > Discard.
	// If both Keep and Discard is not specified. edns0_filter will
	// keep no EDNS0 option (discard all EDNS0 options).
	NoEDNS  bool     `yaml:"no_edns"` // Remove entire EDNS0 RR.
	Keep    []uint16 `yaml:"accept"`  // Only keep those EDNS0 options and discard others.
	Discard []uint16 `yaml:"discard"` // Only remove those EDNS0 options and keep others.
}

type Filter

type Filter struct {
	*coremain.BP
	// contains filtered or unexported fields
}

func NewFilter

func NewFilter(bp *coremain.BP, args *Args) *Filter

func (*Filter) Exec

Jump to

Keyboard shortcuts

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