Registry / networking / packet

packet

JSON →
library0.1.4rscratesunverified

Network packet handling library for parsing and constructing packets.

# Cargo.toml [dependencies] packet = "0.1.4"
INSTALL
IMPORT
SIG · PACKET
P
packet
networkingrustv0.1.4
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Packet
use packet::Packet;

Parse a raw network packet.

use packet::Packet; let data = vec![0x45, 0x00, 0x00, 0x3c]; // Example IPv4 header let packet = Packet::new(&data).unwrap(); println!("Packet length: {}", packet.len());
Debug
Known issues
gotchaThe library may not support all packet types; check documentation for supported protocols.
fix
Use pnet or libpnet for more comprehensive packet handling.
affects: >=0.1.0
Upgrade
Version history
0.1.4latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
packet — cargo add packet · libregistry