Versions in this module Expand all Collapse all v0 v0.1.0 Oct 20, 2022 Changes in this version + const IPSET_ATTR_CIDR + const IPSET_ATTR_DATA + const IPSET_ATTR_FAMILY + const IPSET_ATTR_IP + const IPSET_ATTR_IPADDR_IPV4 + const IPSET_ATTR_IPADDR_IPV6 + const IPSET_ATTR_PROTOCOL + const IPSET_ATTR_REVISION + const IPSET_ATTR_SETNAME + const IPSET_ATTR_TIMEOUT + const IPSET_ATTR_TYPENAME + const IPSET_CMD_ADD + const IPSET_CMD_CREATE + const IPSET_CMD_DEL + const IPSET_CMD_DESTROY + const IPSET_CMD_FLUSH + const IPSET_MAXNAMELEN + const IPSET_PROTOCOL + const NFNL_SUBSYS_IPSET + const NLA_F_NESTED + const NLA_F_NET_BYTEORDER + func NativeEndian() binary.ByteOrder + func Uint16Attr(v uint16) []byte + func Uint32Attr(v uint32) []byte + func Uint8Attr(v uint8) []byte + func ZeroTerminated(s string) []byte + type NetLink struct + func New() (*NetLink, error) + func (nl *NetLink) CreateSet(setName string, opts ...Option) error + func (nl *NetLink) DestroySet(setName string) error + func (nl *NetLink) FlushSet(setName string) error + func (nl *NetLink) HandleAddr(cmd int, setName string, ip netip.Addr, cidr netip.Prefix, opts ...Option) error + type NetlinkRequest struct + Data []NetlinkRequestData + RawData []byte + func NewNetlinkRequest(proto, flags int) *NetlinkRequest + func (req *NetlinkRequest) AddData(data NetlinkRequestData) + func (req *NetlinkRequest) AddRawData(data []byte) + func (req *NetlinkRequest) Serialize() []byte + type NetlinkRequestData interface + Len func() int + Serialize func() []byte + type NfGenMsg struct + func NewNfGenMsg(nfgenFamily, version, resID int) *NfGenMsg + func (m *NfGenMsg) Len() int + func (m *NfGenMsg) Serialize() []byte + type Option func(opts *Options) + type Options struct + Excl bool + IPv6 bool + Timeout uint32 + type RtAttr struct + Data []byte + func NewRtAttr(attrType int, data []byte) *RtAttr + func NewRtAttrChild(parent *RtAttr, attrType int, data []byte) *RtAttr + func (a *RtAttr) AddChild(attr NetlinkRequestData) + func (a *RtAttr) Len() int + func (a *RtAttr) Serialize() []byte + type Uint32Attribute struct + Type uint16 + Value uint32 + func (a *Uint32Attribute) Len() int + func (a *Uint32Attribute) Serialize() []byte