rawsock 0.3.0

Library for receiving and sending raw packets. While most crate wrap just one library, rawsock allows you to use pcap, wpcap, npcap and pf_ring (pfring) using a consistent API for all of them.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
/// Default paths (os-specific) where the wpcap dynamically loaded library is stored.
#[cfg(windows)]
pub const DEFAULT_PATHS: [&'static str; 4] = [
    "NPcap\\Packet.dll",
    "Packet.dll",
    "Npcap\\wpcap.dll",
    "wpcap.dll"
];

/// Default paths (os-specific) where the wpcap dynamically loaded library is stored.
#[cfg(not(windows))]
pub const DEFAULT_PATHS: [&'static str; 0] = [];