Versions in this module Expand all Collapse all v1 v1.0.0 Apr 25, 2022 Changes in this version + const FAMILY_ALL — linux/amd64 + const FAMILY_MPLS — linux/amd64 + const FAMILY_V4 — linux/amd64 + const FAMILY_V6 — linux/amd64 + const IPSET_ATTR_ADT — linux/amd64 + const IPSET_ATTR_BYTES — linux/amd64 + const IPSET_ATTR_CADT_FLAGS — linux/amd64 + const IPSET_ATTR_CADT_LINENO — linux/amd64 + const IPSET_ATTR_CADT_MAX — linux/amd64 + const IPSET_ATTR_CIDR — linux/amd64 + const IPSET_ATTR_CIDR2 — linux/amd64 + const IPSET_ATTR_COMMENT — linux/amd64 + const IPSET_ATTR_DATA — linux/amd64 + const IPSET_ATTR_ELEMENTS — linux/amd64 + const IPSET_ATTR_ETHER — linux/amd64 + const IPSET_ATTR_FAMILY — linux/amd64 + const IPSET_ATTR_FLAGS — linux/amd64 + const IPSET_ATTR_GC — linux/amd64 + const IPSET_ATTR_HASHSIZE — linux/amd64 + const IPSET_ATTR_IFACE — linux/amd64 + const IPSET_ATTR_IP — linux/amd64 + const IPSET_ATTR_IP2 — linux/amd64 + const IPSET_ATTR_IP2_TO — linux/amd64 + const IPSET_ATTR_IPADDR_IPV4 — linux/amd64 + const IPSET_ATTR_IPADDR_IPV6 — linux/amd64 + const IPSET_ATTR_IP_FROM — linux/amd64 + const IPSET_ATTR_IP_TO — linux/amd64 + const IPSET_ATTR_LINENO — linux/amd64 + const IPSET_ATTR_MARK — linux/amd64 + const IPSET_ATTR_MARKMASK — linux/amd64 + const IPSET_ATTR_MAXELEM — linux/amd64 + const IPSET_ATTR_MEMSIZE — linux/amd64 + const IPSET_ATTR_NAME — linux/amd64 + const IPSET_ATTR_NAMEREF — linux/amd64 + const IPSET_ATTR_NETMASK — linux/amd64 + const IPSET_ATTR_PACKETS — linux/amd64 + const IPSET_ATTR_PORT — linux/amd64 + const IPSET_ATTR_PORT_FROM — linux/amd64 + const IPSET_ATTR_PORT_TO — linux/amd64 + const IPSET_ATTR_PROBES — linux/amd64 + const IPSET_ATTR_PROTO — linux/amd64 + const IPSET_ATTR_PROTOCOL — linux/amd64 + const IPSET_ATTR_PROTOCOL_MIN — linux/amd64 + const IPSET_ATTR_REFERENCES — linux/amd64 + const IPSET_ATTR_RESIZE — linux/amd64 + const IPSET_ATTR_REVISION — linux/amd64 + const IPSET_ATTR_REVISION_MIN — linux/amd64 + const IPSET_ATTR_SETNAME — linux/amd64 + const IPSET_ATTR_SETNAME2 — linux/amd64 + const IPSET_ATTR_SIZE — linux/amd64 + const IPSET_ATTR_SKBMARK — linux/amd64 + const IPSET_ATTR_SKBPRIO — linux/amd64 + const IPSET_ATTR_SKBQUEUE — linux/amd64 + const IPSET_ATTR_TIMEOUT — linux/amd64 + const IPSET_ATTR_TYPENAME — linux/amd64 + const IPSET_CMD_ADD — linux/amd64 + const IPSET_CMD_CREATE — linux/amd64 + const IPSET_CMD_DEL — linux/amd64 + const IPSET_CMD_DESTROY — linux/amd64 + const IPSET_CMD_FLUSH — linux/amd64 + const IPSET_CMD_HEADER — linux/amd64 + const IPSET_CMD_LIST — linux/amd64 + const IPSET_CMD_PROTOCOL — linux/amd64 + const IPSET_CMD_RENAME — linux/amd64 + const IPSET_CMD_SAVE — linux/amd64 + const IPSET_CMD_SWAP — linux/amd64 + const IPSET_CMD_TEST — linux/amd64 + const IPSET_CMD_TYPE — linux/amd64 + const IPSET_ERR_BUSY — linux/amd64 + const IPSET_ERR_COMMENT — linux/amd64 + const IPSET_ERR_COUNTER — linux/amd64 + const IPSET_ERR_EXIST — linux/amd64 + const IPSET_ERR_EXIST_SETNAME2 — linux/amd64 + const IPSET_ERR_FIND_TYPE — linux/amd64 + const IPSET_ERR_INVALID_CIDR — linux/amd64 + const IPSET_ERR_INVALID_FAMILY — linux/amd64 + const IPSET_ERR_INVALID_MARKMASK — linux/amd64 + const IPSET_ERR_INVALID_NETMASK — linux/amd64 + const IPSET_ERR_IPADDR_IPV4 — linux/amd64 + const IPSET_ERR_IPADDR_IPV6 — linux/amd64 + const IPSET_ERR_MAX_SETS — linux/amd64 + const IPSET_ERR_PRIVATE — linux/amd64 + const IPSET_ERR_PROTOCOL — linux/amd64 + const IPSET_ERR_REFERENCED — linux/amd64 + const IPSET_ERR_SKBINFO — linux/amd64 + const IPSET_ERR_TIMEOUT — linux/amd64 + const IPSET_ERR_TYPE_MISMATCH — linux/amd64 + const IPSET_ERR_TYPE_SPECIFIC — linux/amd64 + const IPSET_FLAG_BEFORE — linux/amd64 + const IPSET_FLAG_BIT_BEFORE — linux/amd64 + const IPSET_FLAG_BIT_NOMATCH — linux/amd64 + const IPSET_FLAG_BIT_PHYSDEV — linux/amd64 + const IPSET_FLAG_BIT_WITH_COMMENT — linux/amd64 + const IPSET_FLAG_BIT_WITH_COUNTERS — linux/amd64 + const IPSET_FLAG_BIT_WITH_FORCEADD — linux/amd64 + const IPSET_FLAG_BIT_WITH_SKBINFO — linux/amd64 + const IPSET_FLAG_CADT_MAX — linux/amd64 + const IPSET_FLAG_NOMATCH — linux/amd64 + const IPSET_FLAG_PHYSDEV — linux/amd64 + const IPSET_FLAG_WITH_COMMENT — linux/amd64 + const IPSET_FLAG_WITH_COUNTERS — linux/amd64 + const IPSET_FLAG_WITH_FORCEADD — linux/amd64 + const IPSET_FLAG_WITH_SKBINFO — linux/amd64 + const IPSET_MAXNAMELEN — linux/amd64 + const IPSET_MAX_COMMENT_SIZE — linux/amd64 + const IPSET_PROTOCOL — linux/amd64 + const NFNETLINK_V0 — linux/amd64 + const NLA_F_NESTED — linux/amd64 + const NLA_F_NET_BYTEORDER — linux/amd64 + const NLA_TYPE_MASK — linux/amd64 + const PidKernel — linux/amd64 + const RECEIVE_BUFFER_SIZE — linux/amd64 + const SET_ATTR_CREATE_MAX — linux/amd64 + const SizeofNfgenmsg — linux/amd64 + var SocketTimeoutTv = unix.Timeval — linux/amd64 + var SupportedNlFamilies = []int — linux/amd64 + func BytesToString(b []byte) string — linux/amd64 + func GetIPFamily(ip net.IP) int — linux/amd64 + func GetIpsetFlags(cmd int) int — linux/amd64 + func NativeEndian() binary.ByteOrder — linux/amd64 + func NonZeroTerminated(s string) []byte — linux/amd64 + func ParseAttributes(data []byte) <-chan Attribute — linux/amd64 + func ParseRouteAttr(b []byte) ([]syscall.NetlinkRouteAttr, error) — linux/amd64 + func PrintAttributes(data []byte) — linux/amd64 + func Swap16(i uint16) uint16 — linux/amd64 + func Swap32(i uint32) uint32 — linux/amd64 + func Uint16Attr(v uint16) []byte — linux/amd64 + func Uint32Attr(v uint32) []byte — linux/amd64 + func Uint64Attr(v uint64) []byte — linux/amd64 + func Uint8Attr(v uint8) []byte — linux/amd64 + func ZeroTerminated(s string) []byte — linux/amd64 + type Attribute struct — linux/amd64 + Type uint16 + Value []byte + func (attr *Attribute) Uint16() uint16 + func (attr *Attribute) Uint32() uint32 + func (attr *Attribute) Uint64() uint64 + func (attr *Attribute) Uint8() uint8 + type IPSetError uintptr — linux/amd64 + func (e IPSetError) Error() string + type IfInfomsg struct — linux/amd64 + func DeserializeIfInfomsg(b []byte) *IfInfomsg + func NewIfInfomsg(family int) *IfInfomsg + func NewIfInfomsgChild(parent *RtAttr, family int) *IfInfomsg + func (msg *IfInfomsg) EncapType() string + func (msg *IfInfomsg) Len() int + func (msg *IfInfomsg) Serialize() []byte + type NetlinkRequest struct — linux/amd64 + Data []NetlinkRequestData + RawData []byte + SocketHandle *SocketHandle + func NewNetlinkRequest(proto, flags int) *NetlinkRequest + func (req *NetlinkRequest) AddData(data NetlinkRequestData) + func (req *NetlinkRequest) AddRawData(data []byte) + func (req *NetlinkRequest) Execute(sockType int, resType uint16) ([][]byte, error) + func (req *NetlinkRequest) Serialize() []byte + type NetlinkRequestData interface — linux/amd64 + Len func() int + Serialize func() []byte + type NetlinkSocket struct — linux/amd64 + func Subscribe(protocol int, groups ...uint) (*NetlinkSocket, error) + func (s *NetlinkSocket) Close() + func (s *NetlinkSocket) GetFd() int + func (s *NetlinkSocket) GetPid() (uint32, error) + func (s *NetlinkSocket) Receive() ([]syscall.NetlinkMessage, *unix.SockaddrNetlink, error) + func (s *NetlinkSocket) Send(request *NetlinkRequest) error + func (s *NetlinkSocket) SetReceiveTimeout(timeout *unix.Timeval) error + func (s *NetlinkSocket) SetSendTimeout(timeout *unix.Timeval) error + type Nfgenmsg struct — linux/amd64 + NfgenFamily uint8 + ResId uint16 + Version uint8 + func DeserializeNfgenmsg(b []byte) *Nfgenmsg + func (msg *Nfgenmsg) Len() int + func (msg *Nfgenmsg) Serialize() []byte + type RtAttr struct — linux/amd64 + 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) AddRtAttr(attrType int, data []byte) *RtAttr + func (a *RtAttr) Len() int + func (a *RtAttr) Serialize() []byte + type SocketHandle struct — linux/amd64 + Seq uint32 + Socket *NetlinkSocket + func (sh *SocketHandle) Close() + type Uint32Attribute struct — linux/amd64 + Type uint16 + Value uint32 + func (a *Uint32Attribute) Len() int + func (a *Uint32Attribute) Serialize() []byte