diff options
author | Kjell Wooding <kjell@cvs.openbsd.org> | 2001-06-24 19:49:00 +0000 |
---|---|---|
committer | Kjell Wooding <kjell@cvs.openbsd.org> | 2001-06-24 19:49:00 +0000 |
commit | 6b7e146b5046259ba9faa9444114b5c4c18070fe (patch) | |
tree | 6769ac6a79b4a0c4a79698115a952bc6f6a41909 /sys/arch/i386 | |
parent | 4d339188d7d3d36098d08968a138bb031f00562d (diff) |
Initial import of pf, an all-new ipf-compatable packet filter.
Insane amounts of work done my dhartmei. Great work!
Diffstat (limited to 'sys/arch/i386')
-rw-r--r-- | sys/arch/i386/conf/GENERIC | 4 | ||||
-rw-r--r-- | sys/arch/i386/i386/conf.c | 6 |
2 files changed, 8 insertions, 2 deletions
diff --git a/sys/arch/i386/conf/GENERIC b/sys/arch/i386/conf/GENERIC index 7cb2a164cd3..dbbc538fc35 100644 --- a/sys/arch/i386/conf/GENERIC +++ b/sys/arch/i386/conf/GENERIC @@ -1,4 +1,4 @@ -# $OpenBSD: GENERIC,v 1.262 2001/06/07 04:48:49 millert Exp $ +# $OpenBSD: GENERIC,v 1.263 2001/06/24 19:48:56 kjell Exp $ # $NetBSD: GENERIC,v 1.48 1996/05/20 18:17:23 mrg Exp $ # # GENERIC -- everything that's currently supported @@ -440,5 +440,7 @@ pseudo-device sequencer 1 #pseudo-device raid 4 # RAIDframe disk driver # mouse & keyboard multiplexor pseudo-devices +pseudo-device pf 1 # packetfilter + pseudo-device wsmux 2 pseudo-device crypto 1 diff --git a/sys/arch/i386/i386/conf.c b/sys/arch/i386/i386/conf.c index bf4997c2175..21d13c44813 100644 --- a/sys/arch/i386/i386/conf.c +++ b/sys/arch/i386/i386/conf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: conf.c,v 1.72 2001/06/23 03:47:16 mickey Exp $ */ +/* $OpenBSD: conf.c,v 1.73 2001/06/24 19:48:57 kjell Exp $ */ /* $NetBSD: conf.c,v 1.75 1996/05/03 19:40:20 christos Exp $ */ /* @@ -235,6 +235,9 @@ cdev_decl(wsmux); cdev_decl(pci); #endif +#include "pf.h" +cdev_decl(pf); + struct cdevsw cdevsw[] = { cdev_cn_init(1,cn), /* 0: virtual console */ @@ -338,6 +341,7 @@ struct cdevsw cdevsw[] = #else cdev_notdef(), #endif + cdev_pf_init(NPF,pf), /* 73: packet filter */ }; int nchrdev = sizeof(cdevsw) / sizeof(cdevsw[0]); |