From: kstailey Date: Tue, 4 Feb 1997 23:25:03 +0000 (+0000) Subject: ipfiltering X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=63cf0679f5763d96362233189911cb79e4dd8cf2;p=openbsd ipfiltering --- diff --git a/sys/arch/sun3/include/conf.h b/sys/arch/sun3/include/conf.h index 0e9edaf8da1..82d02b439ae 100644 --- a/sys/arch/sun3/include/conf.h +++ b/sys/arch/sun3/include/conf.h @@ -1,4 +1,4 @@ -/* $OpenBSD: conf.h,v 1.5 1997/01/16 04:04:05 kstailey Exp $ */ +/* $OpenBSD: conf.h,v 1.6 1997/02/04 23:25:04 kstailey Exp $ */ /*- * Copyright (c) 1996 Kenneth Stailey. All rights reserved. @@ -74,3 +74,12 @@ cdev_decl(bw2); cdev_decl(cg2); #include "cgfour.h" cdev_decl(cg4); + +/* IP packet filtering */ +/* open, close, read, ioctl */ +cdev_decl(ipl); +#ifdef IPFILTER +#define NIPF 1 +#else +#define NIPF 0 +#endif diff --git a/sys/arch/sun3/sun3/conf.c b/sys/arch/sun3/sun3/conf.c index cfc11ff90ea..402a7c31805 100644 --- a/sys/arch/sun3/sun3/conf.c +++ b/sys/arch/sun3/sun3/conf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: conf.c,v 1.18 1997/01/16 04:04:14 kstailey Exp $ */ +/* $OpenBSD: conf.c,v 1.19 1997/02/04 23:25:03 kstailey Exp $ */ /* $NetBSD: conf.c,v 1.51 1996/11/04 16:16:09 gwr Exp $ */ /*- @@ -172,6 +172,7 @@ struct cdevsw cdevsw[] = cdev_random_init(1,random), /* 72: randomness source */ cdev_uk_init(NUK,uk), /* 73: unknown SCSI */ cdev_ss_init(NSS,ss), /* 74: SCSI scanner */ + cdev_gen_ipf(NIPF,ipl), /* 75: ip filter log */ }; int nchrdev = sizeof(cdevsw) / sizeof(cdevsw[0]);