Crate dhcparse

Source
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
DHCPv4 definitions and parser.
dhcpv6
DHCPv6 definitions and parser.

Macros§

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

Enums§

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