config

package
v0.0.3-pre8 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RtLocal   uint32 = 255 // according to man ip-route: 255 is reserved for built-in use
	RtMain    uint32 = 254 // This is the default table where routes are inserted
	RtDefault uint32 = 253 // according to man ip-route: 253 is reserved for built-in use
	RtUnspec  uint32 = 0   // according to man ip-route: 0 is reserved for built-in use

)

Constants for default routing tables in the Linux Kernel

View Source
const BGPPORT = uint16(179)

Variables

This section is empty.

Functions

This section is empty.

Types

type Global

type Global struct {
	LocalASN         uint32
	RouterID         uint32
	Port             uint16
	LocalAddressList []net.IP
	Listen           bool
}

func (*Global) SetDefaultGlobalConfigValues

func (g *Global) SetDefaultGlobalConfigValues() error
type Netlink struct {
	HoldTime          time.Duration
	UpdateInterval    time.Duration
	RoutingTable      uint32
	ImportFilterChain filter.Chain // Which routes are imported from the Kernel
	ExportFilterChain filter.Chain // Which routes are exported to the Kernel
}

Netlink holds the configuration of the Netlink protocol

Jump to

Keyboard shortcuts

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