aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/ipfilter/ip_state.c
diff options
context:
space:
mode:
authorPeter Wemm <peter@FreeBSD.org>1997-03-02 15:40:21 +0000
committerPeter Wemm <peter@FreeBSD.org>1997-03-02 15:40:21 +0000
commitb182e52bf6b074c57140cca8cf3a1c812cb195b1 (patch)
tree0c47f6260ed69e9661116832151ae20f9162b28c /contrib/ipfilter/ip_state.c
parentb4ebec5bf8828aa1cc3f5a1a50faf812b5b6ba48 (diff)
downloadsrc-b182e52bf6b074c57140cca8cf3a1c812cb195b1.tar.gz
src-b182e52bf6b074c57140cca8cf3a1c812cb195b1.zip
reimport ipfilter v3.1.8 to get it onto the vendor branch again.vendor/ipfilter/3.1.8
Notes
Notes: svn path=/vendor/ipfilter/dist/; revision=23279 svn path=/vendor/ipfilter/3.1.8/; revision=23281; tag=vendor/ipfilter/3.1.8
Diffstat (limited to 'contrib/ipfilter/ip_state.c')
-rw-r--r--contrib/ipfilter/ip_state.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/contrib/ipfilter/ip_state.c b/contrib/ipfilter/ip_state.c
index 62a49aa250ed..2643ce95a633 100644
--- a/contrib/ipfilter/ip_state.c
+++ b/contrib/ipfilter/ip_state.c
@@ -7,7 +7,7 @@
*/
#if !defined(lint) && defined(LIBC_SCCS)
static char sccsid[] = "@(#)ip_state.c 1.8 6/5/96 (C) 1993-1995 Darren Reed";
-static char rcsid[] = "$Id: ip_state.c,v 2.0.1.2 1997/01/09 15:22:45 darrenr Exp $";
+static char rcsid[] = "$Id: ip_state.c,v 2.0.1.3 1997/02/16 06:18:36 darrenr Exp $";
#endif
#if !defined(_KERNEL) && !defined(KERNEL)
@@ -411,13 +411,16 @@ void fr_stateunload()
{
register int i;
register ipstate_t *is, **isp;
+ int s;
MUTEX_ENTER(&ipf_state);
+ SPLNET(s);
for (i = 0; i < IPSTATE_SIZE; i++)
for (isp = &ips_table[i]; (is = *isp); ) {
*isp = is->is_next;
KFREE(is);
}
+ SPLX(s);
MUTEX_EXIT(&ipf_state);
}
@@ -430,8 +433,10 @@ void fr_timeoutstate()
{
register int i;
register ipstate_t *is, **isp;
+ int s;
MUTEX_ENTER(&ipf_state);
+ SPLNET(s);
for (i = 0; i < IPSTATE_SIZE; i++)
for (isp = &ips_table[i]; (is = *isp); )
if (is->is_age && !--is->is_age) {
@@ -444,6 +449,7 @@ void fr_timeoutstate()
ips_num--;
} else
isp = &is->is_next;
+ SPLX(s);
MUTEX_EXIT(&ipf_state);
}