pub struct IpPrefixRoute {
pub esi: [u8; 10],
pub ethernet_tag_id: u32,
pub ip_prefix: IpNet,
pub gateway_ip: IpAddr,
pub raw_label: u32,
}Expand description
IP Prefix route body - RFC 9136 §3.1.
The wire format carries the Ethernet Segment Identifier like the other EVPN route types, and the IP prefix and gateway address are always full width (4 or 16 octets). The NLRI length, not the prefix length, tells IPv4 (34 octets) from IPv6 (58).
Fields§
§esi: [u8; 10]Ethernet Segment Identifier (10 octets).
ethernet_tag_id: u32Ethernet Tag ID (4 octets).
ip_prefix: IpNetThe advertised IP prefix; the prefix length is on the wire and the address family follows from it.
gateway_ip: IpAddrGateway IP address (4 or 16 octets, matching the prefix family).
raw_label: u32The 24-bit label field: a VNI in a VXLAN fabric (RFC 8365 §5), or an
MPLS label with TC/S/TTL in the low bits, see
IpPrefixRoute::mpls_label.
Implementations§
Source§impl IpPrefixRoute
impl IpPrefixRoute
Sourcepub fn mpls_label(&self) -> MplsLabel
pub fn mpls_label(&self) -> MplsLabel
Interpret the label field as an MPLS label - RFC 7432 §7.2.
Trait Implementations§
Source§impl Clone for IpPrefixRoute
impl Clone for IpPrefixRoute
Source§impl Debug for IpPrefixRoute
impl Debug for IpPrefixRoute
impl Eq for IpPrefixRoute
Source§impl PartialEq for IpPrefixRoute
impl PartialEq for IpPrefixRoute
impl StructuralPartialEq for IpPrefixRoute
Auto Trait Implementations§
impl Forget for IpPrefixRoute
impl Freeze for IpPrefixRoute
impl RefUnwindSafe for IpPrefixRoute
impl Send for IpPrefixRoute
impl Sync for IpPrefixRoute
impl Unpin for IpPrefixRoute
impl UnsafeUnpin for IpPrefixRoute
impl UnwindSafe for IpPrefixRoute
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more