types

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CircuitTypeL1   = 1
	CircuitTypeL2   = 2
	CircuitTypeL1L2 = 3
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AreaID

type AreaID []byte

AreaID is an ISIS Area ID

func (AreaID) Equal

func (a AreaID) Equal(b AreaID) bool

Equal checks if area IDs are equal

type NET

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

NET represents an ISO network entity title

func ParseNET

func ParseNET(addr []byte) (*NET, error)

ParseNET parses an network entity title

type SourceID

type SourceID struct {
	SystemID  SystemID
	CircuitID uint8
}

SourceID is a source ID

func NewSourceID

func NewSourceID(sysID SystemID, circuitID uint8) SourceID

NewSourceID creates a new SourceID

func (*SourceID) Serialize

func (srcID *SourceID) Serialize() []byte

Serialize serializes a source ID

type SystemID

type SystemID [systemIDLen]byte

SystemID is an ISIS System ID

func (*SystemID) String

func (sysID *SystemID) String() string

Jump to

Keyboard shortcuts

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