pub struct MpReachNlri {
pub afi: Afi,
pub safi: Safi,
pub next_hop: IpAddr,
pub announced: Vec<NlriEntry>,
pub flowspec_announced: Vec<FlowSpecRule>,
}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: IpAddrNext-hop address for the announced prefixes.
For IPv6, this stores only the global address. When a 32-byte
next-hop is received (global + link-local per RFC 4760 §3), the
decoder extracts the first 16 bytes (global) and discards the
link-local portion. IpAddr can only hold a single address, and
link-local next-hops are not needed for routing decisions.
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).
announced: Vec<NlriEntry>Announced NLRI entries.
flowspec_announced: Vec<FlowSpecRule>FlowSpec NLRI rules (RFC 8955). Populated only when safi == FlowSpec.
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