pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/net/hping update to 2.0.0.2
details: https://anonhg.NetBSD.org/pkgsrc/rev/16691bcf3db7
branches: trunk
changeset: 462055:16691bcf3db7
user: recht <recht%pkgsrc.org@localhost>
date: Thu Sep 25 22:12:15 2003 +0000
description:
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@localhost>
for the original report).
diffstat:
net/hping/Makefile | 8 ++++----
net/hping/distinfo | 8 ++++----
net/hping/patches/patch-aa | 29 +++++++++++++----------------
3 files changed, 21 insertions(+), 24 deletions(-)
diffs (80 lines):
diff -r 7f7c101c0fec -r 16691bcf3db7 net/hping/Makefile
--- a/net/hping/Makefile Thu Sep 25 22:04:21 2003 +0000
+++ b/net/hping/Makefile Thu Sep 25 22:12:15 2003 +0000
@@ -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 -r 7f7c101c0fec -r 16691bcf3db7 net/hping/distinfo
--- a/net/hping/distinfo Thu Sep 25 22:04:21 2003 +0000
+++ b/net/hping/distinfo Thu Sep 25 22:12:15 2003 +0000
@@ -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 -r 7f7c101c0fec -r 16691bcf3db7 net/hping/patches/patch-aa
--- a/net/hping/patches/patch-aa Thu Sep 25 22:04:21 2003 +0000
+++ b/net/hping/patches/patch-aa Thu Sep 25 22:12:15 2003 +0000
@@ -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 @@
+ 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 */
Home |
Main Index |
Thread Index |
Old Index