pub struct ExtendedSwitch {
pub src_vlan: u32,
pub src_priority: u32,
pub dst_vlan: u32,
pub dst_priority: u32,
}Expand description
Extended Switch Data - Format (0,1001)
Layer 2 switching information
§XDR Definition (sFlow v5)
/* Extended Switch Data */
/* opaque = flow_data; enterprise = 0; format = 1001 */
struct extended_switch {
unsigned int src_vlan; /* The 802.1Q VLAN id of incoming frame,
0xffffffff if unknown */
unsigned int src_priority; /* The 802.1p priority of incoming frame,
0xffffffff if unknown */
unsigned int dst_vlan; /* The 802.1Q VLAN id of outgoing frame,
0xffffffff if unknown */
unsigned int dst_priority; /* The 802.1p priority of outgoing frame,
0xffffffff if unknown */
}ERRATUM: The specification was updated to clarify that 0xffffffff indicates unknown values.
Fields§
§src_vlan: u32Source VLAN ID ERRATUM: 0xffffffff if unknown
src_priority: u32Source priority (802.1p) ERRATUM: 0xffffffff if unknown
dst_vlan: u32Destination VLAN ID ERRATUM: 0xffffffff if unknown
dst_priority: u32Destination priority (802.1p) ERRATUM: 0xffffffff if unknown
Trait Implementations§
Source§impl Clone for ExtendedSwitch
impl Clone for ExtendedSwitch
Source§fn clone(&self) -> ExtendedSwitch
fn clone(&self) -> ExtendedSwitch
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 ExtendedSwitch
impl Debug for ExtendedSwitch
Source§impl PartialEq for ExtendedSwitch
impl PartialEq for ExtendedSwitch
impl Eq for ExtendedSwitch
impl StructuralPartialEq for ExtendedSwitch
Auto Trait Implementations§
impl Freeze for ExtendedSwitch
impl RefUnwindSafe for ExtendedSwitch
impl Send for ExtendedSwitch
impl Sync for ExtendedSwitch
impl Unpin for ExtendedSwitch
impl UnwindSafe for ExtendedSwitch
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