All rights reserved. This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
All rights reserved. This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
This function initialize the DHCP4 message instance.\r
\r
This function will pad each item of dhcp4 message packet.\r
This function initialize the DHCP4 message instance.\r
\r
This function will pad each item of dhcp4 message packet.\r
@param Seed Pointer to the message instance of the DHCP4 packet.\r
@param Udp4 Pointer to the EFI_UDP4_PROTOCOL instance.\r
\r
@param Seed Pointer to the message instance of the DHCP4 packet.\r
@param Udp4 Pointer to the EFI_UDP4_PROTOCOL instance.\r
\r
\r
Options[PXEBC_DHCP4_TAG_INDEX_BOOTFILE] = PxeBcParseExtendOptions (\r
(UINT8 *) Offer->Dhcp4.Header.BootFileName,\r
\r
Options[PXEBC_DHCP4_TAG_INDEX_BOOTFILE] = PxeBcParseExtendOptions (\r
(UINT8 *) Offer->Dhcp4.Header.BootFileName,\r
the index is maximum offer number.\r
\r
@retval TRUE Offer the service successfully under priority BINL.\r
the index is maximum offer number.\r
\r
@retval TRUE Offer the service successfully under priority BINL.\r
Offer dhcp service for each proxy with a BINL dhcp offer.\r
\r
@param Private Pointer to PxeBc private data\r
Offer dhcp service for each proxy with a BINL dhcp offer.\r
\r
@param Private Pointer to PxeBc private data\r
pxe mode data, the index is maximum offer number.\r
\r
@return If there is no service needed offer return FALSE, otherwise TRUE.\r
pxe mode data, the index is maximum offer number.\r
\r
@return If there is no service needed offer return FALSE, otherwise TRUE.\r
- // The selected offer to finish the D.O.R.A. is a DHCP only offer, we need \r
- // try proxy offers if there are some, othewise the bootfile name must be \r
+ // The selected offer to finish the D.O.R.A. is a DHCP only offer, we need\r
+ // try proxy offers if there are some, othewise the bootfile name must be\r
/**\r
Select the specified proxy offer, such as BINL, DHCP_ONLY and so on.\r
If the proxy does not exist, try offers with bootfile.\r
/**\r
Select the specified proxy offer, such as BINL, DHCP_ONLY and so on.\r
If the proxy does not exist, try offers with bootfile.\r
EFI_DHCP4_CALLBACK is provided by the consumer of the EFI DHCPv4 Protocol driver\r
to intercept events that occurred in the configuration process. This structure\r
provides advanced control of each state transition of the DHCP process. The\r
EFI_DHCP4_CALLBACK is provided by the consumer of the EFI DHCPv4 Protocol driver\r
to intercept events that occurred in the configuration process. This structure\r
provides advanced control of each state transition of the DHCP process. The\r
OptList[Index]->OpCode = PXEBC_PXE_DHCP4_TAG_ARCH;\r
OptList[Index]->Length = sizeof (PXEBC_DHCP4_OPTION_ARCH);\r
OptEnt.Arch = (PXEBC_DHCP4_OPTION_ARCH *) OptList[Index]->Data;\r
OptList[Index]->OpCode = PXEBC_PXE_DHCP4_TAG_ARCH;\r
OptList[Index]->Length = sizeof (PXEBC_DHCP4_OPTION_ARCH);\r
OptEnt.Arch = (PXEBC_DHCP4_OPTION_ARCH *) OptList[Index]->Data;\r
CopyMem (&OptEnt.Arch->Type, &Value, sizeof (UINT16));\r
Index++;\r
OptList[Index] = GET_NEXT_DHCP_OPTION (OptList[Index - 1]);\r
CopyMem (&OptEnt.Arch->Type, &Value, sizeof (UINT16));\r
Index++;\r
OptList[Index] = GET_NEXT_DHCP_OPTION (OptList[Index - 1]);\r
OptList[Index]->Length = sizeof (PXEBC_DHCP4_OPTION_CLID);\r
OptEnt.Clid = (PXEBC_DHCP4_OPTION_CLID *) OptList[Index]->Data;\r
CopyMem (OptEnt.Clid, DEFAULT_CLASS_ID_DATA, sizeof (PXEBC_DHCP4_OPTION_CLID));\r
OptList[Index]->Length = sizeof (PXEBC_DHCP4_OPTION_CLID);\r
OptEnt.Clid = (PXEBC_DHCP4_OPTION_CLID *) OptList[Index]->Data;\r
CopyMem (OptEnt.Clid, DEFAULT_CLASS_ID_DATA, sizeof (PXEBC_DHCP4_OPTION_CLID));\r
- CvtNum (SYS_ARCH, OptEnt.Clid->ArchitectureType, sizeof (OptEnt.Clid->ArchitectureType));\r
+ CvtNum (EFI_PXE_CLIENT_SYSTEM_ARCHITECTURE, OptEnt.Clid->ArchitectureType, sizeof (OptEnt.Clid->ArchitectureType));\r
// If NII protocol exists, update DHCP option data\r
//\r
CopyMem (OptEnt.Clid->InterfaceName, Private->Nii->StringId, sizeof (OptEnt.Clid->InterfaceName));\r
// If NII protocol exists, update DHCP option data\r
//\r
CopyMem (OptEnt.Clid->InterfaceName, Private->Nii->StringId, sizeof (OptEnt.Clid->InterfaceName));\r
@param Type PxeBc option boot item type\r
@param Layer PxeBc option boot item layer\r
@param UseBis Use BIS or not\r
@param Type PxeBc option boot item type\r
@param Layer PxeBc option boot item layer\r
@param UseBis Use BIS or not\r
@param SrvList Server list\r
@param IsDiscv Discover the vendor or not\r
@param Reply The dhcp4 packet of Pxe reply\r
@param SrvList Server list\r
@param IsDiscv Discover the vendor or not\r
@param Reply The dhcp4 packet of Pxe reply\r
@retval EFI_SUCCESS Operation succeeds.\r
@retval EFI_OUT_OF_RESOURCES Allocate memory pool failed.\r
@retval EFI_NOT_FOUND There is no vendor option exists.\r
@retval EFI_SUCCESS Operation succeeds.\r
@retval EFI_OUT_OF_RESOURCES Allocate memory pool failed.\r
@retval EFI_NOT_FOUND There is no vendor option exists.\r
Status = Dhcp4->Build (Dhcp4, &Private->SeedPacket, 0, NULL, OptCount, OptList, &Token.Packet);\r
\r
if (IsDiscv) {\r
Status = Dhcp4->Build (Dhcp4, &Private->SeedPacket, 0, NULL, OptCount, OptList, &Token.Packet);\r
\r
if (IsDiscv) {\r
CopyMem (&Token.Packet->Dhcp4.Header.ClientAddr, &Private->StationIp, sizeof (EFI_IPv4_ADDRESS));\r
\r
Token.RemotePort = Sport;\r
CopyMem (&Token.Packet->Dhcp4.Header.ClientAddr, &Private->StationIp, sizeof (EFI_IPv4_ADDRESS));\r
\r
Token.RemotePort = Sport;\r
@retval EFI_NOT_FOUND The proxy offer is not Pxe10.\r
@retval EFI_ABORTED User cancel the operation.\r
@retval EFI_NOT_READY Read the input key from the keybroad has not finish.\r
@retval EFI_NOT_FOUND The proxy offer is not Pxe10.\r
@retval EFI_ABORTED User cancel the operation.\r
@retval EFI_NOT_READY Read the input key from the keybroad has not finish.\r
@param Private Pointer to PxeBc private data.\r
@param Type The type of the menu.\r
@param UseDefaultItem Use default item or not.\r
@param Private Pointer to PxeBc private data.\r
@param Type The type of the menu.\r
@param UseDefaultItem Use default item or not.\r