summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorJason Downs <downsj@cvs.openbsd.org>1997-01-18 08:17:47 +0000
committerJason Downs <downsj@cvs.openbsd.org>1997-01-18 08:17:47 +0000
commitcf0296e519b7e101c2d0f1329ab8e3b5f853b393 (patch)
tree158fa3bee182336a38acd44c62dda7187bbb7d09 /sys/arch
parentddeb8ef8f3d2dd35433d724c2c3ededf1ac6348e (diff)
move random, add ipl.
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/hp300/hp300/conf.c13
1 files changed, 11 insertions, 2 deletions
diff --git a/sys/arch/hp300/hp300/conf.c b/sys/arch/hp300/hp300/conf.c
index 4729c304fd4..735f25e2b10 100644
--- a/sys/arch/hp300/hp300/conf.c
+++ b/sys/arch/hp300/hp300/conf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: conf.c,v 1.9 1997/01/12 15:13:13 downsj Exp $ */
+/* $OpenBSD: conf.c,v 1.10 1997/01/18 08:17:46 downsj Exp $ */
/* $NetBSD: conf.c,v 1.34 1996/12/17 08:41:20 thorpej Exp $ */
/*-
@@ -140,6 +140,13 @@ cdev_decl(bpf);
cdev_decl(tun);
cdev_decl(random);
+cdev_decl(ipl);
+#ifdef IPFILTER
+#define NIPF 1
+#else
+#define NIPF 0
+#endif
+
struct cdevsw cdevsw[] =
{
cdev_cn_init(1,cn), /* 0: virtual console */
@@ -167,13 +174,15 @@ struct cdevsw cdevsw[] =
cdev_bpftun_init(NBPFILTER,bpf),/* 22: Berkeley packet filter */
cdev_bpftun_init(NTUN,tun), /* 23: network tunnel */
cdev_lkm_init(NLKM,lkm), /* 24: loadable module driver */
- cdev_random_init(1,random), /* 25: random generator */
+ cdev_lkm_dummy(), /* 25 */
cdev_lkm_dummy(), /* 26 */
cdev_lkm_dummy(), /* 27 */
cdev_lkm_dummy(), /* 28 */
cdev_lkm_dummy(), /* 29 */
cdev_lkm_dummy(), /* 30 */
cdev_lkm_dummy(), /* 31 */
+ cdev_random_init(1,random), /* 32: random generator */
+ cdev_gen_ipf(NIPF,ipl), /* 33: ip filtering */
};
int nchrdev = sizeof(cdevsw) / sizeof(cdevsw[0]);