Expand description
Utilities for parsing the options formats in protocols like IPv4, TCP, and NDP.
This module provides parsing utilities for type-length-value-like records encodings like those used by the options in an IPv4 or TCP header or an NDP packet. These formats are not identical, but share enough in common that the utilities provided here only need a small amount of customization by the user to be fully functional.
Structs§
- An error encountered while parsing an option or sequence of options.
Enums§
- Whether the length field of an option encodes the length of the entire option (including kind and length fields) or only of the value field.
Traits§
- A builder capable of serializing an option with an alignment requirement.
- The type of the “kind” and “length” fields in an option.
- A builder capable of serializing an option.
- Information about an option’s layout.
- An error encountered while parsing an option or sequence of options.
- Information about an option’s layout required in order to parse it.
- An implementation of an options parser.
Type Aliases§
- A builder capable of serializing a sequence of aligned options.
- A builder capable of serializing a sequence of options.
- A parsed sequence of options.
- A not-yet-parsed sequence of options.