]> git.proxmox.com Git - mirror_edk2.git/commitdiff
NetworkPkg: Fix issue in dns driver when building DHCP packet.
authorZhang Lubo <lubo.zhang@intel.com>
Thu, 4 May 2017 09:35:36 +0000 (17:35 +0800)
committerJiaxin Wu <jiaxin.wu@intel.com>
Tue, 9 May 2017 06:31:00 +0000 (14:31 +0800)
Currently, DNS driver configure the dhcp message type to inform
when building dhcp packet to get dns info from, but it not works
with dhcp server deployed on linux system. However it works well
when changed to request type.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Zhang Lubo <lubo.zhang@intel.com>
Cc: Wu Jiaxin <jiaxin.wu@intel.com>
Cc: Ye Ting <ting.ye@intel.com>
Cc: Fu Siyuan <siyuan.fu@intel.com>
Reviewed-by: Wu Jiaxin <jiaxin.wu@intel.com>
NetworkPkg/DnsDxe/DnsDhcp.c

index c4add702ea7ad6cda02e3a9262f93b967bb0ec6d..93779befa77d2c79b5a6ae3be8e6f9353d904ca8 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
 Functions implementation related with DHCPv4/v6 for DNS driver.\r
 \r
-Copyright (c) 2015, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2015 - 2017, Intel Corporation. All rights reserved.<BR>\r
 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
@@ -462,7 +462,7 @@ GetDns4ServerFromDhcp4 (
   \r
   ParaList[0]->OpCode  = DHCP4_TAG_TYPE;\r
   ParaList[0]->Length  = 1;\r
-  ParaList[0]->Data[0] = DHCP4_MSG_INFORM;\r
+  ParaList[0]->Data[0] = DHCP4_MSG_REQUEST;\r
   \r
   ParaList[1] = AllocateZeroPool (sizeof (EFI_DHCP4_PACKET_OPTION));\r
   if (ParaList[1] == NULL) {\r