Struct xenet_packet::sll2::SLL2
source · pub struct SLL2 {
pub protocol_type: EtherType,
pub reserved: u16be,
pub interface_index: u32be,
pub arphrd_type: u16be,
pub packet_type: u8,
pub link_layer_address_length: u8,
pub link_layer_address: Vec<u8>,
pub payload: Vec<u8>,
}
Expand description
Represents an SLL2 packet (LINKTYPE_LINUX_SLL2).
Fields§
§protocol_type: EtherType
§reserved: u16be
§interface_index: u32be
§arphrd_type: u16be
§packet_type: u8
§link_layer_address_length: u8
§link_layer_address: Vec<u8>
§payload: Vec<u8>
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for SLL2
impl Send for SLL2
impl Sync for SLL2
impl Unpin for SLL2
impl UnwindSafe for SLL2
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