From 4e3a942ae0d30612f7b4cc1e7ba1cb6eabcf02f1 Mon Sep 17 00:00:00 2001 From: dm Date: Sun, 7 Jan 1996 07:41:30 +0000 Subject: created devices for the IP filter log on all architectures --- sys/arch/amiga/amiga/conf.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'sys/arch/amiga') 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]); -- cgit v1.2.3