1use alloc::vec::Vec;
4
5use super::ethernet::EtherType;
6use pnet_macros::packet;
7use pnet_macros_support::types::*;
8
9#[packet]
14pub struct SLL {
15 #[construct_with(u16)]
16 pub packet_type: u16be,
17 #[construct_with(u16)]
18 pub link_layer_address_type: u16be,
19 #[construct_with(u16)]
20 pub link_layer_address_len: u16be,
21 #[construct_with(u8, u8, u8, u8, u8, u8, u8, u8)]
22 #[length = "8"]
23 pub link_layer_address: Vec<u8>,
24 #[construct_with(u16)]
25 pub protocol: EtherType,
26 #[payload]
27 pub payload: Vec<u8>,
28}