Author: amunger
Date: Fri Jul 7 17:23:10 2006
New Revision: 22898
URL:
http://svn.reactos.org/svn/reactos?rev=22898&view=rev
Log:
Convert sequence number to network byte order before sending it on the wire.
Modified:
trunk/reactos/base/applications/network/ping/ping.c
Modified: trunk/reactos/base/applications/network/ping/ping.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/network/…
==============================================================================
--- trunk/reactos/base/applications/network/ping/ping.c (original)
+++ trunk/reactos/base/applications/network/ping/ping.c Fri Jul 7 17:23:10 2006
@@ -489,7 +489,7 @@
Packet->Icmp.Type = ICMPMSG_ECHOREQUEST;
Packet->Icmp.Code = 0;
Packet->Icmp.Id = (USHORT)GetCurrentProcessId();
- Packet->Icmp.SeqNum = (USHORT)CurrentSeqNum;
+ Packet->Icmp.SeqNum = htons((USHORT)CurrentSeqNum);
Packet->Icmp.Checksum = 0;
/* Timestamp is part of data area */