1 #ifndef _IPXE_DHCPPKT_H 2 #define _IPXE_DHCPPKT_H
Dynamic Host Configuration Protocol.
struct refcnt refcnt
Reference counter.
#define offsetof(type, field)
Get offset of a field within a structure.
int dhcppkt_store(struct dhcp_packet *dhcppkt, unsigned int tag, const void *data, size_t len)
Store value of DHCP packet setting.
FILE_LICENCE(GPL2_OR_LATER_OR_UBDL)
struct dhcp_options options
DHCP options.
void dhcppkt_init(struct dhcp_packet *dhcppkt, struct dhcphdr *data, size_t len)
Initialise DHCP packet.
#define ref_get(refcnt)
Get additional reference to object.
int dhcppkt_fetch(struct dhcp_packet *dhcppkt, unsigned int tag, void *data, size_t len)
Fetch value of DHCP packet setting.
struct dhcphdr * dhcphdr
The DHCP packet contents.
static void dhcppkt_put(struct dhcp_packet *dhcppkt)
Decrement reference count on DHCP packet.
static size_t dhcppkt_len(struct dhcp_packet *dhcppkt)
Get used length of DHCP packet.
uint8_t data[48]
Additional event data.
static struct dhcp_packet * dhcppkt_get(struct dhcp_packet *dhcppkt)
Increment reference count on DHCP packet.
uint64_t tag
Identity tag.
size_t used_len
Option block used length.
#define ref_put(refcnt)
Drop reference to object.