[Snort-devel] patches from NetBSD pkgsrc

Lubomir Sedlacik salo at ...1924...
Wed Apr 16 06:41:14 EDT 2003


hi,

[ i am not subscribed to this list, please keep me on CC: in replies,
  thanks! ]

in order to make Snort compile and work properly on NetBSD, the
following patches need to be applied (currently they are part of pkgsrc
- NetBSD packaging system).  could you please add them into the official
snort development tree?  thanks.

the first patch teaches Snort about NetBSD PPP implementation, the
second one adds macppc platform to config.sub and the third one pulls in
sys/param.h.  the patches apply cleanly to 2.0.0 distribution tarball.


regards,

-- 
-- Lubomir Sedlacik <salo at ...1924...>                   --
--                  <salo at ...1925...>                   --
--                  <salo at ...1926...>                    --
-------------- next part --------------
$NetBSD: patch-aa,v 1.9 2003/04/16 06:37:20 salo Exp $

--- src/snort.c.orig	2003-04-03 23:10:52.000000000 +0200
+++ src/snort.c	2003-04-16 08:03:06.000000000 +0200
@@ -1355,6 +1355,19 @@
 
             break;
 
+#if defined(__NetBSD__)
+#  if defined(__NetBSD_Version__)
+#    if (__NetBSD_Version__ >= 105000000)
+        case DLT_PPP_SERIAL:         /* PPP over serial (async and sync) */
+        case DLT_PPP_ETHER:          /* PPP over Ethernet */
+
+#    else
+       /* no DLT_PPP_* on <1.5 */
+#    endif /* >= NetBSD 1.5 */
+#  else
+       /* no __NetBSD_Version__ on <1.4 */
+#  endif /* __NetBSD_Version__ */
+#endif /* NetBSD */
         case DLT_PPP:                /* point-to-point protocol */
             if(!pv.readmode_flag)
             {
-------------- next part --------------
$NetBSD: patch-ab,v 1.2 2002/04/02 21:34:09 rh Exp $

--- config.sub.orig	Sun Mar 24 23:37:23 2002
+++ config.sub	Sun Mar 24 23:46:03 2002
@@ -235,7 +235,7 @@
 	| h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
 	| i370 | i860 | i960 | ia64 \
 	| m32r | m68000 | m68k | m88k | mcore \
-	| mips16 | mips64 | mips64el | mips64orion | mips64orionel \
+	| mips16 | mips64 | mips64el | mips64orion | mips64orionel | macppc \
 	| mips64vr4100 | mips64vr4100el | mips64vr4300 \
 	| mips64vr4300el | mips64vr5000 | mips64vr5000el \
 	| mipsbe | mipseb | mipsel | mipsle | mipstx39 | mipstx39el \
@@ -296,7 +296,7 @@
 	| m68000-* | m680[01234]0-* | m68360-* | m683?2-* | m68k-* \
 	| m88110-* | m88k-* | mcore-* \
 	| mips-* | mips16-* | mips64-* | mips64el-* | mips64orion-* \
-	| mips64orionel-* | mips64vr4100-* | mips64vr4100el-* \
+	| mips64orionel-* | macppc-* | mips64vr4100-* | mips64vr4100el-* \
 	| mips64vr4300-* | mips64vr4300el-* | mipsbe-* | mipseb-* \
 	| mipsle-* | mipsel-* | mipstx39-* | mipstx39el-* \
 	| none-* | np1-* | ns16k-* | ns32k-* \
-------------- next part --------------
$NetBSD: patch-ac,v 1.1 2002/10/13 04:42:13 hubertf Exp $

--- src/plugbase.h.orig	Thu Jun 27 00:40:44 2002
+++ src/plugbase.h
@@ -46,7 +46,7 @@
     #undef Free
 #endif
 
-#if defined(SOLARIS) || defined(FREEBSD) || defined(OPENBSD)
+#if defined(SOLARIS) || defined(FREEBSD) || defined(OPENBSD) || defined(NETBSD)
     #include <sys/param.h>
 #endif
 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 186 bytes
Desc: not available
URL: <https://lists.snort.org/pipermail/snort-devel/attachments/20030416/c5bb9483/attachment.sig>


More information about the Snort-devel mailing list