Type Definition etherparse::IpTrafficClass [−][src]
pub type IpTrafficClass = IpNumber;
👎 Deprecated since 0.10.1:
Please use the type IpNumber instead
Expand description
This type has been deprecated please use IpNumber instead.
IPv6 headers have a field called traffic_class
which has nothing
to do this enum. This unlucky coincedence got even the developer
of this library confused enough to write that the next header number
should be written into the traffic_class
field instead of the
next_header
field.
To avoid such confusions in the future the enum has been renamed to IpNumber, which also closer to the name “Assigned Internet Protocol Numbers” used on iana.org .