ipfiltering
authorkstailey <kstailey@openbsd.org>
Tue, 4 Feb 1997 23:25:03 +0000 (23:25 +0000)
committerkstailey <kstailey@openbsd.org>
Tue, 4 Feb 1997 23:25:03 +0000 (23:25 +0000)
sys/arch/sun3/include/conf.h
sys/arch/sun3/sun3/conf.c

index 0e9edaf..82d02b4 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: conf.h,v 1.5 1997/01/16 04:04:05 kstailey Exp $       */
+/*     $OpenBSD: conf.h,v 1.6 1997/02/04 23:25:04 kstailey Exp $       */
 
 /*-
  * Copyright (c) 1996 Kenneth Stailey.  All rights reserved.
@@ -74,3 +74,12 @@ cdev_decl(bw2);
 cdev_decl(cg2);
 #include "cgfour.h"
 cdev_decl(cg4);
+
+/* IP packet filtering */
+/* open, close, read, ioctl */
+cdev_decl(ipl);
+#ifdef IPFILTER
+#define NIPF 1
+#else
+#define NIPF 0
+#endif
index cfc11ff..402a7c3 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: conf.c,v 1.18 1997/01/16 04:04:14 kstailey Exp $      */
+/*     $OpenBSD: conf.c,v 1.19 1997/02/04 23:25:03 kstailey Exp $      */
 /*     $NetBSD: conf.c,v 1.51 1996/11/04 16:16:09 gwr Exp $    */
 
 /*-
@@ -172,6 +172,7 @@ struct cdevsw       cdevsw[] =
        cdev_random_init(1,random),     /* 72: randomness source */
        cdev_uk_init(NUK,uk),           /* 73: unknown SCSI */
        cdev_ss_init(NSS,ss),           /* 74: SCSI scanner */
+       cdev_gen_ipf(NIPF,ipl),         /* 75: ip filter log */
 };
 int    nchrdev = sizeof(cdevsw) / sizeof(cdevsw[0]);