ospf

package
v0.0.0-...-6d70f77 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IPv4

type IPv4 = cutevpn.IPv4

type Neighbor

type Neighbor struct {
	Name string
	Addr IPv4
}

type OSPF

type OSPF struct {
	// contains filtered or unexported fields
}

func New

func New(vpn cutevpn.VPN, ip IPv4, isLeaf bool) *OSPF
func (ospf *OSPF) AddLink(peer cutevpn.Route)

func (*OSPF) Dump

func (ospf *OSPF) Dump() []byte

func (*OSPF) GetAdja

func (ospf *OSPF) GetAdja(adja IPv4) (cutevpn.Route, error)

func (*OSPF) GetShortest

func (ospf *OSPF) GetShortest(dst IPv4) (cutevpn.Route, error)

func (*OSPF) Inject

func (ospf *OSPF) Inject(p Packet)

func (*OSPF) Neighbors

func (ospf *OSPF) Neighbors() []Neighbor

func (*OSPF) SendQueue

func (ospf *OSPF) SendQueue() chan Packet

type Packet

type Packet struct {
	Route   cutevpn.Route
	Payload []byte
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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