Expand description
WireForge Packet — unified packet enum and protocol dispatch.
This crate provides a single Packet enum that can represent any
supported protocol layer, plus helper functions to automatically
dispatch from raw bytes to the correct protocol parser.
Enums§
- Packet
- Unified packet enum covering all supported L2–L4 protocols.
Functions§
- parse_
ethernet_ frame - Parse an Ethernet frame and dispatch the encapsulated protocol.
- parse_
ipv4_ payload - Dispatch the payload of an IPv4 packet to the correct transport-layer parser.
- parse_
ipv6_ payload - Dispatch the payload of an IPv6 packet (skipping extension headers).