NetworkPkg/DnsDxe: Update RetryCount/RetryInterval to comply with UEFI spec.
According to UEFI spec: "Retry number if no response received after RetryInterval. If zero, use the parameter configured through Dns.Configure() interface." "Minimum interval of retry is 2 second. If the retry interval is less than 2 second, then use the 2 second. If zero, use the parameter configured through Dns.Configure() interface." For both DNS.HostNameToIp and DNS.GeneralLookUp, the value of RetryCount / RetryInterval need to be updated to comply with UEFI spec. Cc: Ye Ting <ting.ye@intel.com> Cc: Fu Siyuan <siyuan.fu@intel.com> Cc: Wang Fan <fan.wang@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Wu Jiaxin <jiaxin.wu@intel.com> Reviewed-by: Fu Siyuan <siyuan.fu@intel.com>
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
/** @file
|
||||
DnsDxe support functions implementation.
|
||||
|
||||
Copyright (c) 2015 - 2016, 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
|
||||
@@ -86,7 +86,6 @@ extern EFI_DNS6_PROTOCOL mDns6Protocol;
|
||||
#define DNS_STATE_DESTROY 2
|
||||
|
||||
#define DNS_DEFAULT_TIMEOUT 2
|
||||
#define DNS_DEFAULT_RETRY 3
|
||||
|
||||
#define DNS_TIME_TO_GETMAP 5
|
||||
|
||||
@@ -115,6 +114,7 @@ typedef struct {
|
||||
} DNS6_SERVER_IP;
|
||||
|
||||
typedef struct {
|
||||
UINT32 RetryCounting;
|
||||
UINT32 PacketToLive;
|
||||
CHAR16 *QueryHostName;
|
||||
EFI_IPv4_ADDRESS QueryIpAddress;
|
||||
@@ -123,6 +123,7 @@ typedef struct {
|
||||
} DNS4_TOKEN_ENTRY;
|
||||
|
||||
typedef struct {
|
||||
UINT32 RetryCounting;
|
||||
UINT32 PacketToLive;
|
||||
CHAR16 *QueryHostName;
|
||||
EFI_IPv6_ADDRESS QueryIpAddress;
|
||||
|
Reference in New Issue
Block a user