ipset

package
v1.5.7 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2020 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	IPSET_ATTR_IPADDR_IPV4 = 1
	IPSET_ATTR_IPADDR_IPV6 = 2
)

Variables

This section is empty.

Functions

func AddCIDR

func AddCIDR(e *Entry) error

Types

type Entry added in v1.5.7

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

type Handler added in v1.5.7

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

func NewIPSetHandler added in v1.5.7

func NewIPSetHandler(c *config.Config) (*Handler, error)

func (*Handler) ApplyIPSet added in v1.5.7

func (h *Handler) ApplyIPSet(q, r *dns.Msg) error

Jump to

Keyboard shortcuts

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