Home | History | Annotate | Download | only in IScsiDxe

Lines Matching refs:OptionList

217   EFI_DHCP4_PACKET_OPTION **OptionList;

231 OptionList = AllocatePool (OptionCount * sizeof (EFI_DHCP4_PACKET_OPTION *));
232 if (OptionList == NULL) {
236 Status = This->Parse (This, Packet, &OptionCount, OptionList);
238 FreePool (OptionList);
243 if (OptionList[Index]->OpCode != DHCP4_TAG_ROOTPATH) {
248 (CHAR8 *) &OptionList[Index]->Data[0],
249 OptionList[Index]->Length,
260 FreePool (OptionList);
287 EFI_DHCP4_PACKET_OPTION **OptionList;
307 OptionList = NULL;
309 Status = Dhcp4->Parse (Dhcp4, Dhcp4ModeData.ReplyPacket, &OptionCount, OptionList);
314 OptionList = AllocatePool (OptionCount * sizeof (EFI_DHCP4_PACKET_OPTION *));
315 if (OptionList == NULL) {
319 Status = Dhcp4->Parse (Dhcp4, Dhcp4ModeData.ReplyPacket, &OptionCount, OptionList);
321 FreePool (OptionList);
329 if (OptionList[Index]->OpCode == DHCP4_TAG_DNS_SERVER) {
331 if (((OptionList[Index]->Length & 0x3) != 0) || (OptionList[Index]->Length == 0)) {
338 CopyMem (&ConfigData->PrimaryDns, &OptionList[Index]->Data[0], sizeof (EFI_IPv4_ADDRESS));
340 if (OptionList[Index]->Length > 4) {
344 CopyMem (&ConfigData->SecondaryDns, &OptionList[Index]->Data[4], sizeof (EFI_IPv4_ADDRESS));
346 } else if (OptionList[Index]->OpCode == DHCP4_TAG_SERVER_ID) {
347 if (OptionList[Index]->Length != 4) {
352 CopyMem (&ConfigData->DhcpServer, &OptionList[Index]->Data[0], sizeof (EFI_IPv4_ADDRESS));
356 FreePool (OptionList);
448 Dhcp4ConfigData.OptionList = &ParaList;