git.ucc.asn.au
/
tpg
/
acess2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
VIAVideo - Does something different now!
[tpg/acess2.git]
/
KernelLand
/
Modules
/
IPStack
/
icmp.c
diff --git
a/KernelLand/Modules/IPStack/icmp.c
b/KernelLand/Modules/IPStack/icmp.c
index
f1355fa
..
80974ef
100644
(file)
--- a/
KernelLand/Modules/IPStack/icmp.c
+++ b/
KernelLand/Modules/IPStack/icmp.c
@@
-121,7
+121,7
@@
int ICMP_Ping(tInterface *Interface, tIPv4 Addr)
gICMP_PingSlots[i].bArrived = 0;
hdr->ID = i;
hdr->Sequence = ~i;
gICMP_PingSlots[i].bArrived = 0;
hdr->ID = i;
hdr->Sequence = ~i;
- hdr->Checksum = htons( IPv4_Checksum((Uint16*)
hdr, sizeof(buf)/2
) );
+ hdr->Checksum = htons( IPv4_Checksum((Uint16*)
buf, sizeof(buf)
) );
ts = now();
ts = now();
@@
-133,7
+133,7
@@
int ICMP_Ping(tInterface *Interface, tIPv4 Addr)
end = ts + Interface->TimeoutDelay;
while( !gICMP_PingSlots[i].bArrived && now() < end) Threads_Yield();
end = ts + Interface->TimeoutDelay;
while( !gICMP_PingSlots[i].bArrived && now() < end) Threads_Yield();
- if(now() > end)
+ if(now() >
=
end)
return -1;
return (int)( now() - ts );
return -1;
return (int)( now() - ts );
UCC
git Repository :: git.ucc.asn.au