Skip to content

Commit

Permalink
NetworkPkg: Fix issue in dns driver when building DHCP packet.
Browse files Browse the repository at this point in the history
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 <[email protected]>
Cc: Wu Jiaxin <[email protected]>
Cc: Ye Ting <[email protected]>
Cc: Fu Siyuan <[email protected]>
Reviewed-by: Wu Jiaxin <[email protected]>
  • Loading branch information
Zhang Lubo authored and jiaxinwu committed May 9, 2017
1 parent ca12a0c commit b61fda1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions NetworkPkg/DnsDxe/DnsDhcp.c
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit b61fda1

Please sign in to comment.