1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
|
Fixes spelling errors in binary
--- a/parseoptions.c
+++ b/parseoptions.c
@@ -174,7 +174,7 @@
str[j++] = '/';
break;
}
- fprintf(stderr, "invalid IP adress in route\n");
+ fprintf(stderr, "invalid IP address in route\n");
fail_parse_route();
case ':':
if ((!i) && j && j < 4)
--- a/getifname.c
+++ b/getifname.c
@@ -206,7 +206,7 @@
printf("DEBUG: Output interface address: %s\n",
inet_ntoa(output_if_addr.sin_addr));
/* Put something in saved_ifname in order to tell
- that the output adress is known */
+ that the output address is known */
saved_ifname[0] = 'X'; saved_ifname[1] = 0;
} else {
fprintf(stderr, "Warning: Unable to guess the output "
--- a/usage.c
+++ b/usage.c
@@ -50,7 +50,7 @@
" -r --rel relativize id field (to estimate host traffic)\n"
" -f --frag split packets in more frag. (may pass weak acl)\n"
" -x --morefrag set more fragments flag\n"
-" -y --dontfrag set dont fragment flag\n"
+" -y --dontfrag set don't fragment flag\n"
" -g --fragoff set the fragment offset\n"
" -m --mtu set virtual mtu, implies --frag if packet size > mtu\n"
" -o --tos type of service (default 0x00), try --tos help\n"
@@ -126,8 +126,8 @@
"ICMP help:\n"
" ICMP concerned packet options:\n"
" --icmp-ipver set ip version ( default 4 )\n"
-" --icmp-iphlen set ip header lenght ( default IPHDR_SIZE >> 2)\n"
-" --icmp-iplen set ip total lengtht ( default real lenght )\n"
+" --icmp-iphlen set ip header length ( default IPHDR_SIZE >> 2)\n"
+" --icmp-iplen set ip total length ( default real length )\n"
" --icmp-ipid set ip id ( default random )\n"
" --icmp-ipproto set ip protocol ( default IPPROTO_TCP )\n"
" --icmp-ipsrc set ip source ( default 0.0.0.0 )\n"
--- a/sendtcp.c
+++ b/sendtcp.c
@@ -50,7 +50,7 @@
memcpy(&pseudoheader->saddr, &local.sin_addr.s_addr, 4);
memcpy(&pseudoheader->daddr, &remote.sin_addr.s_addr, 4);
pseudoheader->protocol = 6; /* tcp */
- pseudoheader->lenght = htons(TCPHDR_SIZE+tcp_opt_size+data_size);
+ pseudoheader->length = htons(TCPHDR_SIZE+tcp_opt_size+data_size);
/* tcp header */
tcp->th_dport = htons(dst_port);
--- a/sendudp.c
+++ b/sendudp.c
@@ -46,7 +46,7 @@
memcpy(&pseudoheader->saddr, &local.sin_addr.s_addr, 4);
memcpy(&pseudoheader->daddr, &remote.sin_addr.s_addr, 4);
pseudoheader->protocol = 17; /* udp */
- pseudoheader->lenght = htons(packet_size);
+ pseudoheader->length = htons(packet_size);
/* udp header */
udp->uh_dport = htons(dst_port);
--- a/sendicmp.c
+++ b/sendicmp.c
@@ -243,7 +243,7 @@
memcpy(&pseudoheader->saddr, &icmp_ip_src.sin_addr.s_addr, 4);
memcpy(&pseudoheader->daddr, &icmp_ip_dst.sin_addr.s_addr, 4);
pseudoheader->protocol = icmp_ip.protocol;
- pseudoheader->lenght = icmp_ip.tot_len;
+ pseudoheader->length = icmp_ip.tot_len;
icmp_udp->uh_sport = htons(icmp_ip_srcport);
icmp_udp->uh_dport = htons(icmp_ip_dstport);
icmp_udp->uh_ulen = htons(UDPHDR_SIZE + udp_data_len);
--- a/hping2.h
+++ b/hping2.h
@@ -134,7 +134,7 @@
/* fragmentation defines */
#define MF ((unsigned short)0x2000) /* more fragments */
-#define DF ((unsigned short)0x4000) /* dont fragment */
+#define DF ((unsigned short)0x4000) /* don't fragment */
#define NF ((unsigned short)0x0000) /* no more fragments */
/* ip options defines */
@@ -337,7 +337,7 @@
__u32 daddr;
__u8 zero;
__u8 protocol;
- __u16 lenght;
+ __u16 length;
};
#define PSEUDOHDR_SIZE sizeof(struct pseudohdr)
--- a/ars.c
+++ b/ars.c
@@ -698,7 +698,7 @@
memcpy(&pseudo.daddr, &ip->daddr, 4);
pseudo.protocol = (pkt->p_layer[layer].l_type == ARS_TYPE_TCP)
? ARS_IPPROTO_TCP : ARS_IPPROTO_UDP;
- pseudo.lenght = htons(ars_relative_size(pkt, layer));
+ pseudo.length = htons(ars_relative_size(pkt, layer));
/* Finally do the checksum */
ars_multi_cksum(&mc, ARS_MC_INIT, NULL, 0);
--- a/datahandler.c
+++ b/datahandler.c
@@ -26,7 +26,7 @@
}
if (opt_sign) {
- memcpy(data, sign, signlen); /* lenght pre-checked */
+ memcpy(data, sign, signlen); /* length pre-checked */
data+=signlen;
data_size-=signlen;
}
--- a/ars.h
+++ b/ars.h
@@ -67,7 +67,7 @@
#define ARS_MAX_IP_SIZE 65535
#define ARS_IP_MF ((unsigned short)0x2000) /* more fragments */
-#define ARS_IP_DF ((unsigned short)0x4000) /* dont fragment */
+#define ARS_IP_DF ((unsigned short)0x4000) /* don't fragment */
#define ARS_IP_RF ((unsigned short)0x8000) /* reserved fragment flag */
#define ARS_IPOPT_COPY 0x80
@@ -308,7 +308,7 @@
__u32 daddr;
__u8 zero;
__u8 protocol;
- __u16 lenght;
+ __u16 length;
};
/* The IGRP header structure */
--- a/sendip_handler.c
+++ b/sendip_handler.c
@@ -35,7 +35,7 @@
unsigned short fragment_flag = 0;
if (opt_mf) fragment_flag |= MF; /* more fragments */
- if (opt_df) fragment_flag |= DF; /* dont fragment */
+ if (opt_df) fragment_flag |= DF; /* don't fragment */
send_ip((char*)&local.sin_addr,
(char*)&remote.sin_addr,
packet, size, fragment_flag, ip_frag_offset,
|