diff options
Diffstat (limited to 'network/hping3/patches/spelling_error_in_binary.diff')
-rw-r--r-- | network/hping3/patches/spelling_error_in_binary.diff | 153 |
1 files changed, 153 insertions, 0 deletions
diff --git a/network/hping3/patches/spelling_error_in_binary.diff b/network/hping3/patches/spelling_error_in_binary.diff new file mode 100644 index 0000000000..a7ac1f12d3 --- /dev/null +++ b/network/hping3/patches/spelling_error_in_binary.diff @@ -0,0 +1,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, |