diff options
author | Zhang Lubo <lubo.zhang@intel.com> | 2017-05-04 17:35:36 +0800 |
---|---|---|
committer | Jiaxin Wu <jiaxin.wu@intel.com> | 2017-05-09 14:31:00 +0800 |
commit | b61fda11295b09340c43278fe9425eb71081ac2a (patch) | |
tree | 3dad2e3367e378faf5ca465f106d9a6cf725a0f0 /NetworkPkg | |
parent | ca12a0c83b7b889fc807cb2dd47356f0fd1253d6 (diff) | |
download | edk2-b61fda11295b09340c43278fe9425eb71081ac2a.tar.gz edk2-b61fda11295b09340c43278fe9425eb71081ac2a.tar.bz2 edk2-b61fda11295b09340c43278fe9425eb71081ac2a.zip |
NetworkPkg: Fix issue in dns driver when building DHCP packet.
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>
Diffstat (limited to 'NetworkPkg')
-rw-r--r-- | NetworkPkg/DnsDxe/DnsDhcp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/NetworkPkg/DnsDxe/DnsDhcp.c b/NetworkPkg/DnsDxe/DnsDhcp.c index c4add702ea..93779befa7 100644 --- a/NetworkPkg/DnsDxe/DnsDhcp.c +++ b/NetworkPkg/DnsDxe/DnsDhcp.c @@ -1,7 +1,7 @@ /** @file
Functions implementation related with DHCPv4/v6 for DNS driver.
-Copyright (c) 2015, Intel Corporation. All rights reserved.<BR>
+Copyright (c) 2015 - 2017, Intel Corporation. All rights reserved.<BR>
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
@@ -462,7 +462,7 @@ GetDns4ServerFromDhcp4 ( ParaList[0]->OpCode = DHCP4_TAG_TYPE;
ParaList[0]->Length = 1;
- ParaList[0]->Data[0] = DHCP4_MSG_INFORM;
+ ParaList[0]->Data[0] = DHCP4_MSG_REQUEST;
ParaList[1] = AllocateZeroPool (sizeof (EFI_DHCP4_PACKET_OPTION));
if (ParaList[1] == NULL) {
|