Rscap

![Latest Version] ![Documentation] ![rscap: rustc 1.65+]

Rscap - Rust packet capture and manipulation utilities


Rscap is a multi-purpose library for network packet capture/transmission and packet building. Its aims are twofold:

  1. To provide Rust-native platform tools for packet capture and transmission (comparable to libpcap, but written from the ground up in Rust)
  2. To expose a robust and ergonomic API for building packets and accessing/modifying packet data fields in various network protocols (like scapy, but with strong typing and significantly improved performance)

Features

```rust use layers::{ip::Ipv4, tcp::Tcp};

let pkt = Ip::new() / Tcp::new(); pkt[Tcp].setsport(80); pkt[Tcp].setdport(12345); ```

License

The source code of this project is licensed under either the MIT License or the Apache 2.0 License, at your option.