blob: 2da89e57f3fcc97565d9f10ec5d9c46a028ee261 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
--- netkit-base-0.17/ping/ping.c.O 2002-12-12 16:11:40.000000000 +0100
+++ netkit-base-0.17/ping/ping.c 2002-12-12 16:14:26.000000000 +0100
@@ -639,7 +639,7 @@ check_packet_data(void)
cp = INPACK_PAYLOAD;
dp = OUTPACK_PAYLOAD;
- for (i=0; i<datalen-ICMP_MINLEN; i++) {
+ for (i=sizeof(struct timeval); i<datalen-ICMP_MINLEN; i++) {
if (cp[i] != dp[i]) {
printf("\n");
printf("wrong data byte #%d should be 0x%x "
@@ -648,7 +648,7 @@ check_packet_data(void)
for (i=0; i<datalen-ICMP_MINLEN; i++) {
if ((i % 32) == 8)
printf("\n\t");
- printf("%x ", cp[i]);
+ printf(" %x", cp[i]);
}
return;
}
|