Skip to main content

Module nlri

Module nlri 

Source
Expand description

NLRI prefix types and codec (IPv4, IPv6, Add-Path).

Structs§

Ipv4NlriEntry
An IPv4 NLRI entry with an optional Add-Path path ID (RFC 7911).
Ipv4Prefix
An IPv4 prefix (network address + prefix length).
Ipv6Prefix
An IPv6 prefix (network address + prefix length).
NlriEntry
A generic NLRI entry (IPv4 or IPv6) with an optional Add-Path path ID.

Enums§

Prefix
A prefix that can be either IPv4 or IPv6.

Functions§

decode_ipv6_nlri
Decode a sequence of IPv6 NLRI prefixes from wire format.
decode_ipv6_nlri_addpath
Decode a sequence of Add-Path IPv6 NLRI entries (RFC 7911 §3).
decode_nlri
Decode a sequence of NLRI prefixes from wire format (RFC 4271 §4.3).
decode_nlri_addpath
Decode a sequence of Add-Path IPv4 NLRI entries (RFC 7911 §3).
decode_nlri_addpath_generic
Decode Add-Path IPv4 NLRI entries into generic NlriEntry (for MP_REACH/MP_UNREACH).
encode_ipv6_nlri
Encode a sequence of IPv6 NLRI prefixes into wire format.
encode_ipv6_nlri_addpath
Encode a sequence of Add-Path IPv6 NLRI entries into wire format.
encode_nlri
Encode a sequence of NLRI prefixes into wire format.
encode_nlri_addpath
Encode a sequence of Add-Path IPv4 NLRI entries into wire format.