Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrLength = errors.New("invalid length") ErrValue = errors.New("invalid value") )
Functions ¶
Types ¶
type NLRI ¶
type NLRI struct {
netip.Prefix // the IP prefix
Options Options // controls optional features
Val uint32 // additional NLRI value, eg. the ADD_PATH Path Identifier
}
NLRI is Network Layer Reachability Information (RFC4271), extended to support ADD_PATH (RFC7911).
func FromPrefix ¶
FromPrefix returns normalized prefix p wrapped in NLRI
func FromString ¶ added in v0.5.1
FromString parses either a prefix or an address in string format, and returns it normalized and wrapped in NLRI.
func (*NLRI) FindParent ¶
FindParent returns the first index i into parents where parents[i] fully covers p, or -1 if not found.
Click to show internal directories.
Click to hide internal directories.