summaryrefslogtreecommitdiff
path: root/net/snort/patches/patch-aa
blob: 14ca1905bfad38d2b32b35b87ce8c561d7bda250 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
$NetBSD: patch-aa,v 1.6 2002/04/02 21:34:09 rh Exp $

--- snort.c.orig	Sun Mar 24 23:32:03 2002
+++ snort.c	Sun Mar 24 23:36:09 2002
@@ -43,6 +43,9 @@
 
 /*  I N C L U D E S  **********************************************************/
 #include "snort.h"
+#ifdef __NetBSD__
+#include <sys/param.h>
+#endif
 
 
 /*  G L O B A L S  ************************************************************/
@@ -1487,6 +1490,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)
             {