Home | History | Annotate | Download | only in IScsiDxe

Lines Matching refs:OptionList

199   EFI_DHCP4_PACKET_OPTION **OptionList;

213 OptionList = AllocatePool (OptionCount * sizeof (EFI_DHCP4_PACKET_OPTION *));
214 if (OptionList == NULL) {
218 Status = This->Parse (This, Packet, &OptionCount, OptionList);
220 FreePool (OptionList);
225 if (OptionList[Index]->OpCode != DHCP4_TAG_ROOTPATH) {
230 (CHAR8 *) &OptionList[Index]->Data[0],
231 OptionList[Index]->Length,
242 FreePool (OptionList);
267 EFI_DHCP4_PACKET_OPTION **OptionList;
284 OptionList = NULL;
286 Status = Dhcp4->Parse (Dhcp4, Dhcp4ModeData.ReplyPacket, &OptionCount, OptionList);
291 OptionList = AllocatePool (OptionCount * sizeof (EFI_DHCP4_PACKET_OPTION *));
292 if (OptionList == NULL) {
296 Status = Dhcp4->Parse (Dhcp4, Dhcp4ModeData.ReplyPacket, &OptionCount, OptionList);
298 FreePool (OptionList);
306 if (OptionList[Index]->OpCode == DHCP4_TAG_DNS_SERVER) {
308 if (((OptionList[Index]->Length & 0x3) != 0) || (OptionList[Index]->Length == 0)) {
315 CopyMem (&ConfigData->PrimaryDns, &OptionList[Index]->Data[0], sizeof (EFI_IPv4_ADDRESS));
317 if (OptionList[Index]->Length > 4) {
321 CopyMem (&ConfigData->SecondaryDns, &OptionList[Index]->Data[4], sizeof (EFI_IPv4_ADDRESS));
323 } else if (OptionList[Index]->OpCode == DHCP4_TAG_SERVER_ID) {
324 if (OptionList[Index]->Length != 4) {
329 CopyMem (&ConfigData->DhcpServer, &OptionList[Index]->Data[0], sizeof (EFI_IPv4_ADDRESS));
333 FreePool (OptionList);
422 Dhcp4ConfigData.OptionList = &ParaList;