Update to 2.0.0rc2 from Chris Kuethe <ckuethe@ualberta.ca>:

"I've been running this for quite some time now, and it plays much
nicer with machines with multiple interfaces that come and go.
Also, the traceroute mode seems a lot more accurate."

LP64 fixes from yours truly.

ok maintainer
This commit is contained in:
naddy 2004-04-21 00:16:12 +00:00
parent 8266e0e3db
commit d4bbf8c892
5 changed files with 50 additions and 7 deletions

View File

@ -1,9 +1,9 @@
# $OpenBSD: Makefile,v 1.16 2004/02/01 16:23:36 jose Exp $
# $OpenBSD: Makefile,v 1.17 2004/04/21 00:16:12 naddy Exp $
COMMENT= "TCP/UDP ping/traceroute tool"
DISTNAME= hping2.0.0-rc1
PKGNAME= hping-2.0.0rc1
DISTNAME= hping2.0.0-rc2
PKGNAME= hping-2.0.0rc2
CATEGORIES= net
HOMEPAGE= http://www.hping.org/
@ -17,13 +17,14 @@ PERMIT_DISTFILES_FTP= Yes
MASTER_SITES= ${HOMEPAGE}
WRKDIST= ${WRKDIR}/hping2
WRKDIST= ${WRKDIR}/hping2-rc2
MAKE_FLAGS= CC="${CC}" CCOPT="${CFLAGS} -Wall"
CONFIGURE_STYLE= simple
post-extract:
@rm -f ${WRKSRC}/*.orig
@sed -e s#hping2#hping# -e s#HPING2#HPING# \
${WRKSRC}/docs/hping2.8 > ${WRKSRC}/docs/hping.8

View File

@ -1,3 +1,3 @@
MD5 (hping2.0.0-rc1.tar.gz) = f915af241bfac510d1a51b7113503a17
RMD160 (hping2.0.0-rc1.tar.gz) = a40f6f80c2887d7874e844012cb6a76bd07b84fb
SHA1 (hping2.0.0-rc1.tar.gz) = 710dbc77b04399cc8979a910aa03e805c17bd01c
MD5 (hping2.0.0-rc2.tar.gz) = f9ab1f84ec89f2a1c428988231d554b0
RMD160 (hping2.0.0-rc2.tar.gz) = e32479f8d1f7408eaeaa9e507c8050618c81825e
SHA1 (hping2.0.0-rc2.tar.gz) = ee10aa5cce7431ab0887ca0328b0fed86407cd3c

View File

@ -0,0 +1,11 @@
$OpenBSD: patch-libpcap_stuff_c,v 1.1 2004/04/21 00:16:12 naddy Exp $
--- libpcap_stuff.c.orig 2004-04-20 22:25:34.000000000 +0200
+++ libpcap_stuff.c 2004-04-20 22:25:49.000000000 +0200
@@ -14,6 +14,7 @@
#if (!defined OSTYPE_LINUX) || (defined FORCE_LIBPCAP)
#include <stdio.h>
#include <stdlib.h>
+#include <string.h>
#include <sys/ioctl.h>
#include <pcap.h>
#include <net/bpf.h>

View File

@ -0,0 +1,19 @@
$OpenBSD: patch-rtt_c,v 1.1 2004/04/21 00:16:12 naddy Exp $
--- rtt.c.orig 2004-04-20 22:24:23.000000000 +0200
+++ rtt.c 2004-04-20 22:25:15.000000000 +0200
@@ -72,11 +72,11 @@ int rtt(int *seqp, int recvport, float *
printf("\n\nSANITY CHECK in rtt.c FAILED!\n");
printf("- seqnum = %d\n", *seqp);
printf("- status = %d\n", status);
- printf("- get_usec() = %ld\n", get_usec());
- printf("- delaytable.usec = %ld\n", delaytable[tablepos].usec);
+ printf("- get_usec() = %ld\n", (long)get_usec());
+ printf("- delaytable.usec = %ld\n", (long)delaytable[tablepos].usec);
printf("- usec_delay = %ld\n", usec_delay);
- printf("- time(NULL) = %ld\n", time(NULL));
- printf("- delaytable.sec = %ld\n", delaytable[tablepos].sec);
+ printf("- time(NULL) = %ld\n", (long)time(NULL));
+ printf("- delaytable.sec = %ld\n", (long)delaytable[tablepos].sec);
printf("- sec_delay = %ld\n", sec_delay);
printf("- ms_delay = %f\n", *ms_delay);
printf("END SANITY CHECK REPORT\n\n");

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-waitpacket_c,v 1.1 2004/04/21 00:16:12 naddy Exp $
--- waitpacket.c.orig 2004-04-20 22:20:56.000000000 +0200
+++ waitpacket.c 2004-04-20 22:21:06.000000000 +0200
@@ -179,7 +179,7 @@ void log_icmp_ts(void *ts)
(unsigned int) ntohl(icmp_tstamp.orig),
(unsigned int) ntohl(icmp_tstamp.recv),
(unsigned int) ntohl(icmp_tstamp.tran));
- printf("ICMP timestamp RTT tsrtt=%lu\n\n",
+ printf("ICMP timestamp RTT tsrtt=%u\n\n",
(get_midnight_ut_ms() - ntohl(icmp_tstamp.orig)));
}