rawsock 0.1.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 using a consistent API for all of them.
Documentation

rust-rawsock

Travis CI Crates CI Docs

Overview

rawsock is a Rust library that highly simplifies use of packet capturing libraries such as pcap, wpcap or pf_ring and also libraries with a compatible API, such as npcap. It can help you to send and receive raw socket frames. It also provides a consistent API for using these libraries, so that the internal complexity is hidden.

Main features

  • Support of pcap, wpcap (with Windows-specific optimizations), npcap and pfring
  • Libraries are loaded in a dynamic manner, so that the library does not havee any direct dependency - it's going to work with whatever is available on the given platform.
  • Consistent API for all packet capturing libraries.
  • Provided wrapper that automatically chooses an implementation available on your platform.

Usage:

For now:

Cargo.toml:

[dependencies]
rawsock = { git = "https://github.com/szymonwieloch/rust-rawsock"}

Documentation

For now:

cargo doc --open

License

This code is licensed under MIT license.