struct dhcp_option

Overview

DHCP option internal representation More…

#include <tapi_dhcp.h>

struct dhcp_option {
    // fields

    uint8_t type;
    uint8_t len;
    uint8_t val_len;
    uint8_t* val;
    struct dhcp_option* next;
    struct dhcp_option* subopts;
};

Detailed Documentation

DHCP option internal representation

Fields

uint8_t type

Option type

uint8_t len

Value of the “Length” field of the option

uint8_t val_len

Number of bytes in ‘val’ array

uint8_t* val

Pointer to the value of the option

struct dhcp_option* next

Next option

struct dhcp_option* subopts

List of sub-options