config

package
v0.0.3-pre4.0...-0ec3cfc Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2020 License: Apache-2.0 Imports: 9 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 ISISConfig

type ISISConfig struct {
	NETs                       []NET
	Interfaces                 []ISISInterfaceConfig
	TrafficEngineeringRouterID [4]byte
}

type ISISInterfaceConfig

type ISISInterfaceConfig struct {
	Name             string
	Passive          bool
	P2P              bool
	ISISLevel1Config *ISISLevelConfig
	ISISLevel2Config *ISISLevelConfig
}

type ISISLevelConfig

type ISISLevelConfig struct {
	HelloInterval uint16
	HoldTime      uint16
	Metric        uint32
	Priority      uint8
}

type NET

type NET struct {
	AFI      byte
	AreaID   types.AreaID
	SystemID types.SystemID
	SEL      byte
}

NET represents an ISO network entity title

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