winptap-native 0.2.0

Independent native Packet Monitor RX capture for Windows x64
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use winptap_core::*;
/// Require the architecture used by the native IOCTL wire layouts.
pub fn require_supported_platform() -> Result<()> {
    #[cfg(all(windows, target_arch = "x86_64"))]
    {
        Ok(())
    }
    #[cfg(not(all(windows, target_arch = "x86_64")))]
    {
        Err(Error::UnsupportedPlatform)
    }
}