$NetBSD: patch-aa,v 1.7 2002/07/15 14:41:27 wiz Exp $ --- snort.c.orig Fri Jun 28 16:22:59 2002 +++ snort.c @@ -43,6 +43,9 @@ /* I N C L U D E S **********************************************************/ #include "snort.h" +#ifdef __NetBSD__ +#include +#endif /* G L O B A L S ************************************************************/ @@ -1480,6 +1483,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) {