pub struct AspaValidationContext {
pub neighbor_asn: Option<u32>,
pub local_role: Option<BgpRole>,
pub first_as_check_exempt: bool,
}Expand description
Session context needed to choose and replay ASPA path verification.
ASPA verification is role-aware in
draft-ietf-sidrops-aspa-verification-25: routes received from a
provider use downstream verification, while customer/peer/route-server
shapes use upstream verification. Stored routes keep this compact context
so RTR cache updates can revalidate them with the same relationship
semantics used at import time.
Fields§
§neighbor_asn: Option<u32>Neighbor ASN used for the draft v25 leftmost-AS precondition.
local_role: Option<BgpRole>Locally configured BGP Role for this eBGP session.
first_as_check_exempt: boolTrue when the local speaker is an RS-client receiving through a transparent route server / IX, where the draft exempts the leftmost-AS precondition.
Trait Implementations§
Source§impl Clone for AspaValidationContext
impl Clone for AspaValidationContext
Source§fn clone(&self) -> AspaValidationContext
fn clone(&self) -> AspaValidationContext
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for AspaValidationContext
Source§impl Debug for AspaValidationContext
impl Debug for AspaValidationContext
Source§impl Default for AspaValidationContext
impl Default for AspaValidationContext
Source§fn default() -> AspaValidationContext
fn default() -> AspaValidationContext
Returns the “default value” for a type. Read more
impl Eq for AspaValidationContext
Source§impl Hash for AspaValidationContext
impl Hash for AspaValidationContext
Source§impl PartialEq for AspaValidationContext
impl PartialEq for AspaValidationContext
Source§fn eq(&self, other: &AspaValidationContext) -> bool
fn eq(&self, other: &AspaValidationContext) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for AspaValidationContext
Auto Trait Implementations§
impl Freeze for AspaValidationContext
impl RefUnwindSafe for AspaValidationContext
impl Send for AspaValidationContext
impl Sync for AspaValidationContext
impl Unpin for AspaValidationContext
impl UnsafeUnpin for AspaValidationContext
impl UnwindSafe for AspaValidationContext
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