1#ifndef _IPXE_DHCPOPTS_H
2#define _IPXE_DHCPOPTS_H
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.
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.
int dhcpopt_fetch(struct dhcp_options *options, unsigned int tag, void *data, size_t len)
Fetch value of DHCP option setting.
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.
uint64_t tag
Identity tag.
uint8_t data[48]
Additional event data.
#define FILE_LICENCE(_licence)
Declare a particular licence as applying to a file.
#define FILE_SECBOOT(_status)
Declare a file's UEFI Secure Boot permission status.
void * realloc(void *old_ptr, size_t new_size)
Reallocate memory.
void * data
Option block raw data.
int(* realloc)(struct dhcp_options *options, size_t len)
Reallocate option block raw data.
size_t used_len
Option block used length.
size_t alloc_len
Option block allocated length.