Revision: 18017
          http://sourceforge.net/p/edk2/code/18017
Author:   jljusten
Date:     2015-07-26 07:37:02 +0000 (Sun, 26 Jul 2015)
Log Message:
-----------
NetworkPkg: Add the unspecified address check for DNS6 StationIp.

Add the unspecified address check for DNS6 StationIp,
so the underlying driver will choose the source address.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jiaxin Wu <[email protected]>
Reviewed-by: Ye Ting <[email protected]>

Modified Paths:
--------------
    trunk/edk2/NetworkPkg/DnsDxe/DnsProtocol.c

Modified: trunk/edk2/NetworkPkg/DnsDxe/DnsProtocol.c
===================================================================
--- trunk/edk2/NetworkPkg/DnsDxe/DnsProtocol.c  2015-07-26 07:36:57 UTC (rev 
18016)
+++ trunk/edk2/NetworkPkg/DnsDxe/DnsProtocol.c  2015-07-26 07:37:02 UTC (rev 
18017)
@@ -874,7 +874,7 @@
     //
     // Configure the parameters for new operation.
     //
-    if (!NetIp6IsValidUnicast (&DnsConfigData->StationIp)) {
+    if (!NetIp6IsUnspecifiedAddr (&DnsConfigData->StationIp) && 
!NetIp6IsValidUnicast (&DnsConfigData->StationIp)) {
       Status = EFI_INVALID_PARAMETER;
       goto ON_EXIT;
     }


------------------------------------------------------------------------------
_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits

Reply via email to