ipset

package
v0.13.1 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2020 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	IPSET_ATTR_IPADDR_IPV4 = 1
	IPSET_ATTR_IPADDR_IPV6 = 2
)
View Source
const PluginType = "ipset"

Variables

This section is empty.

Functions

func AddCIDR

func AddCIDR(e *Entry) error

func Init

func Init(tag string, argsMap map[string]interface{}) (p handler.Plugin, err error)

Types

type Args

type Args struct {
	SetName4 string `yaml:"set_name4"`
	SetName6 string `yaml:"set_name6"`
	Mask4    int    `yaml:"mask4"`
	Mask6    int    `yaml:"mask6"`
}

type Entry

type Entry struct {
	SetName string
	IP      net.IP
	Mask    uint8
	IsNET6  bool
}

Jump to

Keyboard shortcuts

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