Registry / networking / pnet-packet

pnet-packet

JSON →
library0.35.0rscratesunverified

Cross-platform, binary packet parsing and manipulation library.

# Cargo.toml [dependencies] pnet_packet = "0.35.0"
INSTALL
IMPORT
SIG · PNET-PACKET
P
pnet-packet
networkingrustv0.35.0
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 pnet_packet::Packet;

Parses an Ethernet packet from raw bytes.

use pnet_packet::Packet; use pnet_packet::ethernet::EthernetPacket; fn main() { let data = vec![0u8; 14]; let packet = EthernetPacket::new(&data).unwrap(); println!("Packet: {:?}", packet); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.35.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
5 hits · last 30 days
node
4
Amazon
1
Resources
pnet-packet — cargo add pnet-packet · libregistry