Module ip

Source
Expand description

IP protocol types.

Structs§

DscpAndEcn
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.
FragmentOffset
An IP fragment offset.

Enums§

IpProto
An IPv4 or IPv6 protocol number.
Ipv4Proto
An IPv4 protocol number.
Ipv6ExtHdrType
An IPv6 extension header.
Ipv6Proto
An IPv6 protocol number.
Nat64Error
An error encountered during NAT64 translation.
Nat64TranslationResult
The result of NAT64 translation.

Traits§

IpExt
An extension trait to the Ip trait adding associated types relevant for packet parsing and serialization.
IpPacket
An IPv4 or IPv6 packet.
IpPacketBuilder
A builder for IP packets.
IpProtoExt
An Ip extension trait adding an associated type for the IP protocol number.
IpProtocol
An IPv4 or IPv6 protocol number.