You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

154 lines
5.7 KiB

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