packet_formats

Module 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.
  • An IP fragment offset.

Enums§

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.