etherparse
A library for parsing & writing a bunch of packet based protocols (EthernetII, IPv4, IPv6, UDP ...).
Currently supported are:
- Ethernet II
- IEEE 802.1Q VLAN Tagging Header
- IPv4
- IPv6 (missing extension headers, but supporting skipping them)
- UDP
References
- Darpa Internet Program Protocol Specification RFC 791
- Internet Protocol, Version 6 (IPv6) Specification RFC 8200
- IANA Protocol Numbers
- Wikipedia IEEE_802.1Q
- User Datagram Protocol (UDP) RFC 768