Documentation ¶
Index ¶
- func GetDefaultGatewayIface() (*net.Interface, error)
- func GetDefaultInterface() (*net.Interface, net.IP, error)
- func GetIfaceByName(name string) (*net.Interface, net.IP, error)
- func GetIfaceIP4Addr(iface *net.Interface) (net.IP, error)
- func SetupAndEnsureIPTables(rules []IPTablesRule, resyncPeriod int)
- type FDBRule
- type IPTables
- type IPTablesRule
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetDefaultGatewayIface ¶
func SetupAndEnsureIPTables ¶
func SetupAndEnsureIPTables(rules []IPTablesRule, resyncPeriod int)
Types ¶
type FDBRule ¶
type FDBRule struct { Mac string Device string DST string Vlan string Master string Self bool Permanent bool }
func BridgeFDBList ¶
func BridgeFDBParse ¶
type IPTablesRule ¶
type IPTablesRule struct {
// contains filtered or unexported fields
}
func ForwardRules ¶
func ForwardRules(rg string) []IPTablesRule
Click to show internal directories.
Click to hide internal directories.