Documentation
¶
Overview ¶
Package ipset contains bindings to libipset Requirements: apt install ipset-dev
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Header ¶
type Header struct {
Family string `xml:"family"`
HashSize int `xml:"hashsize"`
MaxElem int `xml:"maxelem"`
Timeout int `xml:"timeout"`
MemSize int `xml:"memsize"`
References int `xml:"references"`
NumEntries int `xml:"numentries"`
}
Header is the header of an ipset result
type IPSet ¶
type IPSet struct {
Type string `xml:"type"`
Revision byte `xml:"revision"`
Name string `xml:"name,attr"`
Header Header `xml:"header"`
Members []Member `xml:"members>member"`
}
IPSet represents a returned ipset
type ListResult ¶
type ListResult struct {
Sets []IPSet `xml:"ipset"`
}
ListResult is the result of a LIST command
Click to show internal directories.
Click to hide internal directories.