]> git.proxmox.com Git - mirror_edk2.git/blobdiff - ShellPkg/Library/UefiShellNetwork1CommandsLib/Ping.c
ShellPkg: Fix ping IPv6 stack usage mode failure issue
[mirror_edk2.git] / ShellPkg / Library / UefiShellNetwork1CommandsLib / Ping.c
index fda062de1d73c7d11019a239b563349881a442a8..643be2304fee453e548046df1b398efd85e27309 100644 (file)
@@ -599,6 +599,7 @@ PingGenerateToken (
   Request->Type        = (UINT8)(Private->IpChoice==PING_IP_CHOICE_IP6?ICMP_V6_ECHO_REQUEST:ICMP_V4_ECHO_REQUEST);\r
   Request->Code        = 0;\r
   Request->SequenceNum = SequenceNum;\r
+  Request->TimeStamp   = TimeStamp; \r
   Request->Identifier  = 0;\r
   Request->Checksum    = 0;\r
 \r
@@ -627,7 +628,6 @@ PingGenerateToken (
     ((EFI_IP4_TRANSMIT_DATA*)TxData)->DestinationAddress.Addr[3]      = Private->DstAddress[3];\r
 \r
     HeadSum = NetChecksum ((UINT8 *) Request, Private->BufferSize);\r
-    Request->TimeStamp   = TimeStamp;\r
     TempChecksum = NetChecksum ((UINT8 *) &Request->TimeStamp, sizeof (UINT64));\r
     Request->Checksum = (UINT16)(~NetAddChecksum (HeadSum, TempChecksum));\r
   }\r
@@ -804,11 +804,6 @@ Ping6OnTimerRoutine (
       RemoveEntryList (&TxInfo->Link);\r
       PingDestroyTxInfo (TxInfo, Private->IpChoice);\r
 \r
-      //\r
-      // We dont need to wait for this some other time...\r
-      //\r
-      Private->RxCount++;\r
-\r
       if (IsListEmpty (&Private->TxList) && (Private->TxCount == Private->SendNum)) {\r
         //\r
         // All the left icmp6 echo request in the list timeout.\r