X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=MdeModulePkg%2FUniversal%2FNetwork%2FIScsiDxe%2FIScsiDhcp.c;h=869a56a4912488d62afebd7331d5466fd089124f;hb=ac6c3d90edebf1499dac8f4d3c99e94d197ad45e;hp=d574ce21dda0206a6f54d0c599d1812bf5ce04f8;hpb=8d648abc3265282bb7351c557110e3bdf3d98669;p=mirror_edk2.git diff --git a/MdeModulePkg/Universal/Network/IScsiDxe/IScsiDhcp.c b/MdeModulePkg/Universal/Network/IScsiDxe/IScsiDhcp.c index d574ce21dd..869a56a491 100644 --- a/MdeModulePkg/Universal/Network/IScsiDxe/IScsiDhcp.c +++ b/MdeModulePkg/Universal/Network/IScsiDxe/IScsiDhcp.c @@ -1,7 +1,7 @@ /** @file iSCSI DHCP related configuration routines. -Copyright (c) 2004 - 2015, Intel Corporation. All rights reserved.
+Copyright (c) 2004 - 2016, Intel Corporation. All rights reserved.
This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at @@ -222,7 +222,7 @@ IScsiDhcpSelectOffer ( } for (Index = 0; Index < OptionCount; Index++) { - if (OptionList[Index]->OpCode != DHCP4_TAG_ROOT_PATH) { + if (OptionList[Index]->OpCode != DHCP4_TAG_ROOTPATH) { continue; } @@ -303,7 +303,7 @@ IScsiParseDhcpAck ( // // Get DNS server addresses and DHCP server address from this offer. // - if (OptionList[Index]->OpCode == DHCP4_TAG_DNS) { + if (OptionList[Index]->OpCode == DHCP4_TAG_DNS_SERVER) { if (((OptionList[Index]->Length & 0x3) != 0) || (OptionList[Index]->Length == 0)) { Status = EFI_INVALID_PARAMETER; @@ -414,8 +414,8 @@ IScsiDoDhcp ( Data = &ParaList->Data[0]; Data[0] = DHCP4_TAG_NETMASK; Data[1] = DHCP4_TAG_ROUTER; - Data[2] = DHCP4_TAG_DNS; - Data[3] = DHCP4_TAG_ROOT_PATH; + Data[2] = DHCP4_TAG_DNS_SERVER; + Data[3] = DHCP4_TAG_ROOTPATH; ZeroMem (&Dhcp4ConfigData, sizeof (EFI_DHCP4_CONFIG_DATA)); Dhcp4ConfigData.OptionCount = 1;