From ed287873d5663dbaa879f3a992cfe06b5fbae961 Mon Sep 17 00:00:00 2001 From: Kjell Wooding Date: Mon, 25 Jun 2001 03:20:25 +0000 Subject: add pf device on all architectures. fix my previously bogus MAKEDEVs. If you used pf on a non-i386. the major device number has changed, and you'll need to recreate /dev/pf ok theo --- sys/arch/mvme88k/mvme88k/conf.c | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'sys/arch/mvme88k') diff --git a/sys/arch/mvme88k/mvme88k/conf.c b/sys/arch/mvme88k/mvme88k/conf.c index 70d07c88dda..60bd325e78f 100644 --- a/sys/arch/mvme88k/mvme88k/conf.c +++ b/sys/arch/mvme88k/mvme88k/conf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: conf.c,v 1.15 2001/03/12 22:57:30 miod Exp $ */ +/* $OpenBSD: conf.c,v 1.16 2001/06/25 03:20:09 kjell Exp $ */ /*- * Copyright (c) 1991 The Regents of the University of California. @@ -195,11 +195,9 @@ cdev_decl(ksyms); #define NLKM 0 #endif -#ifdef IPFILTER -#define NIPF 1 -#else -#define NIPF 0 -#endif + +#include "pf.h" +cdev_decl(pf); cdev_decl(lkm); @@ -258,7 +256,7 @@ struct cdevsw cdevsw[] = cdev_lkm_dummy(), /* 36 */ cdev_lkm_dummy(), /* 37 */ cdev_lkm_dummy(), /* 38 */ - cdev_gen_ipf(NIPF,ipl), /* 39: IP filter */ + cdev_pf_init(NPF,pf), /* 39: packet filter */ cdev_random_init(1,random), /* 40: random data source */ cdev_notdef(), /* 41 */ cdev_notdef(), /* 42 */ -- cgit v1.2.3