diff options
author | darrenr <darrenr@FreeBSD.org> | 2000-05-24 02:55:58 +0000 |
---|---|---|
committer | darrenr <darrenr@FreeBSD.org> | 2000-05-24 02:55:58 +0000 |
commit | 555b5d352bf66de91310e86c17a4c889e3cf6d57 (patch) | |
tree | 843267cee6cc56a96a38be5409be12cbf6c409d7 /sys/netinet/mlfk_ipl.c | |
parent | 1951f11539dc9602c6a6ded0ed1b96c4d82df48d (diff) | |
download | FreeBSD-src-555b5d352bf66de91310e86c17a4c889e3cf6d57.zip FreeBSD-src-555b5d352bf66de91310e86c17a4c889e3cf6d57.tar.gz |
Import IP Filter 3.4.4 into the kernel
Diffstat (limited to 'sys/netinet/mlfk_ipl.c')
-rw-r--r-- | sys/netinet/mlfk_ipl.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/sys/netinet/mlfk_ipl.c b/sys/netinet/mlfk_ipl.c index 28e7c5d..4412960 100644 --- a/sys/netinet/mlfk_ipl.c +++ b/sys/netinet/mlfk_ipl.c @@ -23,9 +23,10 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $FreeBSD$ + * $Id: mlfk_ipl.c,v 2.1.2.1 2000/04/26 12:17:24 darrenr Exp $ */ + #include <sys/param.h> #include <sys/systm.h> #include <sys/kernel.h> @@ -73,8 +74,8 @@ SYSCTL_INT(_net_inet_ipf, OID_AUTO, fr_ipfrttl, CTLFLAG_RW, &fr_ipfrttl, 0, ""); SYSCTL_INT(_net_inet_ipf, OID_AUTO, ipl_unreach, CTLFLAG_RW, &ipl_unreach, 0, ""); -SYSCTL_INT(_net_inet_ipf, OID_AUTO, ipl_inited, CTLFLAG_RD, - &ipl_inited, 0, ""); +SYSCTL_INT(_net_inet_ipf, OID_AUTO, fr_running, CTLFLAG_RD, + &fr_running, 0, ""); SYSCTL_INT(_net_inet_ipf, OID_AUTO, fr_authsize, CTLFLAG_RD, &fr_authsize, 0, ""); SYSCTL_INT(_net_inet_ipf, OID_AUTO, fr_authused, CTLFLAG_RD, @@ -108,7 +109,10 @@ ipfilter_modevent(module_t mod, int type, void *unused) switch (type) { case MOD_LOAD : + error = iplattach(); + if (error) + break; c = NULL; for(i=strlen(IPL_NAME); i>0; i--) @@ -160,7 +164,6 @@ ipfilter_modevent(module_t mod, int type, void *unused) destroy_dev(ipf_devs[IPL_LOGNAT]); destroy_dev(ipf_devs[IPL_LOGSTATE]); destroy_dev(ipf_devs[IPL_LOGAUTH]); - cdevsw_remove(&ipl_cdevsw); error = ipldetach(); break; default: |