projects
/
reactos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
51cb8f8
)
Convert sequence number to network byte order before sending it on the wire.
author
Andrew Munger
<waxdragon@gmail.com>
Fri, 7 Jul 2006 13:23:10 +0000
(13:23 +0000)
committer
Andrew Munger
<waxdragon@gmail.com>
Fri, 7 Jul 2006 13:23:10 +0000
(13:23 +0000)
svn path=/trunk/; revision=22898
reactos/base/applications/network/ping/ping.c
patch
|
blob
|
history
diff --git
a/reactos/base/applications/network/ping/ping.c
b/reactos/base/applications/network/ping/ping.c
index
6a9b679
..
7581124
100644
(file)
--- a/
reactos/base/applications/network/ping/ping.c
+++ b/
reactos/base/applications/network/ping/ping.c
@@
-489,7
+489,7
@@
static BOOL Ping(VOID)
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 */