summaryrefslogtreecommitdiff
path: root/sys/arch/mac68k
diff options
context:
space:
mode:
authordm <dm@cvs.openbsd.org>1996-01-07 07:41:30 +0000
committerdm <dm@cvs.openbsd.org>1996-01-07 07:41:30 +0000
commit4e3a942ae0d30612f7b4cc1e7ba1cb6eabcf02f1 (patch)
tree2e302d9141ec95e4911969a64a5426e87f0b92fc /sys/arch/mac68k
parentfc0ed9c5a8064743686bd8b50c6a34ef4837f150 (diff)
created devices for the IP filter log on all architectures
Diffstat (limited to 'sys/arch/mac68k')
-rw-r--r--sys/arch/mac68k/mac68k/conf.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/sys/arch/mac68k/mac68k/conf.c b/sys/arch/mac68k/mac68k/conf.c
index 84ac08fa8b8..7b355e7a46f 100644
--- a/sys/arch/mac68k/mac68k/conf.c
+++ b/sys/arch/mac68k/mac68k/conf.c
@@ -178,6 +178,19 @@ cdev_decl(tun);
cdev_decl(lkm);
+/* open, close, read, ioctl */
+cdev_decl(ipl);
+#define cdev_gen_ipf(c,n) { \
+ dev_init(c,n,open), dev_init(c,n,close), dev_init(c,n,read), \
+ (dev_type_write((*))) enodev, dev_init(c,n,ioctl), \
+ (dev_type_stop((*))) nullop, 0, (dev_type_select((*))) enodev, \
+ (dev_type_mmap((*))) enodev, 0 }
+#ifdef IPFILTER
+#define NIPF 1
+#else
+#define NIPF 0
+#endif
+
struct cdevsw cdevsw[] =
{
cdev_cn_init(1,cn), /* 0: virtual console */
@@ -213,6 +226,7 @@ struct cdevsw cdevsw[] =
cdev_lkm_dummy(), /* 29 */
cdev_lkm_dummy(), /* 30 */
cdev_lkm_dummy(), /* 31 */
+ cdev_gen_ipf(NIPF,ipl), /* 32: IP filter log */
};
int nchrdev = sizeof(cdevsw) / sizeof(cdevsw[0]);