Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrLength = errors.New("invalid length") ErrValue = errors.New("invalid value") )
Functions ¶
Types ¶
type Prefix ¶ added in v0.10.0
type Prefix struct {
netip.Prefix // the IP prefix
Add any // additional value, eg. the ADD_PATH Path Identifier
}
Prefix is Network Layer Reachability Information (RFC4271), extended to support ADD_PATH (RFC7911) and possibly other features.
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 (*Prefix) FindParent ¶ added in v0.10.0
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.