diff options
author | Jiaxin Wu <jiaxin.wu@intel.com> | 2017-02-23 13:28:57 +0800 |
---|---|---|
committer | Jiaxin Wu <jiaxin.wu@intel.com> | 2017-02-27 14:57:26 +0800 |
commit | 9508a4ac3d756fa6713366afaa3e12063aef5dc9 (patch) | |
tree | 5094d7db510e46aa433862602516ac56bfed7d3a | |
parent | a2f4b153ac5d0039f81bb689ad32cd48ac2aa51d (diff) | |
download | edk2-9508a4ac3d756fa6713366afaa3e12063aef5dc9.tar.gz edk2-9508a4ac3d756fa6713366afaa3e12063aef5dc9.tar.bz2 edk2-9508a4ac3d756fa6713366afaa3e12063aef5dc9.zip |
NetworkPkg/Ip6Dxe: Ignore duplicated DNS address check
Having duplicated DNS server IPs specified is not an ideal
configuration, but not an error condition. This patch is to
remove the duplicated DNS address check to allow the same DNS
address setting in SetData().
Cc: Hegde Nagaraj P <nagaraj-p.hegde@hpe.com>
Cc: Subramanian Sriram <sriram-s@hpe.com>
Cc: Ye Ting <ting.ye@intel.com>
Cc: Fu Siyuan <siyuan.fu@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Wu Jiaxin <jiaxin.wu@intel.com>
Reviewed-by: Subramanian Sriram <sriram-s@hpe.com>
Reviewed-by: Hegde Nagaraj P <nagaraj-p.hegde@hpe.com>
Tested-by: Hegde Nagaraj P <nagaraj-p.hegde@hpe.com>
-rw-r--r-- | NetworkPkg/Ip6Dxe/Ip6ConfigImpl.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/NetworkPkg/Ip6Dxe/Ip6ConfigImpl.c b/NetworkPkg/Ip6Dxe/Ip6ConfigImpl.c index 9287475e08..bde5982b69 100644 --- a/NetworkPkg/Ip6Dxe/Ip6ConfigImpl.c +++ b/NetworkPkg/Ip6Dxe/Ip6ConfigImpl.c @@ -1327,7 +1327,6 @@ Ip6ConfigSetDnsServer ( {
UINTN OldIndex;
UINTN NewIndex;
- UINTN Index1;
EFI_IPv6_ADDRESS *OldDns;
EFI_IPv6_ADDRESS *NewDns;
UINTN OldDnsCount;
@@ -1372,15 +1371,6 @@ Ip6ConfigSetDnsServer ( return EFI_INVALID_PARAMETER;
}
- for (Index1 = NewIndex + 1; Index1 < NewDnsCount; Index1++) {
- if (EFI_IP6_EQUAL (NewDns + NewIndex, NewDns + Index1)) {
- if (Tmp != NULL) {
- FreePool (Tmp);
- }
- return EFI_INVALID_PARAMETER;
- }
- }
-
if (OneAdded) {
//
// If any address in the new setting is not in the old settings, skip the
|