linux

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RouteExporter

type RouteExporter struct {
	// Device is the Linux device for the route.
	Device netlink.Link
	// Source is the source IP address for locally-originated packets that leave
	// the local host through the route.
	Source net.IP
}

RouteExporter adds routes to the main Linux routing table.

func (RouteExporter) AddNetwork

func (rt RouteExporter) AddNetwork(network net.IPNet)

AddNetwork will add a route to network in the main Linux routing table.

func (RouteExporter) DeleteNetwork

func (rt RouteExporter) DeleteNetwork(network net.IPNet)

DeleteNetwork will delete the route to network from the main Linux routing table.

Jump to

Keyboard shortcuts

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