Skip to main content

Module attribute

Module attribute 

Source
Expand description

Path attribute types and codec (ORIGIN, AS_PATH, NEXT_HOP, etc.).

Structs§

AsPath
AS_PATH attribute.
ExtendedCommunity
RFC 4360 Extended Community — 8-byte value stored as u64.
LargeCommunity
RFC 8092 Large Community — 12-byte value: (global_admin, local_data1, local_data2).
MpReachNlri
RFC 4760 MP_REACH_NLRI attribute (type code 14).
MpUnreachNlri
RFC 4760 MP_UNREACH_NLRI attribute (type 15).
RawAttribute
Raw attribute preserved for pass-through (RFC 4271 §5).

Enums§

AsPathSegment
AS_PATH segment types per RFC 4271 §4.3.
Origin
Origin attribute values per RFC 4271 §5.1.1.
PathAttribute
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 true if the given ASN falls in a private-use range.