pub struct Dot11BlockAck {
pub offset: usize,
pub len: usize,
}Expand description
802.11 Block Ack (BA) frame body.
After the 802.11 header (Addr1 + Addr2), contains:
- BA Control (2 bytes, little-endian)
- Starting Sequence Control (2 bytes, little-endian)
- Block Ack Bitmap (variable, typically 128 bytes for basic BA)
Fields§
§offset: usize§len: usizeImplementations§
Source§impl Dot11BlockAck
impl Dot11BlockAck
pub fn new(offset: usize, len: usize) -> Self
Sourcepub fn ba_control(&self, buf: &[u8]) -> Result<u16, FieldError>
pub fn ba_control(&self, buf: &[u8]) -> Result<u16, FieldError>
BA Control field (little-endian u16).
Sourcepub fn ack_policy(&self, buf: &[u8]) -> Result<bool, FieldError>
pub fn ack_policy(&self, buf: &[u8]) -> Result<bool, FieldError>
BA Ack Policy (bit 0).
Sourcepub fn start_seq_ctrl(&self, buf: &[u8]) -> Result<u16, FieldError>
pub fn start_seq_ctrl(&self, buf: &[u8]) -> Result<u16, FieldError>
Starting Sequence Control (little-endian u16).
Sourcepub fn start_seq_num(&self, buf: &[u8]) -> Result<u16, FieldError>
pub fn start_seq_num(&self, buf: &[u8]) -> Result<u16, FieldError>
Starting sequence number.
Sourcepub fn bitmap<'a>(&self, buf: &'a [u8]) -> Result<&'a [u8], FieldError>
pub fn bitmap<'a>(&self, buf: &'a [u8]) -> Result<&'a [u8], FieldError>
Block Ack Bitmap (variable length, starts at offset+4).
Sourcepub fn header_len(&self) -> usize
pub fn header_len(&self) -> usize
Header length (entire BA body including bitmap).
Trait Implementations§
Source§impl Clone for Dot11BlockAck
impl Clone for Dot11BlockAck
Source§fn clone(&self) -> Dot11BlockAck
fn clone(&self) -> Dot11BlockAck
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 moreAuto Trait Implementations§
impl Freeze for Dot11BlockAck
impl RefUnwindSafe for Dot11BlockAck
impl Send for Dot11BlockAck
impl Sync for Dot11BlockAck
impl Unpin for Dot11BlockAck
impl UnsafeUnpin for Dot11BlockAck
impl UnwindSafe for Dot11BlockAck
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