Commit 843aaa9d authored by Guillaume Delacour's avatar Guillaume Delacour Committed by Devon Kearns

Imported Debian patch 3.a2.ds2-6

parent cd4a3432
This package uses quilt to manage all modifications to the upstream
source. Changes are stored in the source package as diffs in
debian/patches and applied during the build.
To get the fully patched source after unpacking the source package, cd to
the root level of the source package and run:
quilt push -a
The last patch listed in debian/patches/series will become the current
patch.
To add a new set of changes, first run quilt push -a, and then run:
quilt new <patch>
where <patch> is a descriptive name for the patch, used as the filename in
debian/patches. Then, for every file that will be modified by this patch,
run:
quilt add <file>
before editing those files. You must tell quilt with quilt add what files
will be part of the patch before making changes or quilt will not work
properly. After editing the files, run:
quilt refresh
to save the results as a patch.
Alternately, if you already have an external patch and you just want to
add it to the build system, run quilt push -a and then:
quilt import -P <patch> /path/to/patch
quilt push -a
(add -p 0 to quilt import if needed). <patch> as above is the filename to
use in debian/patches. The last quilt push -a will apply the patch to
make sure it works properly.
To remove an existing patch from the list of patches that will be applied,
run:
quilt delete <patch>
You may need to run quilt pop -a to unapply patches first before running
this command.
hping3 (3.a2.ds2-6) unstable; urgency=low
* debian/patches/140_data_size_udp.diff: Fix incorrect data size
check for UDP (Closes: #546590), thanks to Luca Bigliardi.
* debian/patches/150_gnu_kfreebsd.diff: Fix FTBFS for kfreebsd-{i386,amd64}.
* debian/patches/160_tcp_mss.diff: Add support to TCP MSS from NetBSD:
patch-aa, patch-ai, patch-aj, patch-ak, patch-al, patch-am, patch-an
(Closes: #409391).
-- Guillaume Delacour <gui@iroqwa.org> Sat, 19 Sep 2009 12:35:34 +0000
hping3 (3.a2.ds2-5) unstable; urgency=low
* debian/patches/080_ip_id_field.diff: Add description to header.
* debian/patches/090_fr_manpage.diff:
+ use hping2 fr manpage for hping3 (already included in source).
* debian/patches/100_hyphen_used_as_minus_sign.diff
+ Add "\" to "-" in english and fr manpage (as suggested by lintian).
* debian/patches/110_dontfrag_offbyone.diff:
Don't clear packet size if final size equivalent to MTU
(Closes: #537704), thanks to Christian Mock.
* debian/patches/120_rtt_icmp_unreachable.diff:
Add RTT handling for ICMP destination unreachable packets
(Closes: #248273), thanks to Baruch Even.
* debian/patches
* debian/watch:
+ Add empty but documented file (to explain why).
* Bump to debhelper compatibility 7.
* Bump Standards-Version to 3.8.3, no changes needed.
* debian/control: change the git repo location.
* debian/compat: Bump to 7 (replace dh_clean -k by dh_prep in install rule)
* debian/copyright: Adjust licences on BSD style sources.
-- Guillaume Delacour <gui@iroqwa.org> Fri, 04 Sep 2009 23:48:19 +0000
hping3 (3.a2.ds2-4) unstable; urgency=low
* New maintainer (Closes: #522830)
* debian/control:
+ Bump Standards-Version to 3.8.1, no changes needed.
* debian/copyright:
+ /usr/share/common-licenses -> /usr/share/common-licenses/GPL-2
+ Change download url (previous http://wiki.hping.org/101 returns 404)
* debian/patches/80_ip_id_field.diff:
+ Include patch to fix "-N" command line argument (Closes: #482844).
-- Guillaume Delacour <gui@iroqwa.org> Wed, 13 May 2009 16:39:41 +0000
hping3 (3.a2.ds2-3) unstable; urgency=low
* debian/control: Set maintainer to Debian QA group.
-- Romain Francoise <rfrancoise@debian.org> Mon, 06 Apr 2009 21:53:32 +0200
hping3 (3.a2.ds2-2) unstable; urgency=low
* debian/control:
+ Use "Tcl", not "TCL" in long description.
+ Bump Standards-Version to 3.7.3, no changes needed.
* debian/patches/70_tcl.diff: New patch, change libtcl detection logic
to use the same version as the default tclsh instead of looking for
the newest installed library.
* debian/patches/series: Update.
-- Romain Francoise <rfrancoise@debian.org> Sat, 08 Mar 2008 19:44:14 +0100
hping3 (3.a2.ds2-1) unstable; urgency=low
* debian/control: Add Vcs-Git and Vcs-Browser fields.
-- Romain Francoise <rfrancoise@debian.org> Mon, 08 Oct 2007 22:38:26 +0200
hping3 (3.a2.ds1-5) unstable; urgency=low
* debian/control: Move upstream URL to the Homepage field.
-- Romain Francoise <rfrancoise@debian.org> Fri, 28 Sep 2007 21:25:40 +0200
hping3 (3.a2.ds1-4) unstable; urgency=low
* Convert to quilt for patch management:
+ debian/control: Build-Depend on quilt (>= 0.40) instead of dpatch.
+ debian/rules: Include /usr/share/quilt/quilt.make.
+ Convert all dpatch patches to regular patches.
* debian/control: Bump Standards-Version to 3.7.2, no changes needed.
* debian/rules: Don't ignore errors from make distclean.
-- Romain Francoise <rfrancoise@debian.org> Thu, 30 Aug 2007 22:12:04 +0200
hping3 (3.a2.ds1-3) unstable; urgency=low
* debian/control:
+ Add extra space before the Homepage pseudo-header (closes: #365483).
+ Bump Standards-Version to 3.7.0, no changes needed.
-- Romain Francoise <rfrancoise@debian.org> Mon, 1 May 2006 19:52:39 +0200
hping3 (3.a2.ds1-2) unstable; urgency=low
* debian/copyright: Update FSF's address.
* debian/compat: Switch to compatibility level 5.
* debian/control:
+ Bump Standards-Version to 3.6.2.1, no changes needed.
+ Build-Depend on debhelper (>= 5.0.0).
-- Romain Francoise <rfrancoise@debian.org> Sun, 18 Dec 2005 15:14:11 +0100
hping3 (3.a2.ds1-1) unstable; urgency=low
* New maintainer.
* Repackaged as 3.a2.ds1 to remove non-free RFC texts.
* debian/control:
+ Build-Depend on libpcap0.8-dev, dpatch (>= 2.0.9).
+ Change priority to extra.
+ Slightly reword long description.
+ Update maintainer contact info.
* debian/copyright: Update maintainer contact info.
* debian/rules:
+ Fix dpatch integration.
+ Ship hping3 TCL scripts as examples (and forcibly leave them
uncompressed).
+ Various cleanups.
* debian/patches/10_install.dpatch: New patch based on previous
"Makefilein.dpatch".
* debian/patches/20_libpcap0.8.dpatch: New patch for libpcap0.8
compilation.
* debian/patches/30_bytesex.dpatch: New patch stolen from my hping2
package to make bytesex.h use endian.h instead of hardcoding byte
orders; many thanks to Peter De Schrijver who provided a similar patch
(closes: #283038).
* debian/patches/40_spelling.dpatch: New patch stolen from my hping2
package to fix various spelling errors in hping.
* debian/patches/50_personality.dpatch: New patch, change all
occurrences of "hping2" to "hping3" in help messages and in the man
page. Also say "hping3" instead of "hping" since the latter is really
hping2 in Debian.
* debian/patches/60_version.dpatch: New patch, this is really version
alpha-2 so fix release.h accordingly.
* debian/patches/00list: New file.
-- Romain Francoise <rfrancoise@debian.org> Sat, 12 Mar 2005 14:15:32 +0100
hping3 (3.a2-1) unstable; urgency=low
* Initial Release. (Closes: #267153)
-- Vincent Tantardini <vince@kerneled.org> Sun, 10 Oct 2004 20:24:03 +0200
Source: hping3
Section: net
Priority: extra
Maintainer: Guillaume Delacour <gui@iroqwa.org>
Build-Depends: debhelper (>= 7), libpcap0.8-dev, tcl8.4-dev, quilt (>= 0.40)
Standards-Version: 3.8.3
Homepage: http://www.hping.org/
Vcs-Browser: http://git.debian.org/?p=collab-maint/hping3.git
Vcs-Git: git://git.debian.org/collab-maint/hping3.git
Package: hping3
Architecture: any
Depends: ${shlibs:Depends}
Description: Active Network Smashing Tool
hping3 is a network tool able to send custom ICMP/UDP/TCP packets and
to display target replies like ping does with ICMP replies. It handles
fragmentation and arbitrary packet body and size, and can be used to
transfer files under supported protocols. Using hping3, you can test
firewall rules, perform (spoofed) port scanning, test network
performance using different protocols, do path MTU discovery, perform
traceroute-like actions under different protocols, fingerprint remote
operating systems, audit TCP/IP stacks, etc. hping3 is scriptable
using the Tcl language.
This package was debianized by Vincent Tantardini <vince@kerneled.net> on
Sun, 10 Oct 2004 20:24:03 +0200.
Previously maintained by Romain Francoise <rfrancoise@debian.org> (until 2009)
and now by Guillaume Delacour <gui@iroqwa.org>
It was downloaded from http://www.hping.org/download.php
Copyright:
hping3 is Copyright (C) 1998, 2004 by Salvatore Sanfilippo.
Upstream Author:
Salvatore Sanfilippo <antirez@invece.org>
License:
GPL-2
However, some files are licenced under other licences:
display_ipopt.c : from ping, BSD style license (4-clause BSD)
libpcap library : BSD style license (3-clause BSD)
On Debian systems, the complete text of the Modified BSD Licence
can be found in `/usr/share/common-licenses/BSD'.
This package is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; version 2 dated June, 1991.
This package is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
On Debian systems, the complete text of the GNU General
Public License can be found in `/usr/share/common-licenses/GPL-2'.
BUGS
NEWS
README
TODO
docs/APD.txt
docs/API.txt
docs/AS-BACKDOOR
docs/HPING3.txt
docs/MORE-FUN-WITH-IPID
docs/SPOOFED_SCAN.txt
lib/apd.htcl
lib/apd2.htcl
lib/ciscoios.htcl
lib/ciscoios0.htcl
lib/cloner.htcl
lib/hpingstdlib.htcl
lib/igrp.htcl
lib/nat-noise.htcl
lib/passivets.htcl
lib/ping.htcl
lib/raw.htcl
lib/show-tcpseq.htcl
lib/showled.htcl
Adjust upstream Makefile.in for Debian compilation.
--- hping3-3.a2.ds1.orig/Makefile.in
+++ hping3-3.a2.ds1/Makefile.in
@@ -50,14 +50,14 @@
$(RANLIB) $@
hping3: byteorder.h $(OBJ)
- $(CC) -o hping3 $(CCOPT) $(DEBUG) $(OBJ) -L/usr/local/lib $(PCAP) @SOLARISLIB@ @TCL_LIB@
+ $(CC) -o hping3 $(CCOPT) $(DEBUG) $(OBJ) -L$(prefix)/lib $(PCAP) @SOLARISLIB@ @TCL_LIB@
@echo
./hping3 -v
@echo "use \`make strip' to strip hping3 binary"
@echo "use \`make install' to install hping3"
hping3-static: byteorder.h $(OBJ)
- $(CC) -static -o hping3-static $(CCOPT) $(DEBUG) $(OBJ) -L/usr/local/lib $(PCAP) @SOLARISLIB@ @TCL_LIB@ -ldl
+ $(CC) -static -o hping3-static $(CCOPT) $(DEBUG) $(OBJ) -L$(prefix)/lib $(PCAP) @SOLARISLIB@ @TCL_LIB@ -ldl
byteorder.h:
./configure
@@ -72,17 +72,7 @@
rm -rf hping3 *.o byteorder byteorder.h systype.h Makefile libars.a .depend
install: hping3
- cp -f hping3 /usr/sbin/
- chmod 755 /usr/sbin/hping3
- ln -s /usr/sbin/hping3 /usr/sbin/hping
- ln -s /usr/sbin/hping3 /usr/sbin/hping2
- @if [ -d ${INSTALL_MANPATH}/man8 ]; then \
- cp ./docs/hping3.8 ${INSTALL_MANPATH}/man8; \
- chmod 644 ${INSTALL_MANPATH}/man8/hping3.8; \
- else \
- echo "@@@@@@ WARNING @@@@@@"; \
- echo "Can't install the man page: ${INSTALL_MANPATH}/man8 does not exist"; \
- fi
+ install -m 0755 hping3 $(DESTDIR)/usr/sbin/
strip: hping3
@ls -l ./hping3
Various fixes for libpcap0.8 compilation.
--- hping3-3.a2.ds1.orig/libpcap_stuff.c
+++ hping3-3.a2.ds1/libpcap_stuff.c
@@ -17,7 +17,6 @@
#include <stdlib.h>
#include <sys/ioctl.h>
#include <pcap.h>
-#include <net/bpf.h>
#include "globals.h"
--- hping3-3.a2.ds1.orig/script.c
+++ hping3-3.a2.ds1/script.c
@@ -24,7 +24,6 @@
#include <sys/ioctl.h>
#include <pcap.h>
-#include <net/bpf.h>
#include "release.h"
#include "hping2.h"
Endianness fixes.
--- hping3-3.a2.ds1.orig/bytesex.h
+++ hping3-3.a2.ds1/bytesex.h
@@ -7,16 +7,11 @@
#ifndef ARS_BYTESEX_H
#define ARS_BYTESEX_H
-#if defined(__i386__) \
- || defined(__alpha__) \
- || (defined(__mips__) && (defined(MIPSEL) || defined (__MIPSEL__)))
+#include <endian.h>
+
+#if __BYTE_ORDER == __LITTLE_ENDIAN
#define BYTE_ORDER_LITTLE_ENDIAN
-#elif defined(__mc68000__) \
- || defined (__sparc__) \
- || defined (__sparc) \
- || defined (__PPC__) \
- || defined (__BIG_ENDIAN__) \
- || (defined(__mips__) && (defined(MIPSEB) || defined (__MIPSEB__)))
+#elif __BYTE_ORDER == __BIG_ENDIAN
#define BYTE_ORDER_BIG_ENDIAN
#else
# error can not find the byte order for this architecture, fix bytesex.h
Various spelling fixes.
--- hping3-3.a2.ds1.orig/antigetopt.c
+++ hping3-3.a2.ds1/antigetopt.c
@@ -142,7 +142,7 @@
#define UNK_LONG_ERRSTRING "unrecognized option `--%s'\n"
#define ARG_SHORT_ERRSTRING "option requires an argument -- %c\n"
#define ARG_LONG_ERRSTRING "option `--%s' requires an argument\n"
-#define AMB_ERRSTRING "option `--%s' is ambiguos\n"
+#define AMB_ERRSTRING "option `--%s' is ambiguous\n"
#define IERR_ERRSTRING "internal error. ago_gnu_error() called with " \
"a bad error code (%d)\n"
void ago_gnu_error(char *pname, int error)
--- hping3-3.a2.ds1.orig/statistics.c
+++ hping3-3.a2.ds1/statistics.c
@@ -30,7 +30,7 @@
lossrate = 100;
fprintf(stderr, "\n--- %s hping statistic ---\n", targetname);
- fprintf(stderr, "%d packets tramitted, %d packets received, "
+ fprintf(stderr, "%d packets transmitted, %d packets received, "
"%d%% packet loss\n", sent_pkt, recv_pkt, lossrate);
if (out_of_sequence_pkt)
fprintf(stderr, "%d out of sequence packets received\n",
This diff is collapsed.
Fix hping version.
--- hping3-3.a2.ds1.orig/release.h
+++ hping3-3.a2.ds1/release.h
@@ -11,7 +11,7 @@
#ifndef _RELEASE_H
#define _RELEASE_H
-#define RELEASE_VERSION "3.0.0-alpha-1"
+#define RELEASE_VERSION "3.0.0-alpha-2"
#define RELEASE_DATE "$Id: release.h,v 1.4 2004/04/09 23:38:56 antirez Exp $"
#define CONTACTS "<antirez@invece.org>"
Harcode libtcl version to be that of the default tclsh.
--- a/configure
+++ b/configure
@@ -98,7 +98,7 @@
fi
if [ -n $USE_TCL ]
then
- LIBPOSTFIX=`ls -1 /usr/local/lib/ /usr/lib | grep 'libtcl[0-9]' | grep so | sed -e 's/\.so.*//g' -e 's/libtcl//g' | sort -r | head -1`
+ LIBPOSTFIX=`echo puts \\$tcl_version | $TCLSH -`
TCL_LIB="-ltcl${LIBPOSTFIX} -lm -lpthread"
fi
Fix "-N" command line argument
--- a/docs/hping2.8
+++ b/docs/hping2.8
@@ -343,7 +343,7 @@
.I -N --id
Set ip->id field. Default id is random but if fragmentation is turned on
and id isn't specified it will be
-.BR "getpid() & 0xFF" ,
+.BR "getpid() & 0xFFFF" ,
to implement a better solution is in TODO list.
.TP
.I -H --ipproto
@@ -714,4 +714,4 @@
a solaris problem, as stated in the tcpdump-workers mailing list,
so the libpcap can't do nothing to handle it properly.
.SH SEE ALSO
-ping(8), traceroute(8), ifconfig(8), nmap(1)
\ No newline at end of file
+ping(8), traceroute(8), ifconfig(8), nmap(1)
--- a/docs/hping3.8
+++ b/docs/hping3.8
@@ -352,7 +352,7 @@
.I -N --id
Set ip->id field. Default id is random but if fragmentation is turned on
and id isn't specified it will be
-.BR "getpid() & 0xFF" ,
+.BR "getpid() & 0xFFFF" ,
to implement a better solution is in TODO list.
.TP
.I -H --ipproto
--- a/hping2.h
+++ b/hping2.h
@@ -121,7 +121,7 @@
#define DEFAULT_ICMP_IP_IHL (IPHDR_SIZE >> 2)
#define DEFAULT_ICMP_IP_TOS 0
#define DEFAULT_ICMP_IP_TOT_LEN 0 /* computed by send_icmp_*() */
-#define DEFAULT_ICMP_IP_ID 0 /* rand */
+#define DEFAULT_ICMP_IP_ID -1 /* rand */
#define DEFAULT_ICMP_CKSUM -1 /* -1 means compute the cksum */
#define DEFAULT_ICMP_IP_PROTOCOL 6 /* TCP */
#define DEFAULT_RAW_IP_PROTOCOL 6 /* TCP */
--- a/parseoptions.c
+++ b/parseoptions.c
@@ -463,6 +463,10 @@
break;
case OPT_ICMP_IPID:
icmp_ip_id = strtol(ago_optarg, NULL, 0);
+ if (icmp_ip_id < 0 || icmp_ip_id > 0xffff) {
+ fprintf(stderr, "Bad ICMP IP ID, resetting to random.\n");
+ icmp_ip_id = DEFAULT_ICMP_IP_ID;
+ }
break;
case OPT_ICMP_IPPROTO:
icmp_ip_protocol = strtol(ago_optarg, NULL, 0);
--- a/sendicmp.c
+++ b/sendicmp.c
@@ -83,7 +83,7 @@
icmp->type = opt_icmptype; /* echo replay or echo request */
icmp->code = opt_icmpcode; /* should be indifferent */
icmp->checksum = 0;
- icmp->un.echo.id = getpid() & 0xffff;
+ icmp->un.echo.id = icmp_ip_id == DEFAULT_ICMP_IP_ID ? getpid() & 0xffff : icmp_ip_id;
icmp->un.echo.sequence = _icmp_seq;
/* data */
This diff is collapsed.
Correct some hyphen used as minus (thanks lintian).
--- a/docs/hping3.8
+++ b/docs/hping3.8
@@ -165,9 +165,9 @@
.I -i --interval
Wait
the specified number of seconds or micro seconds between sending each packet.
---interval X set
+\-\-interval X set
.I wait
-to X seconds, --interval uX set
+to X seconds, \-\-interval uX set
.I wait
to X micro seconds.
The default is to wait
@@ -178,14 +178,14 @@
for more information.
.TP
.I --fast
-Alias for -i u10000. Hping will send 10 packets for second.
+Alias for \-i u10000. Hping will send 10 packets for second.
.TP
.I --faster
-Alias for -i u1. Faster then --fast ;) (but not as fast as your computer can send packets due to the signal-driven design).
+Alias for \-i u1. Faster then \-\-fast ;) (but not as fast as your computer can send packets due to the signal-driven design).
.TP
.I --flood
Sent packets as fast as possible, without taking care to show incoming replies.
-This is ways faster than to specify the -i u0 option.
+This is ways faster than to specify the \-i u0 option.
.TP
.I -n --numeric
Numeric output only, No attempt will be made to lookup symbolic names for host addresses.
@@ -200,7 +200,7 @@
hping3 uses the first non-loopback interface.
However you are able to force hping3 to use the interface you need using
this option. Note: you don't need to specify the whole name, for
-example -I et will match eth0 ethernet0 myet1 et cetera. If no interfaces
+example \-I et will match eth0 ethernet0 myet1 et cetera. If no interfaces
match hping3 will try to use lo.
.TP
.I -V --verbose
@@ -236,7 +236,7 @@
.TP
.I -0 --rawip
RAW IP mode, in this mode hping3 will send IP header with data
-appended with --signature and/or --file, see also --ipproto that
+appended with \-\-signature and/or \-\-file, see also \-\-ipproto that
allows you to set the ip protocol field.
.TP
.I -1 --icmp
@@ -292,7 +292,7 @@
.I signature
and dump from
.I signature
-end to packet's end. For example if hping3 --listen TEST reads a packet
+end to packet's end. For example if hping3 \-\-listen TEST reads a packet
that contain
.B 234-09sdflkjs45-TESThello_world
it will display
@@ -413,10 +413,10 @@
.I -C --icmptype type
Set icmp type, default is
.B ICMP echo request
-(implies --icmp).
+(implies \-\-icmp).
.TP
.I -K --icmpcode code
-Set icmp code, default is 0 (implies --icmp).
+Set icmp code, default is 0 (implies \-\-icmp).
.TP
.I --icmp-ipver
Set IP version of IP header contained into ICMP data, default is 4.
@@ -438,10 +438,10 @@
Set ICMP checksum, for default is the valid checksum.
.TP
.I --icmp-ts
-Alias for --icmptype 13 (to send ICMP timestamp requests).
+Alias for \-\-icmptype 13 (to send ICMP timestamp requests).
.TP
.I --icmp-addr
-Alias for --icmptype 17 (to send ICMP address mask requests).
+Alias for \-\-icmptype 17 (to send ICMP address mask requests).
.SH TCP/UDP RELATED OPTIONS
.TP
.I -s --baseport source port
@@ -540,7 +540,7 @@
.SH COMMON OPTIONS
.TP
.I -d --data data size
-Set packet body size. Warning, using --data 40 hping3 will not generate
+Set packet body size. Warning, using \-\-data 40 hping3 will not generate
0 byte packets but protocol_header+40 bytes. hping3 will display
packet size information as first line output, like this:
.B HPING www.yahoo.com (ppp0 204.71.200.67): NO FLAGS are set, 40 headers + 40 data bytes
@@ -594,8 +594,8 @@
.B ICMP time to live 0 during transit
received. Try
.BR "hping3 host --traceroute" .
-This option implies --bind and --ttl 1. You can override the ttl of 1
-using the --ttl option. Since 2.0.0 stable it prints RTT information.
+This option implies \-\-bind and \-\-ttl 1. You can override the ttl of 1
+using the \-\-ttl option. Since 2.0.0 stable it prints RTT information.
.TP
.I --tr-keep-ttl
Keep the TTL fixed in traceroute mode, so you can monitor just one hop
@@ -709,7 +709,7 @@
.SH AUTHOR
Salvatore Sanfilippo <antirez@invece.org>, with the help of the people mentioned in AUTHORS file and at http://www.hping.org/authors.html
.SH BUGS
-Even using the --end and --safe options to transfer files the final packet
+Even using the \-\-end and \-\-safe options to transfer files the final packet
will be padded with 0x00 bytes.
.PP
Data is read without care about alignment, but alignment is enforced
--- a/docs/french/hping2-fr.8
+++ b/docs/french/hping2-fr.8
@@ -170,9 +170,9 @@
.I -i --interval
Attend le nombre spécifié de secondes ou de micro secondes entre l'envoie de
chaque paquet.
---interval X fixe
+\-\-interval X fixe
.I wait
-à X secondes, --interval uX fixe
+à X secondes, \-\-interval uX fixe
.I wait
à X micro secondes. Le défaut est d'attendre une seconde entre chaque
paquet. En utilisant hping3 pour transférer des fichiers fixer cette option
@@ -183,16 +183,16 @@
pour plus d'informations.
.TP
.I --fast
-Alias pour -i u10000. Hping enverra 10 paquets par seconde.
+Alias pour \-i u10000. Hping enverra 10 paquets par seconde.
.TP
.I --faster
-Alias pour -i u1. Plus rapide que --fast ;) (mais pas aussi rapide que votre
+Alias pour \-i u1. Plus rapide que \-\-fast ;) (mais pas aussi rapide que votre
ordinateur peut envoyer des paquets à cause de la conception basée sur les
signaux).
.TP
.I --flood
Envoi les paquets aussi vite que possible sans prendre en compte les réponses
-de retour. Cette méthode est encore plus rapide que l'option -i u0.
+de retour. Cette méthode est encore plus rapide que l'option \-i u0.
.TP
.I -n --numeric
Sortie numérique seulement, aucune tentative ne sera faite pour chercher les
@@ -208,7 +208,7 @@
de routage par défaut hping3 utilise la première interface non loopback.
Quoi qu'il en soit vous avez la possibilité de forcer hping3 à utiliser
l'interface dont vous avez besoin en utilisant cette option. Note : vous
-n'avez pas besoin de spécifier le nom complet, par exemple -I et va
+n'avez pas besoin de spécifier le nom complet, par exemple \-I et va
correspondre à eth0 ethernet0 myet1 et cetera. Si aucune interface ne
correspond hping3 essayera d'utiliser lo.
.TP
@@ -249,7 +249,7 @@
.TP
.I -0 --rawip
Mode RAW IP, dans ce mode hping3 enverra une entête IP avec les données
-ajoutées avec --signature et/ou --file, voir également --ipproto qui vous
+ajoutées avec \-\-signature et/ou \-\-file, voir également \-\-ipproto qui vous
autorise à fixer le champ protocole IP.
.TP
.I -1 --icmp
@@ -312,7 +312,7 @@
.I signature
et exporte de la fin de la
.I signature
-à la fin du paquet. Par exemple si hping3 --listen TEST lit un paquet qui
+à la fin du paquet. Par exemple si hping3 \-\-listen TEST lit un paquet qui
contient
.B 234-09sdflkjs45-TESThello_world
il affichera
@@ -446,7 +446,7 @@
.BR "ICMP echo request" .
.TP
.I -K --icmpcode code
-Fixe le code ICMP, le défaut est 0 (implique --icmp).
+Fixe le code ICMP, le défaut est 0 (implique \-\-icmp).
.TP
.I --icmp-ipver
Fixe la version IP de l'entête IP contenue dans les données ICMP, le défaut
@@ -472,10 +472,10 @@
Fixe la somme de contrôle ICMP, le défaut est la somme de contrôle valide.
.TP
.I --icmp-ts
-Alias pour --icmptype 13 (pour envoyer des requêtes ICMP timestamp).
+Alias pour \-\-icmptype 13 (pour envoyer des requêtes ICMP timestamp).
.TP
.I --icmp-addr
-Alias pour --icmptype 17 (pour envoyer des requêtes ICMP masque réseau).
+Alias pour \-\-icmptype 17 (pour envoyer des requêtes ICMP masque réseau).
.SH OPTIONS TCP/UDP
.TP
.I -s --baseport source port
@@ -579,7 +579,7 @@
.SH OPTIONS COMMUNES
.TP
.I -d --data data size
-Fixe la taille du corps du paquet. Attention, en utilisant --data 40 hping3
+Fixe la taille du corps du paquet. Attention, en utilisant \-\-data 40 hping3
ne générera pas des paquets de 0 octet mais de entête_de_protocole+40
octets. hping3 affichera en information la taille des paquets comme première
ligne de sortie, comme ceci :
@@ -638,8 +638,8 @@
.B ICMP time to live 0 during transit
reçu. Essayez
.BR "hping3 host --traceroute" .
-Cette option implique --bind et --ttl 1. Vous pouvez l'emporter sur le ttl à
-1 en utilisant l'option --ttl. Depuis 2.0.0 stable il affiche les
+Cette option implique \-\-bind et \-\-ttl 1. Vous pouvez l'emporter sur le ttl à
+1 en utilisant l'option \-\-ttl. Depuis 2.0.0 stable il affiche les
informations de RTT.
.I --tr-keep-ttl
garde le ttl fixe en mode traceroute, ainsi vous pouvez contrôler simplement
@@ -758,7 +758,7 @@
Salvatore Sanfilippo <antirez@invece.org>, avec l'aide des personnes
mentionnées dans le fichier AUTHORS et sur http://www.hping.org/authors.html
.SH BOGUES
-Même en utilisant les options --end et --safe pour transférer des fichiers,
+Même en utilisant les options \-\-end et \-\-safe pour transférer des fichiers,
le paquet final sera rembourré avec des octets 0x00.
.PP
Les données sont lues sans tenir compte de l'alignement, mais l'alignement
Off-by-one error with --dontfrag (#537704).
--- a/sendip_handler.c
+++ b/sendip_handler.c
@@ -19,7 +19,7 @@
{
ip_optlen = ip_opt_build(ip_opt);
- if (!opt_fragment && (size+ip_optlen+20 >= h_if_mtu))
+ if (!opt_fragment && (size+ip_optlen+20 > h_if_mtu))