pub struct Sniffer { /* private fields */ }
Expand description
A wifi sniffer.
Implementations§
Source§impl Sniffer
impl Sniffer
Sourcepub fn set_promiscuous_mode(&self, enabled: bool) -> Result<(), WifiError>
pub fn set_promiscuous_mode(&self, enabled: bool) -> Result<(), WifiError>
Set promiscuous mode enabled or disabled.
Sourcepub fn send_raw_frame(
&mut self,
use_sta_interface: bool,
buffer: &[u8],
use_internal_seq_num: bool,
) -> Result<(), WifiError>
pub fn send_raw_frame( &mut self, use_sta_interface: bool, buffer: &[u8], use_internal_seq_num: bool, ) -> Result<(), WifiError>
Transmit a raw frame.
Sourcepub fn set_receive_cb(&mut self, cb: fn(_: PromiscuousPkt<'_>))
pub fn set_receive_cb(&mut self, cb: fn(_: PromiscuousPkt<'_>))
Set the callback for receiving a packet.