summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--net/hping/Makefile8
-rw-r--r--net/hping/distinfo8
-rw-r--r--net/hping/patches/patch-aa29
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 */