diff options
author | recht <recht@pkgsrc.org> | 2003-09-25 22:12:15 +0000 |
---|---|---|
committer | recht <recht@pkgsrc.org> | 2003-09-25 22:12:15 +0000 |
commit | d40dc2d13e93eef8396858c941bc74249d0432a7 (patch) | |
tree | 07b471c45406fa06411271c3902c94da6eb309d8 | |
parent | 57af21facfb819943d75c90a1dc346aad6173a06 (diff) | |
download | pkgsrc-d40dc2d13e93eef8396858c941bc74249d0432a7.tar.gz |
update to 2.0.0.2
patch provided by Quentin Garnier in PR 22320
rc2 changes
* Major code rewrite (me)
* Fix for a problem about port number printing in TCP mode (thanks to
Yann Berthier)
* MTU value sanity check in option parsing (Nicolas Jombart)
* Fix the use of -W option (Nicolas Jombart)
* strlcpy() when needed (Brieuc Jeunhomme)
* source routing and random bugfixes (Brieuc Jeunhomme)
* Fix a bug when using BSD and a PPP link as a default route, and more
(Nicolas Jombart)
* --rand-source for random source addresses (me)
* --rand-dest for random destination addresses + manpage update (me)
* all the atoi() call was replaced with strto[u]l() (me)
* seq/ack setting using strtoul() instead of atoi() (Shachar Shemesh)
* DF added to the icmp and udp output (me)
* --port ++ fixed with UDP and enanched for TCP/UDP. Now the packets
matches only with a sport that is in the range base_dest_port -
current_dest_port (me) (Thanks to David Bar <dbar@Checkpoint.com>
for the original report).
-rw-r--r-- | net/hping/Makefile | 8 | ||||
-rw-r--r-- | net/hping/distinfo | 8 | ||||
-rw-r--r-- | net/hping/patches/patch-aa | 29 |
3 files changed, 21 insertions, 24 deletions
diff --git a/net/hping/Makefile b/net/hping/Makefile index d9a6a84895c..dc8a078aa6c 100644 --- a/net/hping/Makefile +++ b/net/hping/Makefile @@ -1,9 +1,9 @@ -# $NetBSD: Makefile,v 1.2 2003/07/17 22:51:14 grant Exp $ +# $NetBSD: Makefile,v 1.3 2003/09/25 22:12:15 recht Exp $ # -DISTNAME= hping2.0.0-rc1 -PKGNAME= hping-2.0.0.1 -WRKSRC= ${WRKDIR}/hping2 +DISTNAME= hping2.0.0-rc2 +PKGNAME= hping-2.0.0.2 +WRKSRC= ${WRKDIR}/hping2-rc2 CATEGORIES= net MASTER_SITES= http://www.hping.org/ diff --git a/net/hping/distinfo b/net/hping/distinfo index dc493c01161..008966cec4d 100644 --- a/net/hping/distinfo +++ b/net/hping/distinfo @@ -1,6 +1,6 @@ -$NetBSD: distinfo,v 1.2 2002/04/04 20:56:38 agc Exp $ +$NetBSD: distinfo,v 1.3 2003/09/25 22:12:15 recht Exp $ -SHA1 (hping2.0.0-rc1.tar.gz) = 710dbc77b04399cc8979a910aa03e805c17bd01c -Size (hping2.0.0-rc1.tar.gz) = 90496 bytes -SHA1 (patch-aa) = 9bc0ba438d29191247d61c0b9a4e71d09e4c60a0 +SHA1 (hping2.0.0-rc2.tar.gz) = ee10aa5cce7431ab0887ca0328b0fed86407cd3c +Size (hping2.0.0-rc2.tar.gz) = 100501 bytes +SHA1 (patch-aa) = f0b60b33df37c5b5f332c4dd5b668c87f2f00780 SHA1 (patch-ab) = 7862d487c5fa9940a51c82154e5427f426c93270 diff --git a/net/hping/patches/patch-aa b/net/hping/patches/patch-aa index 6bdda51a232..5f459e5c127 100644 --- a/net/hping/patches/patch-aa +++ b/net/hping/patches/patch-aa @@ -1,11 +1,8 @@ -$NetBSD: patch-aa,v 1.1.1.1 2002/04/04 17:02:30 atatat Exp $ +$NetBSD: patch-aa,v 1.2 2003/09/25 22:12:15 recht Exp $ -Do *ALL* the root stuff right up front and then completely lose -privileges. - ---- main.c.orig Mon Aug 13 20:07:33 2001 -+++ main.c Fri Mar 29 23:46:01 2002 -@@ -150,6 +150,17 @@ +--- main.c.orig 2003-07-31 12:06:55.000000000 +0200 ++++ main.c +@@ -166,6 +166,17 @@ int main(int argc, char **argv) char setflags[1024] = {'\0'}; int c, hdr_size; @@ -20,20 +17,20 @@ privileges. + exit(1); + } + - if ( parse_options(argc, argv) == -1 ) - { + if (parse_options(argc, argv) == -1) { printf("hping2: missing host argument\n" -@@ -187,13 +199,6 @@ - { - printf("using %s, addr: %s, MTU: %d\n", + "Try `hping2 --help' for more information.\n"); +@@ -206,13 +217,6 @@ int main(int argc, char **argv) ifname, ifstraddr, h_if_mtu); -- } -- + } + - /* open raw socket */ - sockraw = open_sockraw(); - if (sockraw == -1) { - printf("[main] can't open raw socket\n"); - exit(1); - } - +- } +- /* set SO_BROADCAST option */ + socket_broadcast(sockraw); + /* set SO_IPHDRINCL option */ |