Versions in this module Expand all Collapse all v1 v1.0.0 Oct 22, 2019 Changes in this version + const IPSET_ADD + const IPSET_ADT_MAX + const IPSET_ATTR_ADT + const IPSET_ATTR_ADT_MAX + const IPSET_ATTR_BYTES + const IPSET_ATTR_CADT_FLAGS + const IPSET_ATTR_CADT_LINENO + const IPSET_ATTR_CADT_MAX + const IPSET_ATTR_CIDR + const IPSET_ATTR_CIDR2 + const IPSET_ATTR_CMD_MAX + const IPSET_ATTR_COMMENT + const IPSET_ATTR_CREATE_MAX + const IPSET_ATTR_DATA + const IPSET_ATTR_ELEMENTS + const IPSET_ATTR_ETHER + const IPSET_ATTR_FAMILY + const IPSET_ATTR_FLAGS + const IPSET_ATTR_GC + const IPSET_ATTR_HASHSIZE + const IPSET_ATTR_IFACE + const IPSET_ATTR_INDEX + const IPSET_ATTR_IP + const IPSET_ATTR_IP2 + const IPSET_ATTR_IP2_TO + const IPSET_ATTR_IPADDR_IPV4 + const IPSET_ATTR_IPADDR_IPV6 + const IPSET_ATTR_IPADDR_MAX + const IPSET_ATTR_IP_FROM + const IPSET_ATTR_IP_TO + const IPSET_ATTR_LINENO + const IPSET_ATTR_MARK + const IPSET_ATTR_MARKMASK + const IPSET_ATTR_MAXELEM + const IPSET_ATTR_MEMSIZE + const IPSET_ATTR_NAME + const IPSET_ATTR_NAMEREF + const IPSET_ATTR_NETMASK + const IPSET_ATTR_PACKETS + const IPSET_ATTR_PAD + const IPSET_ATTR_PORT + const IPSET_ATTR_PORT_FROM + const IPSET_ATTR_PORT_TO + const IPSET_ATTR_PROBES + const IPSET_ATTR_PROTO + const IPSET_ATTR_PROTOCOL + const IPSET_ATTR_PROTOCOL_MIN + const IPSET_ATTR_REFERENCES + const IPSET_ATTR_RESIZE + const IPSET_ATTR_REVISION + const IPSET_ATTR_REVISION_MIN + const IPSET_ATTR_SETNAME + const IPSET_ATTR_SETNAME2 + const IPSET_ATTR_SIZE + const IPSET_ATTR_SKBMARK + const IPSET_ATTR_SKBPRIO + const IPSET_ATTR_SKBQUEUE + const IPSET_ATTR_TIMEOUT + const IPSET_ATTR_TYPENAME + const IPSET_ATTR_UNSPEC + const IPSET_BIT_RETURN_NOMATCH + const IPSET_CADT_MAX + const IPSET_CMD_ADD + const IPSET_CMD_COMMIT + const IPSET_CMD_CREATE + const IPSET_CMD_DEL + const IPSET_CMD_DESTROY + const IPSET_CMD_FLUSH + const IPSET_CMD_GET_BYINDEX + const IPSET_CMD_GET_BYNAME + const IPSET_CMD_HEADER + const IPSET_CMD_HELP + const IPSET_CMD_LIST + const IPSET_CMD_MAX + const IPSET_CMD_NONE + const IPSET_CMD_PROTOCOL + const IPSET_CMD_QUIT + const IPSET_CMD_RENAME + const IPSET_CMD_RESTORE + const IPSET_CMD_SAVE + const IPSET_CMD_SWAP + const IPSET_CMD_TEST + const IPSET_CMD_TYPE + const IPSET_CMD_VERSION + const IPSET_COUNTER_EQ + const IPSET_COUNTER_GT + const IPSET_COUNTER_LT + const IPSET_COUNTER_NE + const IPSET_COUNTER_NONE + const IPSET_CREATE + const IPSET_CREATE_FLAG_BIT_FORCEADD + const IPSET_CREATE_FLAG_BIT_MAX + const IPSET_CREATE_FLAG_FORCEADD + const IPSET_DEL + const IPSET_DIM_MAX + const IPSET_DIM_ONE + const IPSET_DIM_ONE_SRC + const IPSET_DIM_THREE + const IPSET_DIM_THREE_SRC + const IPSET_DIM_TWO + const IPSET_DIM_TWO_SRC + const IPSET_DIM_ZERO + const IPSET_ERR_BUSY + const IPSET_ERR_COMMENT + const IPSET_ERR_COUNTER + const IPSET_ERR_EXIST + const IPSET_ERR_EXIST_SETNAME2 + const IPSET_ERR_FIND_TYPE + const IPSET_ERR_INVALID_CIDR + const IPSET_ERR_INVALID_FAMILY + const IPSET_ERR_INVALID_MARKMASK + const IPSET_ERR_INVALID_NETMASK + const IPSET_ERR_IPADDR_IPV4 + const IPSET_ERR_IPADDR_IPV6 + const IPSET_ERR_MAX_SETS + const IPSET_ERR_PRIVATE + const IPSET_ERR_PROTOCOL + const IPSET_ERR_REFERENCED + const IPSET_ERR_SKBINFO + const IPSET_ERR_TIMEOUT + const IPSET_ERR_TYPE_MISMATCH + const IPSET_ERR_TYPE_SPECIFIC + const IPSET_FLAG_BEFORE + const IPSET_FLAG_BIT_BEFORE + const IPSET_FLAG_BIT_EXIST + const IPSET_FLAG_BIT_LIST_HEADER + const IPSET_FLAG_BIT_LIST_SETNAME + const IPSET_FLAG_BIT_MAP_SKBMARK + const IPSET_FLAG_BIT_MAP_SKBPRIO + const IPSET_FLAG_BIT_MAP_SKBQUEUE + const IPSET_FLAG_BIT_MATCH_COUNTERS + const IPSET_FLAG_BIT_NOMATCH + const IPSET_FLAG_BIT_PHYSDEV + const IPSET_FLAG_BIT_RETURN_NOMATCH + const IPSET_FLAG_BIT_SKIP_COUNTER_UPDATE + const IPSET_FLAG_BIT_SKIP_SUBCOUNTER_UPDATE + const IPSET_FLAG_BIT_WITH_COMMENT + const IPSET_FLAG_BIT_WITH_COUNTERS + const IPSET_FLAG_BIT_WITH_FORCEADD + const IPSET_FLAG_BIT_WITH_SKBINFO + const IPSET_FLAG_CADT_MAX + const IPSET_FLAG_CMD_MAX + const IPSET_FLAG_EXIST + const IPSET_FLAG_LIST_HEADER + const IPSET_FLAG_LIST_SETNAME + const IPSET_FLAG_MAP_SKBMARK + const IPSET_FLAG_MAP_SKBPRIO + const IPSET_FLAG_MAP_SKBQUEUE + const IPSET_FLAG_MATCH_COUNTERS + const IPSET_FLAG_NOMATCH + const IPSET_FLAG_PHYSDEV + const IPSET_FLAG_RETURN_NOMATCH + const IPSET_FLAG_SKIP_COUNTER_UPDATE + const IPSET_FLAG_SKIP_SUBCOUNTER_UPDATE + const IPSET_FLAG_WITH_COMMENT + const IPSET_FLAG_WITH_COUNTERS + const IPSET_FLAG_WITH_FORCEADD + const IPSET_FLAG_WITH_SKBINFO + const IPSET_INVALID_ID + const IPSET_INV_MATCH + const IPSET_MAXNAMELEN + const IPSET_MAX_COMMENT_SIZE + const IPSET_MSG_MAX + const IPSET_PROTOCOL + const IPSET_PROTOCOL_MIN + const IPSET_RETURN_NOMATCH + const IPSET_TEST + const NFNETLINK_V0 + const NFNL_SUBSYS_IPSET + const NFPROTO_ARP + const NFPROTO_BRIDGE + const NFPROTO_DECNET + const NFPROTO_IPV4 + const NFPROTO_IPV6 + const NFPROTO_NUMPROTO + const NFPROTO_UNSPEC + const SizeofNFGenMsg + var IPSetCmdflags = []int + func DeserializeNFGenlMsg(b []byte) (m *nfgenmsg) + func TryConvertErrno(err error) *int32 + type Entry struct + CIDR *uint8 + CIDR2 *uint8 + IP string + IP2 string + Mac net.HardwareAddr + Net string + Options []string + Port uint16 + PortTo uint16 + Proto uint8 + SetType SetType + type Handle struct + func New(l log.LOG) (*Handle, error) + func (h *Handle) Add(set *IPSet, entry *Entry, opts ...Opt) error + func (h *Handle) Create(set *IPSet, opts ...Opt) error + func (h *Handle) Del(set *IPSet, entry *Entry, opts ...Opt) error + func (h *Handle) Destroy(setName string, opts ...Opt) error + func (h *Handle) List(setName string, opts ...Opt) ([]ListItem, error) + type IPSet struct + Comment string + Family string + HashSize int + MaxElem int + Name string + PortRange string + SetRevison *uint8 + SetType SetType + type ListItem struct + Entries []Entry + type Opt int + const IPSET_OPT_ADT_COMMENT + const IPSET_OPT_BEFORE + const IPSET_OPT_BYTES + const IPSET_OPT_CADT_FLAGS + const IPSET_OPT_CIDR + const IPSET_OPT_CIDR2 + const IPSET_OPT_COUNTERS + const IPSET_OPT_CREATE_COMMENT + const IPSET_OPT_ELEM + const IPSET_OPT_ELEMENTS + const IPSET_OPT_ETHER + const IPSET_OPT_EXIST + const IPSET_OPT_FAMILY + const IPSET_OPT_FLAGS + const IPSET_OPT_FORCEADD + const IPSET_OPT_GC + const IPSET_OPT_HASHSIZE + const IPSET_OPT_IFACE + const IPSET_OPT_INDEX + const IPSET_OPT_IP + const IPSET_OPT_IP2 + const IPSET_OPT_IP2_TO + const IPSET_OPT_IP_FROM + const IPSET_OPT_IP_TO + const IPSET_OPT_LINENO + const IPSET_OPT_MARK + const IPSET_OPT_MARKMASK + const IPSET_OPT_MAX + const IPSET_OPT_MAXELEM + const IPSET_OPT_MEMSIZE + const IPSET_OPT_NAME + const IPSET_OPT_NAMEREF + const IPSET_OPT_NETMASK + const IPSET_OPT_NOMATCH + const IPSET_OPT_NONE + const IPSET_OPT_PACKETS + const IPSET_OPT_PHYSDEV + const IPSET_OPT_PORT + const IPSET_OPT_PORT_FROM + const IPSET_OPT_PORT_TO + const IPSET_OPT_PROBES + const IPSET_OPT_PROTO + const IPSET_OPT_REFERENCES + const IPSET_OPT_RESIZE + const IPSET_OPT_REVISION + const IPSET_OPT_REVISION_MIN + const IPSET_OPT_SETNAME2 + const IPSET_OPT_SIZE + const IPSET_OPT_SKBINFO + const IPSET_OPT_SKBMARK + const IPSET_OPT_SKBPRIO + const IPSET_OPT_SKBQUEUE + const IPSET_OPT_TIMEOUT + const IPSET_OPT_TYPE + const IPSET_OPT_TYPENAME + const IPSET_SETNAME + type SetType string + const BitmapIP + const BitmapIPMac + const BitmapPort + const HashIP + const HashIPMac + const HashIPMark + const HashIPPort + const HashIPPortIP + const HashIPPortNet + const HashMac + const HashNet + const HashNetIface + const HashNetNet + const HashNetPort + const HashNetPortNet + const ListSet