Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NtSetHandler ¶
type NtSetHandler struct {
// contains filtered or unexported fields
}
NtSetHandler can add SetIPElem to corresponding set. The table that contains this set must be a inet family table. If the set has a 'interval' flag, the SetIPElem.Mask will be applied.
func NewNtSetHandler ¶
func NewNtSetHandler(family nftables.TableFamily, tableName, setName string) *NtSetHandler
NewNtSetHandler inits NtSetHandler.
func (*NtSetHandler) AddElems ¶
func (h *NtSetHandler) AddElems(es []*SetIPElem) error
AddElems adds SetIPElem(s) to set in a single batch.
Click to show internal directories.
Click to hide internal directories.