iPXE
Data Fields
dhcp_option Struct Reference

A DHCP option. More...

#include <dhcp.h>

Data Fields

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

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

uint8_t dhcp_option::tag

Tag.

Must be a DHCP_XXX value.

Definition at line 562 of file dhcp.h.

◆ len

uint8_t dhcp_option::len

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 resize_dhcp_option().

◆ data

uint8_t dhcp_option::data[0]

Option data.

Definition at line 573 of file dhcp.h.


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