Versions in this module Expand all Collapse all v0 v0.0.1 Jun 16, 2020 Changes in this version + type Chain struct + Name string + Rules []Rule + type Hook uint + const Forward + const Input + const NumHooks + const Output + const Postrouting + const Prerouting + type IPTables struct + Priorities map[Hook][]string + Tables map[string]Table + func DefaultTables() IPTables + type Matcher interface + Match func(hook Hook, packet buffer.VectorisedView, interfaceName string) (matches bool, hotdrop bool) + type Rule struct + Matchers []Matcher + Target Target + type Table struct + BuiltinChains map[Hook]Chain + Chains map[string]*Chain + DefaultTargets map[Hook]Target + UserChains map[string]Chain + func (table *Table) Metadata() interface{} + func (table *Table) SetMetadata(metadata interface{}) + func (table *Table) ValidHooks() uint32 + type Target interface + Action func(packet buffer.VectorisedView) (Verdict, string) + type UnconditionalAcceptTarget struct + func (UnconditionalAcceptTarget) Action(packet buffer.VectorisedView) (Verdict, string) + type UnconditionalDropTarget struct + func (UnconditionalDropTarget) Action(packet buffer.VectorisedView) (Verdict, string) + type Verdict int + const Accept + const Continue + const Drop + const Jump + const None + const Queue + const Repeat + const Return + const Stolen