| Crates.io | pkts-macros |
| lib.rs | pkts-macros |
| version | 0.2.0 |
| created_at | 2023-03-04 01:06:01.137763+00 |
| updated_at | 2024-09-17 19:03:33.198822+00 |
| description | procedural macros for deriving `pkts` library traits |
| homepage | |
| repository | https://github.com/pkts-rs/pkts |
| max_upload_size | |
| id | 800251 |
| size | 23,763 |
Rscap is a multi-purpose library for network packet capture/transmission and packet building. Its aims are twofold:
libpcap, but written from the ground up in Rust)scapy, but with strong typing and significantly improved performance)The pkts module focuses solely on (2). It provides a packet-building API for a wide variety of network protocol layers.
This library isn't meant to only cover Datalink through Transport layers or stateless protocols--thanks to Sequence and Session types (which defragment/reorder packets and track packet state, respectively), any application-layer protocol can be easily captured and decoded.
The pkts-macros submodule provides derive macros for pkts that assist in creating new Layer types.
More information about the library can be found in the rscap or pkts crates, or at pkts.org.
The source code of this project is licensed under either the MIT License or the Apache 2.0 License, at your option.