fix sparc/sparc64 detection; pointed out in spp_stream4 by Brandon Williams; ok bmc

This commit is contained in:
pvalchev 2003-06-24 17:02:38 +00:00
parent 9ff991fc65
commit c411447a30
3 changed files with 28 additions and 1 deletions

View File

@ -1,8 +1,9 @@
# $OpenBSD: Makefile,v 1.28 2003/04/16 13:01:42 avsm Exp $
# $OpenBSD: Makefile,v 1.29 2003/06/24 17:02:38 pvalchev Exp $
COMMENT= "highly flexible sniffer/NIDS"
DISTNAME= snort-2.0.0
PKGNAME= ${DISTNAME}p1
CATEGORIES= net security
MASTER_SITES= ${HOMEPAGE}/dl/

View File

@ -0,0 +1,13 @@
$OpenBSD: patch-src_preprocessors_spp_frag2_c,v 1.1 2003/06/24 17:02:38 pvalchev Exp $
--- src/preprocessors/spp_frag2.c.orig Wed Apr 9 09:45:15 2003
+++ src/preprocessors/spp_frag2.c Mon Jun 23 17:00:19 2003
@@ -93,7 +93,8 @@ void Frag2Init(u_char *args);
#define FRAG2_TTL_LIMIT 5
#define FRAG2_MIN_TTL 0
-#if defined (SOLARIS) || defined (SUNOS)
+#if defined (SOLARIS) || defined (SUNOS) || defined (__sparc__) || \
+ defined (__sparc64__)
#define SPARC_TWIDDLE 2
#else
#define SPARC_TWIDDLE 0

View File

@ -0,0 +1,13 @@
$OpenBSD: patch-src_preprocessors_spp_stream4_c,v 1.1 2003/06/24 17:02:38 pvalchev Exp $
--- src/preprocessors/spp_stream4.c.orig Mon Jun 23 16:59:22 2003
+++ src/preprocessors/spp_stream4.c Mon Jun 23 17:00:46 2003
@@ -153,7 +153,8 @@ extern int *file_line;
/* We must twiddle to align the offset the ethernet header and align
the IP header on solaris -- maybe this will work on HPUX too.
*/
-#if defined (SOLARIS) || defined (SUNOS) || defined (HPUX)
+#if defined (SOLARIS) || defined (SUNOS) || defined (HPUX) || \
+ defined (__sparc__) || defined(__sparc64__)
#define SPARC_TWIDDLE 2
#else
#define SPARC_TWIDDLE 0