#networking #macro #mac #ether #tcp #low-level

bin+lib sendpacket

High-level library for interacting with low-level network data

2 releases

Uses old Rust 2015

0.1.1 May 11, 2018
0.1.0 May 11, 2018

#599 in #networking


521 lines


sendpacket is a high-level rust library for low-level networking that makes use of macros to provide a "kwargs-like" interface a-la python's dpkt/scapy.

With sendpacket you can construct and modify arbitrary packet data and attempt to send it via a NIC, which uses libpnet under the covers.

sendpacket should perform well, but is otherwise fundamentally a hackathon project: it exposes a somewhat hacky API, provides an incomplete set of functionality for general use, and the authors don't promise any level of maintenance.


Licensed under either of

at your option.


Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.


~42K SLoC