iPXE
Data Fields
dhcp_option Struct Reference

A DHCP option. More...

#include <dhcp.h>

Data Fields

uint8_t tag
 Tag.
uint8_t len
 Length.
uint8_t data [0]
 Option data.

Detailed Description

A DHCP option.

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 557 of file dhcp.h.


Field Documentation

Tag.

Must be a DHCP_XXX value.

Definition at line 562 of file dhcp.h.

Referenced by dhcp_option_len(), dhcpopt_update_used_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 571 of file dhcp.h.

Referenced by dhcp_option_len(), dhcpopt_fetch(), resize_dhcp_option(), and set_dhcp_option().

Option data.

Definition at line 573 of file dhcp.h.

Referenced by dhcpopt_fetch(), and set_dhcp_option().


The documentation for this struct was generated from the following file: