pub struct SLL2 {
pub protocol_type: EtherType,
pub reserved: u16,
pub interface_index: u32,
pub arphrd_type: u16,
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: u16
§interface_index: u32
§arphrd_type: u16
§packet_type: u8
§link_layer_address_length: u8
§link_layer_address: Vec<u8>
§payload: Vec<u8>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SLL2
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