pkgsrc/net/snort/patches/patch-aa
2003-04-16 15:51:22 +00:00

33 lines
1 KiB
Text

$NetBSD: patch-aa,v 1.10 2003/04/16 15:51:23 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)
{
@@ -1729,7 +1742,7 @@
{
struct stat st;
int i;
- char *conf_files[]={"/etc/snort.conf", "./snort.conf", NULL};
+ char *conf_files[]={ PKG_SYSCONFDIR "/snort.conf", "./snort.conf", NULL};
char *fname = NULL;
char *home_dir = NULL;
char *rval = NULL;