summaryrefslogtreecommitdiff
path: root/sys/arch/amiga
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/amiga
parentfc0ed9c5a8064743686bd8b50c6a34ef4837f150 (diff)
created devices for the IP filter log on all architectures
Diffstat (limited to 'sys/arch/amiga')
-rw-r--r--sys/arch/amiga/amiga/conf.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/sys/arch/amiga/amiga/conf.c b/sys/arch/amiga/amiga/conf.c
index a23e9a2b581..c123bd6e176 100644
--- a/sys/arch/amiga/amiga/conf.c
+++ b/sys/arch/amiga/amiga/conf.c
@@ -166,6 +166,19 @@ cdev_decl(tun);
#endif
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 */
@@ -202,6 +215,7 @@ struct cdevsw cdevsw[] =
cdev_lkm_dummy(), /* 29 */
cdev_lkm_dummy(), /* 30 */
cdev_tty_init(NMSC,msc), /* 31: A2232 MSC Multiport serial */
+ cdev_gen_ipf(NIPF,ipl), /* 32: IP filter log */
};
int nchrdev = sizeof(cdevsw) / sizeof(cdevsw[0]);