1 #ifndef _IPXE_DHCPOPTS_H 2 #define _IPXE_DHCPOPTS_H int dhcpopt_fetch(struct dhcp_options *options, unsigned int tag, void *data, size_t len)
Fetch value of DHCP option setting.
int(* realloc)(struct dhcp_options *options, size_t len)
Reallocate option block raw data.
void dhcpopt_init(struct dhcp_options *options, void *data, size_t alloc_len, int(*realloc)(struct dhcp_options *options, size_t len))
Initialise prepopulated block of DHCP options.
size_t alloc_len
Option block allocated length.
void dhcpopt_update_used_len(struct dhcp_options *options)
Recalculate length of DHCP options block.
int dhcpopt_store(struct dhcp_options *options, unsigned int tag, const void *data, size_t len)
Store value of DHCP option setting.
int dhcpopt_no_realloc(struct dhcp_options *options, size_t len)
Refuse to reallocate DHCP option block.
int dhcpopt_applies(unsigned int tag)
Check applicability of DHCP option setting.
FILE_LICENCE(GPL2_OR_LATER_OR_UBDL)
void * data
Option block raw data.
uint8_t data[48]
Additional event data.
void * realloc(void *old_ptr, size_t new_size)
Reallocate memory.
uint64_t tag
Identity tag.
size_t used_len
Option block used length.