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 48 of file efi_cachedhcp.c.
49 {
50 unsigned int vlan;
54
55
57
58
60 &pxe ) ) != 0 ) {
61 DBGC (
device,
"EFI %s has no PXE base code instance: %s\n",
64 }
65
66
68 if (
mode->UsingIpv6 ) {
69 DBGC (
device,
"EFI %s has IPv6 PXE base code\n",
72 }
73
74
75 if (
mode->DhcpAckReceived &&
77 sizeof (
mode->DhcpAck ) ) ) != 0 ) ) {
78 DBGC (
device,
"EFI %s could not record DHCPACK: %s\n",
81 }
82
83
84 if (
mode->ProxyOfferReceived &&
87 sizeof (
mode->ProxyOffer ) ) ) != 0)){
88 DBGC (
device,
"EFI %s could not record ProxyDHCPOFFER: %s\n",
91 }
92
93
94 if (
mode->PxeReplyReceived &&
96 sizeof (
mode->PxeReply ) ) ) != 0 )){
97 DBGC (
device,
"EFI %s could not record PXEBSACK: %s\n",
100 }
101
102 return 0;
103}
struct _EFI_PXE_BASE_CODE_PROTOCOL EFI_PXE_BASE_CODE_PROTOCOL
struct arbelprm_rc_send_wqe rc
struct cached_dhcp_packet cached_proxydhcp
Cached ProxyDHCPOFFER.
struct cached_dhcp_packet cached_pxebs
Cached PXEBSACK.
struct cached_dhcp_packet cached_dhcpack
Cached DHCPACK.
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.
EFI_GUID efi_pxe_base_code_protocol_guid
PXE base code protocol GUID.
unsigned int efi_path_vlan(EFI_DEVICE_PATH_PROTOCOL *path)
Get VLAN tag from device path.
uint16_t mode
Acceleration mode.
#define ENOTSUP
Operation not supported.
#define efi_open(handle, protocol, interface)
Open protocol for ephemeral use.
char * strerror(int errno)
Retrieve string representation of error number.
EFI_PXE_BASE_CODE_MODE * Mode
The pointer to the EFI_PXE_BASE_CODE_MODE data for this device.
References cached_dhcpack, cached_proxydhcp, cached_pxebs, cachedhcp_record(), DBGC, EFI_HANDLE, efi_handle_name(), efi_open, efi_path_vlan(), efi_pxe_base_code_protocol_guid, ENOTSUP, _EFI_PXE_BASE_CODE_PROTOCOL::Mode, mode, rc, and strerror().
Referenced by efi_init_application().