Module packet_formats::ip
source · Expand description
IP protocol types.
Structs§
- Combines Differentiated Services Code Point (DSCP) and Explicit Congestion Notification (ECN) values into one. Internally the 2 fields are stored using the same layout as the Traffic Class field in IPv6 and the Type Of Service field in IPv4: 6 higher bits for DSCP and 2 lower bits for ECN.
Enums§
- An IPv4 or IPv6 protocol number.
- An IPv4 protocol number.
- An IPv6 extension header.
- An IPv6 protocol number.
- An error encountered during NAT64 translation.
- The result of NAT64 translation.
Traits§
- An extension trait to the
Ip
trait adding associated types relevant for packet parsing and serialization. - An IPv4 or IPv6 packet.
- A builder for IP packets.
- An
Ip
extension trait adding an associated type for the IP protocol number. - An IPv4 or IPv6 protocol number.