From af06511a5038708fd0e85d887a732b122286153d Mon Sep 17 00:00:00 2001 From: downsj Date: Sat, 18 Jan 1997 08:17:46 +0000 Subject: [PATCH] move random, add ipl. --- sys/arch/hp300/hp300/conf.c | 13 +++++++++++-- 1 file 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]); -- 2.20.1