bfd

package
v4.5.0 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidPacketLength = errors.New("invalid packet length")
	ErrInvalidHeader       = errors.New("invalid header")
	ErrInvalidVersion      = errors.New("invalid version")
	ErrInvalidDiagnostic   = errors.New("invalid diagnostic")
	ErrInvalidState        = errors.New("invalid state")
)

Functions

This section is empty.

Types

type BFDHeader

type BFDHeader struct {
	Version               uint8
	Diagnostic            DiagnosticType
	State                 StateType
	Poll                  bool
	Final                 bool
	DetectTimeMultiplier  uint8
	MyDiscriminator       uint32
	YourDiscriminator     uint32
	DesiredMinTxInterval  uint32
	RequiredMinRxInterval uint32
}

func (*BFDHeader) MarshalBinary

func (h *BFDHeader) MarshalBinary() ([]byte, error)

func (*BFDHeader) UnmarshalBinary

func (h *BFDHeader) UnmarshalBinary(buf []byte) error

func (*BFDHeader) Validate

func (h *BFDHeader) Validate() error

type DiagnosticType

type DiagnosticType uint8
const (
	DiagnosticNoDiagnostic                DiagnosticType = iota // no diagnostic
	DiagnosticControlDetectionTimeExpired                       // control detection time expired
	DiagnosticEchoFunctionFailed                                // echo function failed
	DiagnosticNeighborSignaledSessionDown                       // neighbor signaled session down
	DiagnosticForwardingPlaneReset                              // forwarding plane reset
	DiagnosticPathDown                                          // path down
	DiagnosticConcatenatedPathDown                              // concatenated path down
	DiagnosticAdministrativelyDown                              // administratively down
	DiagnosticReverseConcatenatedPathDown                       // reverse concatenated path down

	DiagnosticReservedStart DiagnosticType = 9  // reserved (9-31)
	DiagnosticReservedEnd   DiagnosticType = 31 // reserved (9-31)
)

A diagnostic code specifying the local system's reason for the last change in session state.

func (DiagnosticType) String

func (i DiagnosticType) String() string

type StateType

type StateType uint8
const (
	StateAdminDown StateType = iota // admin down
	StateDown                       // down
	StateInit                       // init
	StateUp                         // up
)

func (StateType) String

func (i StateType) String() string

Jump to

Keyboard shortcuts

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