networkutil

package
v0.4.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 2, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	AllZeroMAC     = net.HardwareAddr{0, 0, 0, 0, 0, 0}
	AllZeroAddress = "0.0.0.0/0"
)

Functions

func ApplyARPs added in v0.4.2

func ApplyARPs(current, desired map[string]*netlink.Neigh) (err error)

func ApplyFDBs

func ApplyFDBs(current, desired map[string]*netlink.Neigh) (err error)

func ApplyIPSet added in v0.3.2

func ApplyIPSet(set ipsetutil.IPSetInterface, current, desired map[string]*netlink.IPSetEntry) (err error)

func ApplyRoutes

func ApplyRoutes(current, desired map[string]*netlink.Route) (err error)

func ApplyRules

func ApplyRules(current, desired map[string]*netlink.Rule) (err error)

func CleanRoutesOnNode

func CleanRoutesOnNode(routeTableID int) error

func CleanRulesOnNode

func CleanRulesOnNode(routeTableID int) error

func ListARPsOnNode added in v0.4.2

func ListARPsOnNode(link netlink.Link) (map[string]*netlink.Neigh, error)

func ListFDBsOnNode

func ListFDBsOnNode(link netlink.Link) (map[string]*netlink.Neigh, error)

func ListIPSetOnNode added in v0.3.2

func ListIPSetOnNode(set ipsetutil.IPSetInterface) (map[string]*netlink.IPSetEntry, error)

func ListRoutesOnNode

func ListRoutesOnNode(routeTableID int) (map[string]*netlink.Route, error)

func ListRulesOnNode

func ListRulesOnNode(routeTableID int) (map[string]*netlink.Rule, error)

func NeighKey added in v0.4.2

func NeighKey(neigh *netlink.Neigh) string

func NewRavenRule

func NewRavenRule(rulePriority int, routeTableID int) *netlink.Rule

func RouteKey

func RouteKey(route *netlink.Route) string

func RuleKey

func RuleKey(rule *netlink.Rule) string

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL