NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: kern/38456
The following reply was made to PR kern/38456; it has been noted by GNATS.
From: darrenr%NetBSD.org@localhost (Darren Reed)
To: ws%tools.de@localhost
Cc: gnats-bugs%NetBSD.org@localhost
Subject: Re: kern/38456
Date: Sat, 1 Nov 2008 23:39:19 +0000 (UTC)
I think this patch should fix the problem you are trying to solve
in iplopen.
Please test and verify this change, without your patch to iplopen.
thanks,
Darren
Index: ip_fil_netbsd.c
===================================================================
RCS file: /cvsroot/ipfilter/ipfilter/ip_fil_netbsd.c,v
retrieving revision 1.1.3.1.2.20
diff -c -r1.1.3.1.2.20 ip_fil_netbsd.c
*** ip_fil_netbsd.c 25 Oct 2008 22:48:25 -0000 1.1.3.1.2.20
--- ip_fil_netbsd.c 1 Nov 2008 23:36:44 -0000
***************
*** 298,314 ****
ipfilterattach(count)
int count;
{
! # if 0
! if (ipfattach() != 0)
! printf("IP Filter failed to attach\n");
# endif
}
#endif
! int ipfattach()
{
! int s;
#if (__NetBSD_Version__ >= 499005500)
int i;
#endif
--- 307,324 ----
ipfilterattach(count)
int count;
{
! # ifdef USE_MUTEXES
! RWLOCK_INIT(&ipf_global, "ipf filter load/unload mutex");
! RWLOCK_INIT(&ipf_mutex, "ipf filter rwlock");
! RWLOCK_INIT(&ipf_frcache, "ipf cache rwlock");
# endif
}
#endif
! int ipfattach(void)
{
! SPL_INT(s);
#if (__NetBSD_Version__ >= 499005500)
int i;
#endif
Home |
Main Index |
Thread Index |
Old Index