pub struct MpReachNlri {
pub afi: Afi,
pub safi: Safi,
pub next_hop: IpAddr,
pub link_local_next_hop: Option<Ipv6Addr>,
pub announced: Vec<NlriEntry>,
pub flowspec_announced: Vec<FlowSpecRule>,
pub evpn_announced: Vec<EvpnRoute>,
}Expand description
RFC 4760 MP_REACH_NLRI attribute (type code 14).
Uses NlriEntry to carry Add-Path path IDs alongside each prefix.
For non-Add-Path peers, path_id is always 0.
Fields§
§afi: AfiAddress family.
safi: SafiSub-address family.
next_hop: IpAddrGlobal next-hop address for the announced prefixes.
RFC 8950 allows IPv4 unicast NLRI to use an IPv6 next hop in
MP_REACH_NLRI, so this field may be IPv6 even when afi == Ipv4.
For FlowSpec (SAFI 133), next-hop length is 0 and this field is
unused (defaults to 0.0.0.0).
link_local_next_hop: Option<Ipv6Addr>Optional IPv6 link-local next-hop carried alongside the global address per RFC 4760 §3 / RFC 2545 §3. Populated only when the wire NH-Len is 32 bytes (global + link-local). The decoder preserves the second 16 bytes here so re-encode round-trips.
announced: Vec<NlriEntry>Announced NLRI entries.
flowspec_announced: Vec<FlowSpecRule>FlowSpec NLRI rules (RFC 8955). Populated only when safi == FlowSpec.
evpn_announced: Vec<EvpnRoute>EVPN NLRI routes (RFC 7432). Populated only when safi == Evpn.
Trait Implementations§
Source§impl Clone for MpReachNlri
impl Clone for MpReachNlri
Source§fn clone(&self) -> MpReachNlri
fn clone(&self) -> MpReachNlri
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more