ip_set

package
v5.3.1 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2023 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const PluginType = "ip_set"

Variables

This section is empty.

Functions

func Init

func Init(bp *coremain.BP, args any) (any, error)

func LoadFromFile

func LoadFromFile(f string, l *netlist.List) error

func LoadFromFiles

func LoadFromFiles(fs []string, l *netlist.List) error

func LoadFromIPs

func LoadFromIPs(ips []string, l *netlist.List) error

func LoadFromIPsAndFiles

func LoadFromIPsAndFiles(ips []string, fs []string, l *netlist.List) error

Types

type Args

type Args struct {
	IPs   []string `yaml:"ips"`
	Sets  []string `yaml:"sets"`
	Files []string `yaml:"files"`
}

type IPSet

type IPSet struct {
	// contains filtered or unexported fields
}

func NewIPSet

func NewIPSet(bp *coremain.BP, args *Args) (*IPSet, error)

func (*IPSet) GetIPMatcher

func (d *IPSet) GetIPMatcher() netlist.Matcher

type MatcherGroup

type MatcherGroup []netlist.Matcher

func (MatcherGroup) Match

func (mg MatcherGroup) Match(addr netip.Addr) bool

Jump to

Keyboard shortcuts

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