Revision: 18017
          http://sourceforge.net/p/edk2/code/18017
Author:   jiaxinwu
Date:     2015-07-16 02:37:53 +0000 (Thu, 16 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-16 00:56:14 UTC (rev 
18016)
+++ trunk/edk2/NetworkPkg/DnsDxe/DnsProtocol.c  2015-07-16 02:37:53 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;
     }


------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits

Reply via email to