]> git.proxmox.com Git - mirror_edk2.git/commitdiff
1. Fix a bug : netboot6 client hangs if DHCPv6 Advertisement received without netboot...
authorhhuan13 <hhuan13@6f19259b-4bc3-4df7-8a09-765794883524>
Mon, 18 Jul 2011 08:28:30 +0000 (08:28 +0000)
committerhhuan13 <hhuan13@6f19259b-4bc3-4df7-8a09-765794883524>
Mon, 18 Jul 2011 08:28:30 +0000 (08:28 +0000)
Signed-off-by: hhuan13
Reviewed-by: tye1
Reviewed-by: qianouyang
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12022 6f19259b-4bc3-4df7-8a09-765794883524

NetworkPkg/Dhcp6Dxe/Dhcp6Io.c

index 761f9c2d360a8bd62a855f852675edefa95f1023..cca1468683782a58f1c43c55c16ee1dcda551f53 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   Dhcp6 internal functions implementation.\r
 \r
-  Copyright (c) 2009 - 2010, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2009 - 2011, Intel Corporation. All rights reserved.<BR>\r
 \r
   This program and the accompanying materials\r
   are licensed and made available under the terms and conditions of the BSD License\r
@@ -2797,6 +2797,7 @@ Dhcp6OnTimerTick (
   DHCP6_TX_CB               *TxCb;\r
   DHCP6_IA_CB               *IaCb;\r
   UINT32                    LossTime;\r
+  EFI_STATUS                Status;\r
 \r
   ASSERT (Context != NULL);\r
 \r
@@ -2827,7 +2828,10 @@ Dhcp6OnTimerTick (
           //\r
           // Select the advertisement received before.\r
           //\r
-          Dhcp6SelectAdvertiseMsg (Instance, Instance->AdSelect);\r
+          Status = Dhcp6SelectAdvertiseMsg (Instance, Instance->AdSelect);\r
+          if (EFI_ERROR (Status)) {\r
+            TxCb->RetryCnt++;\r
+          }\r
           return;\r
         }\r
       }\r