pub struct SampledEthernet {
pub length: u32,
pub src_mac: MacAddress,
pub dst_mac: MacAddress,
pub eth_type: u32,
}Expand description
Sampled Ethernet Frame - Format (0,2)
Ethernet frame header information
§XDR Definition (sFlow v5)
/* Ethernet Frame Data */
/* opaque = flow_data; enterprise = 0; format = 2 */
struct sampled_ethernet {
unsigned int length; /* The length of the MAC packet received on the
network, excluding lower layer encapsulations
and framing bits but including FCS octets */
mac src_mac; /* Source MAC address */
mac dst_mac; /* Destination MAC address */
unsigned int type; /* Ethernet packet type */
}Fields§
§length: u32Length of MAC packet in bytes
src_mac: MacAddressSource MAC address
dst_mac: MacAddressDestination MAC address
eth_type: u32Ethernet type (spec: type)
Trait Implementations§
Source§impl Clone for SampledEthernet
impl Clone for SampledEthernet
Source§fn clone(&self) -> SampledEthernet
fn clone(&self) -> SampledEthernet
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 SampledEthernet
impl Debug for SampledEthernet
Source§impl PartialEq for SampledEthernet
impl PartialEq for SampledEthernet
impl Eq for SampledEthernet
impl StructuralPartialEq for SampledEthernet
Auto Trait Implementations§
impl Freeze for SampledEthernet
impl RefUnwindSafe for SampledEthernet
impl Send for SampledEthernet
impl Sync for SampledEthernet
impl Unpin for SampledEthernet
impl UnwindSafe for SampledEthernet
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