Registry / networking / etherparse

etherparse

JSON →
library0.20.0rscratesunverified

A library for parsing and writing Ethernet II, IPv4, IPv6, UDP, TCP, and other packet-based protocols.

networking
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.

use etherparse::Ethernet2Header;

Parse an Ethernet II header from raw bytes

use etherparse::Ethernet2Header; let bytes = [0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0a, 0x0b, 0x08, 0x00]; let (header, _) = Ethernet2Header::from_slice(&bytes).unwrap(); println!("EtherType: {}", header.ether_type);
Debug
Known footguns
gotchaPacket parsing may fail if data is malformed or incomplete
Upgrade
Version history

Breaking-change detection hasn't run for this library yet.

Audit
Security & dependencies

CVE tracking and dependency tree are planned for a later release.

Agent activity
12 hits · last 30 days
gptbot
3
claudebot
3
ahrefsbot
1
Resources