[Midnightbsd-cvs] mports: net/hping: Add additional midnightbsd patches to fix some odd

laffer1 at midnightbsd.org laffer1 at midnightbsd.org
Fri May 30 20:24:53 EDT 2008


Log Message:
-----------
Add additional midnightbsd patches to fix some odd behavior

Modified Files:
--------------
    mports/net/hping:
        Makefile (r1.1 -> r1.2)

Added Files:
-----------
    mports/net/hping/files:
        patch-ars.c (r1.1)
        patch-sendip.c (r1.1)

-------------- next part --------------
Index: Makefile
===================================================================
RCS file: /home/cvs/mports/net/hping/Makefile,v
retrieving revision 1.1
retrieving revision 1.2
diff -L net/hping/Makefile -L net/hping/Makefile -u -r1.1 -r1.2
--- net/hping/Makefile
+++ net/hping/Makefile
@@ -8,6 +8,7 @@
 
 PORTNAME=	hping
 PORTVERSION=	2.0.0r3
+PORTREVISION=	1
 PORTEPOCH=	1
 CATEGORIES=	net security
 MASTER_SITES=	http://www.hping.org/ \
--- /dev/null
+++ net/hping/files/patch-ars.c
@@ -0,0 +1,11 @@
+--- ars.c.orig	Fri May 30 20:20:58 2008
++++ ars.c	Fri May 30 20:21:36 2008
+@@ -830,7 +830,7 @@
+ 		return -ARS_INVALID;
+ 	}
+ 	ip = (struct ars_iphdr*) packet;
+-#if defined OSTYPE_FREEBSD || defined OSTYPE_NETBSD || defined OSTYPE_BSDI
++#if defined OSTYPE_FREEBSD || defined OSTYPE_MIDNIGHTBSD || defined OSTYPE_NETBSD || defined OSTYPE_BSDI
+ 	ip->tot_len = ntohs(ip->tot_len);
+ 	ip->frag_off = ntohs(ip->frag_off);
+ #endif
--- /dev/null
+++ net/hping/files/patch-sendip.c
@@ -0,0 +1,20 @@
+--- sendip.c.orig	Fri May 30 20:22:09 2008
++++ sendip.c	Fri May 30 20:22:58 2008
+@@ -48,7 +48,7 @@
+ 	ip->ihl		= (IPHDR_SIZE + optlen + 3) >> 2;
+ 	ip->tos		= ip_tos;
+ 
+-#if defined OSTYPE_FREEBSD || defined OSTYPE_NETBSD || defined OSTYPE_BSDI
++#if defined OSTYPE_FREEBSD || defined OSTYPE_MIDNIGHTBSD || defined OSTYPE_NETBSD || defined OSTYPE_BSDI
+ /* FreeBSD */
+ /* NetBSD */
+ 	ip->tot_len	= packetsize;
+@@ -73,7 +73,7 @@
+ 			htons((unsigned short) src_id);
+ 	}
+ 
+-#if defined OSTYPE_FREEBSD || defined OSTYPE_NETBSD | defined OSTYPE_BSDI
++#if defined OSTYPE_FREEBSD || defined OSTYPE_MIDNIGHTBSD || defined OSTYPE_NETBSD | defined OSTYPE_BSDI
+ /* FreeBSD */
+ /* NetBSD */
+ 	ip->frag_off	|= more_fragments;


More information about the Midnightbsd-cvs mailing list