pub struct ExtendedGateway {
pub next_hop: Address,
pub as_number: u32,
pub src_as: u32,
pub src_peer_as: u32,
pub dst_as_path: Vec<AsPathSegment>,
pub communities: Vec<u32>,
pub local_pref: u32,
}Expand description
Extended Gateway Data - Format (0,1003)
BGP routing information
§XDR Definition (sFlow v5)
/* Extended Gateway Data */
/* opaque = flow_data; enterprise = 0; format = 1003 */
struct extended_gateway {
next_hop nexthop; /* Address of the border router */
unsigned int as; /* Autonomous system number of router */
unsigned int src_as; /* Autonomous system number of source */
unsigned int src_peer_as; /* Autonomous system number of source peer */
as_path_type dst_as_path<>; /* AS path to the destination */
unsigned int communities<>; /* Communities associated with this route */
unsigned int localpref; /* LocalPref associated with this route */
}Fields§
§next_hop: AddressIP address of the border router (spec: nexthop)
as_number: u32Autonomous system number (spec: as)
src_as: u32Source AS
src_peer_as: u32Source peer AS
dst_as_path: Vec<AsPathSegment>Autonomous system path to the destination
communities: Vec<u32>Communities associated with this route
local_pref: u32Local preference (spec: localpref)
Trait Implementations§
Source§impl Clone for ExtendedGateway
impl Clone for ExtendedGateway
Source§fn clone(&self) -> ExtendedGateway
fn clone(&self) -> ExtendedGateway
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ExtendedGateway
impl Debug for ExtendedGateway
Source§impl PartialEq for ExtendedGateway
impl PartialEq for ExtendedGateway
impl Eq for ExtendedGateway
impl StructuralPartialEq for ExtendedGateway
Auto Trait Implementations§
impl Freeze for ExtendedGateway
impl RefUnwindSafe for ExtendedGateway
impl Send for ExtendedGateway
impl Sync for ExtendedGateway
impl Unpin for ExtendedGateway
impl UnwindSafe for ExtendedGateway
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