Expand description

A zero-copy DHCPv4 parser.

This crate is suitable for writing DHCP relay agents, which only need to read and write a few fields, set and possibly remove a couple of options, before forwarding an incoming DHCP message.

Although fields in the underlying message buffers are stored in network-endian, the arguments and return values of getters and setters defined by this crate are all native-endian.

Modules

DHCPv4 definitions and parser.

DHCPv6 definitions and parser.

Macros

Convenience macro for parsing a set of DHCPv4 options from a message.

Enums

The type of errors that may be produced by this crate.