Expand description
A Rust library for building and manipulating network packets.
This library provides a flexible and type-safe way to construct various types of network packets, including Ethernet frames, IPv4 packets, TCP segments, and UDP datagrams. It features:
- Builder pattern for packet construction
- Checksum calculation and validation
- Raw socket support for sending and receiving packets
- Async support via Tokio
- Serialization support via Serde
Re-exports§
pub use error::PacketError;
Modules§
- arp
- ARP (Address Resolution Protocol) implementation.
- dhcp
- DHCP (Dynamic Host Configuration Protocol) implementation.
- error
- Error types for the packet builder library.
- ethernet
- Ethernet frame implementation.
- icmp
- ICMP (Internet Control Message Protocol) implementation.
- ip
- socket
- Network socket implementation for sending and receiving packets.
- tcp
- TCP (Transmission Control Protocol) implementation.
- udp
- UDP (User Datagram Protocol) implementation.
Traits§
- Checksumable
- Trait for packets that require checksum calculation.
- Packet
Builder - Core trait for all packet builders.
- Packet
Header - Common header trait for all packet types.