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.