Expand description
Path attribute types and codec (ORIGIN, AS_PATH, NEXT_HOP, etc.).
Structs§
- AsPath
AS_PATHattribute.- Extended
Community - RFC 4360 Extended Community — 8-byte value stored as
u64. - Large
Community - RFC 8092 Large Community — 12-byte value:
(global_admin, local_data1, local_data2). - MpReach
Nlri - RFC 4760
MP_REACH_NLRIattribute (type code 14). - MpUnreach
Nlri - RFC 4760
MP_UNREACH_NLRIattribute (type 15). - RawAttribute
- Raw attribute preserved for pass-through (RFC 4271 §5).
Enums§
- AsPath
Segment AS_PATHsegment types per RFC 4271 §4.3.- Origin
- Origin attribute values per RFC 4271 §5.1.1.
- Path
Attribute - A known path attribute or raw preserved bytes.
Functions§
- decode_
path_ attributes - Decode path attributes from wire bytes (RFC 4271 §4.3).
- encode_
path_ attributes - Encode path attributes to wire bytes.
- is_
private_ asn - Returns
trueif the given ASN falls in a private-use range.