#include <dhcp.h>
Data Fields | |
| uint8_t | tag |
| Tag. | |
| uint8_t | len |
| Length. | |
| uint8_t | data [0] |
| Option data. | |
DHCP options consist of a mandatory tag, a length field that is mandatory for all options except DHCP_PAD and DHCP_END, and a payload.
Definition at line 468 of file dhcp.h.
Tag.
Must be a DHCP_XXX value.
Definition at line 473 of file dhcp.h.
Referenced by dhcp_option_len(), dhcpopt_update_len(), find_dhcp_option_with_encap(), and set_dhcp_option().
Length.
This is the length of the data field (i.e. excluding the tag and length fields). For the two tags DHCP_PAD and DHCP_END, the length field is implicitly zero and is also missing, i.e. these DHCP options are only a single byte in length.
Definition at line 482 of file dhcp.h.
Referenced by dhcp_option_len(), dhcpopt_fetch(), resize_dhcp_option(), and set_dhcp_option().
Option data.
Definition at line 484 of file dhcp.h.
Referenced by dhcpopt_fetch(), and set_dhcp_option().
1.5.7.1