summaryrefslogtreecommitdiff
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
parentfc0ed9c5a8064743686bd8b50c6a34ef4837f150 (diff)
created devices for the IP filter log on all architectures
-rw-r--r--etc/etc.amiga/MAKEDEV7
-rw-r--r--etc/etc.atari/MAKEDEV7
-rw-r--r--etc/etc.hp300/MAKEDEV7
-rw-r--r--etc/etc.mac68k/MAKEDEV7
-rw-r--r--etc/etc.mvme68k/MAKEDEV9
-rw-r--r--etc/etc.pc532/MAKEDEV7
-rw-r--r--etc/etc.pmax/MAKEDEV5
-rw-r--r--etc/etc.sparc/MAKEDEV7
-rw-r--r--etc/etc.sun3/MAKEDEV7
-rw-r--r--etc/etc.vax/MAKEDEV5
-rw-r--r--sys/arch/amiga/amiga/conf.c14
-rw-r--r--sys/arch/atari/atari/conf.c14
-rw-r--r--sys/arch/hp300/hp300/conf.c14
-rw-r--r--sys/arch/mac68k/mac68k/conf.c14
-rw-r--r--sys/arch/mvme68k/mvme68k/conf.c16
-rw-r--r--sys/arch/pc532/pc532/conf.c14
-rw-r--r--sys/arch/pica/pica/conf.c17
-rw-r--r--sys/arch/pmax/pmax/conf.c14
-rw-r--r--sys/arch/sparc/sparc/conf.c15
-rw-r--r--sys/arch/sun3/sun3/conf.c14
-rw-r--r--sys/arch/vax/vax/conf.c15
21 files changed, 215 insertions, 14 deletions
diff --git a/etc/etc.amiga/MAKEDEV b/etc/etc.amiga/MAKEDEV
index 8e3e66ee9fc..915998ec40c 100644
--- a/etc/etc.amiga/MAKEDEV
+++ b/etc/etc.amiga/MAKEDEV
@@ -92,7 +92,7 @@ all)
sh MAKEDEV tty00 ttyA0 ttyA1 grf0 grf1 grf2 grf3 grf4 grf5
sh MAKEDEV kbd sd0 sd1 sd2 sd3 sd4 sd5 sd6 sd7 sd8 sd9 vnd0 vnd1 vnd2
sh MAKEDEV vnd3 vnd4 view00 view01 view02 view03 view04 view05 pty0
- sh MAKEDEV vnd5 vnd6 cd0 fd0 fd1 fd2 fd3 bpf0 bpf1 bpf2 bpf3
+ sh MAKEDEV vnd5 vnd6 cd0 fd0 fd1 fd2 fd3 bpf0 bpf1 bpf2 bpf3 ipl
sh MAKEDEV ccd0 ccd1 ccd2 ccd3
sh MAKEDEV tun0 tun1 par0 lkm local
;;
@@ -416,6 +416,11 @@ bpf*)
chown root.wheel bpf$unit
;;
+ipl)
+ mknod ipl c 32 0
+ chown root.wheel ipl
+ ;;
+
tun*)
unit=`expr $i : 'tun\(.*\)'`
rm -f tun$unit
diff --git a/etc/etc.atari/MAKEDEV b/etc/etc.atari/MAKEDEV
index d5767016209..ed5c05988d1 100644
--- a/etc/etc.atari/MAKEDEV
+++ b/etc/etc.atari/MAKEDEV
@@ -85,7 +85,7 @@ all)
sh MAKEDEV std fd st0 ttye0 ttye1 ttye2 mouse0 mouse1 grf0 grf1 grf2
sh MAKEDEV kbd sd0 sd1 sd2 sd3 sd4 sd5 sd6 sd7 sd8 sd9 vnd0 vnd1 vnd2
sh MAKEDEV vnd3 vnd4 view00 view01 view02 view03 view04 view05 pty0
- sh MAKEDEV vnd5 vnd6 cd0 fd0 fd1 fd2 fd3 bpf0 bpf1 bpf2 bpf3
+ sh MAKEDEV vnd5 vnd6 cd0 fd0 fd1 fd2 fd3 bpf0 bpf1 bpf2 bpf3 ipl
sh MAKEDEV ccd0 ccd1 ccd2 ccd3
sh MAKEDEV lkm ser02 mdm02 local
;;
@@ -368,6 +368,11 @@ bpf*)
chown root.wheel bpf$unit
;;
+ipl)
+ mknod ipl c 29 0
+ chown root.wheel ipl
+ ;;
+
lkm)
rm -f lkm
mknod lkm c 20 0
diff --git a/etc/etc.hp300/MAKEDEV b/etc/etc.hp300/MAKEDEV
index 0f22c23d18e..4d8f619ea43 100644
--- a/etc/etc.hp300/MAKEDEV
+++ b/etc/etc.hp300/MAKEDEV
@@ -74,7 +74,7 @@ all)
sh MAKEDEV std fd ct0 ct1 st0 st1 ccd0 ccd1 ccd2 rd0 rd1 rd2
sh MAKEDEV sd0 sd1 sd2 pty0 vnd0 vnd1 vnd2 vnd3
sh MAKEDEV hil grf0 ite0 dca0 dcm0 dcm1 dcm2 dcm3
- sh MAKEDEV bpf0 bpf1 bpf2 bpf3 tun0 tun1 tun2 tun3 lkm
+ sh MAKEDEV bpf0 bpf1 bpf2 bpf3 ipl tun0 tun1 tun2 tun3 lkm
sh MAKEDEV local
;;
@@ -150,6 +150,11 @@ bpf*)
chown root.wheel bpf$unit
;;
+ipl)
+ mknod ipl c 31 0
+ chown root.wheel ipl
+ ;;
+
tun*)
unit=`expr $i : 'tun\(.*\)'`
rm -f tun$unit
diff --git a/etc/etc.mac68k/MAKEDEV b/etc/etc.mac68k/MAKEDEV
index a4171bf6c71..4567fec0d74 100644
--- a/etc/etc.mac68k/MAKEDEV
+++ b/etc/etc.mac68k/MAKEDEV
@@ -72,7 +72,7 @@ all)
sh MAKEDEV adb grf0 grf1 ttye0
sh MAKEDEV tty00 tty01 pty0
sh MAKEDEV bpf0 bpf1 bpf2 bpf3 bpf4 bpf5 bpf6 bpf7
- sh MAKEDEV bpf8 bpf9 bpfa bpfb
+ sh MAKEDEV bpf8 bpf9 bpfa bpfb ipl
sh MAKEDEV tun0 tun1 tun2 tun3
sh MAKEDEV lkm
sh MAKEDEV local
@@ -300,6 +300,11 @@ bpf*)
chown root.wheel bpf${unit}
;;
+ipl)
+ mknod ipl c 32 0
+ chown root.wheel ipl
+ ;;
+
tun*)
unit=`expr $i : 'tun\(.*\)'`
rm -f tun$unit
diff --git a/etc/etc.mvme68k/MAKEDEV b/etc/etc.mvme68k/MAKEDEV
index 6c79d0208cd..a9339c46884 100644
--- a/etc/etc.mvme68k/MAKEDEV
+++ b/etc/etc.mvme68k/MAKEDEV
@@ -31,7 +31,7 @@
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
# SUCH DAMAGE.
#
-# $Id: MAKEDEV,v 1.4 1995/11/16 02:54:44 deraadt Exp $
+# $Id: MAKEDEV,v 1.5 1996/01/07 07:41:21 dm Exp $
#
# Device "make" file. Valid arguments:
# all makes all known devices, including local devices,
@@ -84,7 +84,7 @@ all)
sh MAKEDEV tty00 tty01 tty02 tty03
sh MAKEDEV sd0 sd1 sd2 sd3 sd4 sd5 sd6 sd7 sd8 sd9
sh MAKEDEV vnd0 vnd1 vnd2 vnd3 vnd4 pty0
- sh MAKEDEV vnd5 vnd6 cd0 bpf0 bpf1 bpf2 bpf3
+ sh MAKEDEV vnd5 vnd6 cd0 bpf0 bpf1 bpf2 bpf3 ipl
#sh MAKEDEV ccd0 ccd1 ccd2 ccd3
sh MAKEDEV tun0 tun1 lkm local
sh MAKEDEV sram0 nvram0 flash0 vmel0 vmes0
@@ -303,6 +303,11 @@ bpf*)
chown root.wheel bpf$unit
;;
+ipl)
+ mknod ipl c 39 0
+ chown root.wheel ipl
+ ;;
+
tun*)
unit=`expr $i : 'tun\(.*\)'`
rm -f tun$unit
diff --git a/etc/etc.pc532/MAKEDEV b/etc/etc.pc532/MAKEDEV
index 369102cf209..5cb9cf4f047 100644
--- a/etc/etc.pc532/MAKEDEV
+++ b/etc/etc.pc532/MAKEDEV
@@ -62,7 +62,7 @@ case $i in
all)
sh MAKEDEV std fd sd0 sd1 sd2 st0 st1 cd0 cd1
sh MAKEDEV tty0 tty1 tty2 tty3 tty4 tty5 tty6 tty7
- sh MAKEDEV pty0 pty1 vnd0 vnd1 bpf0 bpf1 bpf2 bpf3
+ sh MAKEDEV pty0 pty1 vnd0 vnd1 bpf0 bpf1 bpf2 bpf3 ipl
sh MAKEDEV tun0 tun1 tun2 lkm
sh MAKEDEV ccd0 ccd1 ccd2 ccd3
;;
@@ -223,6 +223,11 @@ bpf*)
chown root.wheel bpf$unit
;;
+ipl)
+ mknod ipl c 19 0
+ chown root.wheel ipl
+ ;;
+
tun*)
unit=`expr $i : 'tun\(.*\)'`
rm -f tun$unit
diff --git a/etc/etc.pmax/MAKEDEV b/etc/etc.pmax/MAKEDEV
index 6314d940627..bba9cf3c3dc 100644
--- a/etc/etc.pmax/MAKEDEV
+++ b/etc/etc.pmax/MAKEDEV
@@ -89,6 +89,11 @@ bpf*)
chown root.wheel bpf$unit
;;
+ipl)
+ mknod ipl c 88 0
+ chown root.wheel ipl
+ ;;
+
#tun*)
# unit=`expr $i : 'tun\(.*\)'`
# rm -f tun$unit
diff --git a/etc/etc.sparc/MAKEDEV b/etc/etc.sparc/MAKEDEV
index 642f36a1aac..8f4277dee34 100644
--- a/etc/etc.sparc/MAKEDEV
+++ b/etc/etc.sparc/MAKEDEV
@@ -80,7 +80,7 @@ all)
sh MAKEDEV cd0 st0 st1 fd0
sh MAKEDEV pty0 vnd0 vnd1 vnd2 vnd3 audio tun0 tun1 tun2 tun3
sh MAKEDEV ccd0 ccd1 ccd2 ccd3
- sh MAKEDEV bpf0 bpf1 bpf2 bpf3 bwtwo0 cgthree0 cgfour0 cgsix0
+ sh MAKEDEV bpf0 bpf1 bpf2 bpf3 ipl bwtwo0 cgthree0 cgfour0 cgsix0
sh MAKEDEV cgeight0
sh MAKEDEV lkm local
;;
@@ -148,6 +148,11 @@ bpf*)
chown root.wheel bpf$unit
;;
+ipl)
+ mknod ipl c 59 0
+ chown root.wheel ipl
+ ;;
+
tun*)
rm -f tun$unit
mknod tun$unit c 111 $unit
diff --git a/etc/etc.sun3/MAKEDEV b/etc/etc.sun3/MAKEDEV
index 0f7d87ed1db..d9b530ffde3 100644
--- a/etc/etc.sun3/MAKEDEV
+++ b/etc/etc.sun3/MAKEDEV
@@ -32,7 +32,7 @@
# SUCH DAMAGE.
#
# @(#)MAKEDEV 5.5 (Berkeley) 5/28/91
-# $Id: MAKEDEV,v 1.3 1995/12/15 02:33:13 deraadt Exp $
+# $Id: MAKEDEV,v 1.4 1996/01/07 07:41:28 dm Exp $
#
# Device "make" file. Valid arguments:
# std standard devices
@@ -117,6 +117,11 @@ bpf*)
mk bpf$unit c 36 $unit 600
;;
+ipl)
+ mknod ipl c 72 0
+ chown root.wheel ipl
+ ;;
+
tun*)
mk tun$unit c 24 $unit 600
;;
diff --git a/etc/etc.vax/MAKEDEV b/etc/etc.vax/MAKEDEV
index 87208e4ef37..89a25f40e2b 100644
--- a/etc/etc.vax/MAKEDEV
+++ b/etc/etc.vax/MAKEDEV
@@ -323,6 +323,11 @@ pty*)
esac
;;
+ipl)
+ mknod ipl c 50 0
+ chown root.wheel ipl
+ ;;
+
np*)
class=`expr $i : 'np\(.*\)'`
case $class in
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]);
diff --git a/sys/arch/atari/atari/conf.c b/sys/arch/atari/atari/conf.c
index 6147c2b0798..aec8d98976f 100644
--- a/sys/arch/atari/atari/conf.c
+++ b/sys/arch/atari/atari/conf.c
@@ -159,6 +159,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 */
@@ -192,6 +205,7 @@ struct cdevsw cdevsw[] =
cdev_lkm_dummy(), /* 26 */
cdev_disk_init(NCCD,ccd), /* 27: concatenated disk driver */
cdev_bpftun_init(NTUN,tun), /* 28: network tunnel */
+ cdev_gen_ipf(NIPF,ipl), /* 29: IP filter log */
};
int nchrdev = sizeof(cdevsw) / sizeof(cdevsw[0]);
diff --git a/sys/arch/hp300/hp300/conf.c b/sys/arch/hp300/hp300/conf.c
index f4077d59ccd..8f169836ab1 100644
--- a/sys/arch/hp300/hp300/conf.c
+++ b/sys/arch/hp300/hp300/conf.c
@@ -151,6 +151,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 */
@@ -184,6 +197,7 @@ struct cdevsw cdevsw[] =
cdev_lkm_dummy(), /* 28 */
cdev_lkm_dummy(), /* 29 */
cdev_lkm_dummy(), /* 30 */
+ cdev_gen_ipf(NIPF,ipl), /* 31: IP filter log */
};
int nchrdev = sizeof(cdevsw) / sizeof(cdevsw[0]);
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]);
diff --git a/sys/arch/mvme68k/mvme68k/conf.c b/sys/arch/mvme68k/mvme68k/conf.c
index d29add6b706..f13dcbfd465 100644
--- a/sys/arch/mvme68k/mvme68k/conf.c
+++ b/sys/arch/mvme68k/mvme68k/conf.c
@@ -1,4 +1,4 @@
-/* $Id: conf.c,v 1.2 1995/11/07 08:50:16 deraadt Exp $ */
+/* $Id: conf.c,v 1.3 1996/01/07 07:41:05 dm Exp $ */
/*-
* Copyright (c) 1995 Theo de Raadt
@@ -195,6 +195,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 */
@@ -236,6 +249,7 @@ struct cdevsw cdevsw[] =
cdev_lkm_dummy(), /* 36 */
cdev_lkm_dummy(), /* 37 */
cdev_lkm_dummy(), /* 38 */
+ cdev_gen_ipf(NIPF,ipl), /* 39: IP filter */
};
int nchrdev = sizeof(cdevsw) / sizeof(cdevsw[0]);
diff --git a/sys/arch/pc532/pc532/conf.c b/sys/arch/pc532/pc532/conf.c
index 6898e20f64b..92e8396a845 100644
--- a/sys/arch/pc532/pc532/conf.c
+++ b/sys/arch/pc532/pc532/conf.c
@@ -108,6 +108,19 @@ cdev_decl(tun);
#include "lpt.h"
cdev_decl(lpt);
+/* 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 */
@@ -129,6 +142,7 @@ struct cdevsw cdevsw[] =
cdev_notdef(), /* 16 */
cdev_lpt_init(NLPT, lpt), /* 17: Centronics */
cdev_disk_init(NCCD,ccd), /* 18: concatenated disk driver */
+ cdev_gen_ipf(NIPF,ipl), /* 19: IP filter log */
};
int nchrdev = sizeof(cdevsw) / sizeof(cdevsw[0]);
diff --git a/sys/arch/pica/pica/conf.c b/sys/arch/pica/pica/conf.c
index 572b9e19465..34231534836 100644
--- a/sys/arch/pica/pica/conf.c
+++ b/sys/arch/pica/pica/conf.c
@@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* from: @(#)conf.c 8.2 (Berkeley) 11/14/93
- * $Id: conf.c,v 1.1 1995/10/18 10:39:17 deraadt Exp $
+ * $Id: conf.c,v 1.2 1996/01/07 07:41:08 dm Exp $
*/
#include <sys/param.h>
@@ -142,6 +142,19 @@ cdev_decl(sd);
cdev_decl(pc);
cdev_decl(pms);
+/* 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 */
@@ -177,7 +190,7 @@ struct cdevsw cdevsw[] =
cdev_notdef(), /* 28: */
cdev_notdef(), /* 29: */
cdev_notdef(), /* 30: */
- cdev_notdef(), /* 31: */
+ cdev_gen_ipf(NIPF,ipl), /* 31: IP filter log */
};
int nchrdev = sizeof (cdevsw) / sizeof (cdevsw[0]);
diff --git a/sys/arch/pmax/pmax/conf.c b/sys/arch/pmax/pmax/conf.c
index d163fb29002..09dee286401 100644
--- a/sys/arch/pmax/pmax/conf.c
+++ b/sys/arch/pmax/pmax/conf.c
@@ -157,6 +157,19 @@ cdev_decl(mfb);
dev_init(c,n,mmap) }
+/* 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 */
@@ -249,6 +262,7 @@ struct cdevsw cdevsw[] =
cdev_tty_init(NRASTERCONSOLE,rcons), /* 85: rcons pseudo-dev */
cdev_fbm_init(NFB,fb), /* 86: frame buffer pseudo-device */
cdev_disk_init(NCCD,ccd), /* 87: concatenated disk driver */
+ cdev_gen_ipf(NIPF,ipl), /* 88: IP filter log */
};
int nchrdev = sizeof(cdevsw) / sizeof(cdevsw[0]);
diff --git a/sys/arch/sparc/sparc/conf.c b/sys/arch/sparc/sparc/conf.c
index c7e950e0fcf..5d3b081152a 100644
--- a/sys/arch/sparc/sparc/conf.c
+++ b/sys/arch/sparc/sparc/conf.c
@@ -182,6 +182,19 @@ cdev_decl(svr4_net);
#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 */
@@ -249,7 +262,7 @@ struct cdevsw cdevsw[] =
cdev_notdef(), /* 56 */
cdev_notdef(), /* 57 */
cdev_disk_init(NCD,cd), /* 58 SCSI CD-ROM */
- cdev_notdef(), /* 59 */
+ cdev_gen_ipf(NIPF,ipl), /* 59 */
cdev_notdef(), /* 60 */
cdev_notdef(), /* 61 */
cdev_notdef(), /* 62 */
diff --git a/sys/arch/sun3/sun3/conf.c b/sys/arch/sun3/sun3/conf.c
index aa6142019f5..2a1c1d87444 100644
--- a/sys/arch/sun3/sun3/conf.c
+++ b/sys/arch/sun3/sun3/conf.c
@@ -165,6 +165,19 @@ cdev_decl(bpf);
cdev_decl(tun);
+/* 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 */
@@ -239,6 +252,7 @@ struct cdevsw cdevsw[] =
cdev_notdef(), /* 69: /dev/audio */
cdev_notdef(), /* 70: open prom */
cdev_notdef(), /* 71: (sg?) */
+ cdev_gen_ipf(NIPF,ipl), /* 72: IP filter log */
};
int nchrdev = sizeof(cdevsw) / sizeof(cdevsw[0]);
diff --git a/sys/arch/vax/vax/conf.c b/sys/arch/vax/vax/conf.c
index 483a5848457..2dbf9e5a0d3 100644
--- a/sys/arch/vax/vax/conf.c
+++ b/sys/arch/vax/vax/conf.c
@@ -308,6 +308,19 @@ cdev_decl(qd);
#endif
cdev_decl(ii);
+/* 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 */
@@ -360,7 +373,7 @@ struct cdevsw cdevsw[] =
cdev_notdef(), /* 47 */
cdev_notdef(), /* 48 */
cdev_notdef(), /* 49 */
- cdev_notdef(), /* 50 */
+ cdev_gen_ipf(NIPF,ipl), /* 50: IP filter log */
cdev_cnstore_init(NCRX,crx), /* 51: Console RX50 at 8200 */
cdev_disk_init(NKDB,kdb), /* 52: KDB50/RA?? */
cdev_fd_init(1,fd), /* 53: file descriptor pseudo-device */