Documentation ¶
Overview ¶
nolint:wrapcheck // Most of the functions are simple wrappers so we'll let the caller wrap errors.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var NewFunc func() Interface
Functions ¶
func DeleteIfaceAndAssociatedRoutes ¶ added in v0.12.0
func DeleteXfrmRules ¶ added in v0.12.0
func DeleteXfrmRules() error
func GetDefaultGatewayInterface ¶ added in v0.12.0
nolint:wrapcheck // Let the caller wrap external errors
Types ¶
type Interface ¶
type Interface interface { LinkAdd(link netlink.Link) error LinkDel(link netlink.Link) error LinkByName(name string) (netlink.Link, error) LinkSetUp(link netlink.Link) error AddrAdd(link netlink.Link, addr *netlink.Addr) error NeighAppend(neigh *netlink.Neigh) error NeighDel(neigh *netlink.Neigh) error RouteAdd(route *netlink.Route) error RouteDel(route *netlink.Route) error RouteGet(destination net.IP) ([]netlink.Route, error) RouteList(link netlink.Link, family int) ([]netlink.Route, error) FlushRouteTable(tableID int) error RuleAdd(rule *netlink.Rule) error RuleDel(rule *netlink.Rule) error XfrmPolicyAdd(policy *netlink.XfrmPolicy) error XfrmPolicyDel(policy *netlink.XfrmPolicy) error XfrmPolicyList(family int) ([]netlink.XfrmPolicy, error) EnableLooseModeReversePathFilter(interfaceName string) error ConfigureTCPMTUProbe(mtuProbe, baseMss string) error }
Click to show internal directories.
Click to hide internal directories.