EFI cached DHCP packet.
Definition in file efi_cachedhcp.h.
Record cached DHCP packet.
- Parameters
-
| device | Device handle |
| path | Device path |
- Return values
-
Definition at line 47 of file efi_cachedhcp.c.
60 DBGC (
device,
"EFI %s has no PXE base code instance: %s\n",
67 if (
mode->UsingIpv6 ) {
68 DBGC (
device,
"EFI %s has IPv6 PXE base code\n",
74 if (
mode->DhcpAckReceived &&
76 sizeof (
mode->DhcpAck ) ) ) != 0 ) ) {
77 DBGC (
device,
"EFI %s could not record DHCPACK: %s\n",
83 if (
mode->ProxyOfferReceived &&
86 sizeof (
mode->ProxyOffer ) ) ) != 0)){
87 DBGC (
device,
"EFI %s could not record ProxyDHCPOFFER: %s\n",
93 if (
mode->PxeReplyReceived &&
95 sizeof (
mode->PxeReply ) ) ) != 0 )){
96 DBGC (
device,
"EFI %s could not record PXEBSACK: %s\n",
struct arbelprm_rc_send_wqe rc
unsigned int efi_path_vlan(EFI_DEVICE_PATH_PROTOCOL *path)
Get VLAN tag from device path.
struct cached_dhcp_packet cached_proxydhcp
Cached ProxyDHCPOFFER.
uint16_t mode
Acceleration mode.
EFI_GUID efi_pxe_base_code_protocol_guid
PXE base code protocol GUID.
#define ENOTSUP
Operation not supported.
int cachedhcp_record(struct cached_dhcp_packet *cache, unsigned int vlan, const void *data, size_t max_len)
Record cached DHCP packet.
const char * efi_handle_name(EFI_HANDLE handle)
Get name of an EFI handle.
char * strerror(int errno)
Retrieve string representation of error number.
#define efi_open(handle, protocol, interface)
Open protocol for ephemeral use.
struct cached_dhcp_packet cached_dhcpack
Cached DHCPACK.
struct cached_dhcp_packet cached_pxebs
Cached PXEBSACK.
EFI_PXE_BASE_CODE_MODE * Mode
The pointer to the EFI_PXE_BASE_CODE_MODE data for this device.
The EFI_PXE_BASE_CODE_PROTOCOL is used to control PXE-compatible devices.
References cached_dhcpack, cached_proxydhcp, cached_pxebs, cachedhcp_record(), DBGC, efi_handle_name(), efi_open, efi_path_vlan(), efi_pxe_base_code_protocol_guid, ENOTSUP, mode, _EFI_PXE_BASE_CODE_PROTOCOL::Mode, rc, and strerror().
Referenced by efi_init_application().