Module Name: src Committed By: elad Date: Mon Oct 5 03:44:01 UTC 2009
Modified Files: src/sys/dist/ipf/netinet: ip_fil_netbsd.c Log Message: Attach the listener in the correct "attach" function. Should fix issues reported by Anon Ymous. To generate a diff of this commit: cvs rdiff -u -r1.52 -r1.53 src/sys/dist/ipf/netinet/ip_fil_netbsd.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/dist/ipf/netinet/ip_fil_netbsd.c diff -u src/sys/dist/ipf/netinet/ip_fil_netbsd.c:1.52 src/sys/dist/ipf/netinet/ip_fil_netbsd.c:1.53 --- src/sys/dist/ipf/netinet/ip_fil_netbsd.c:1.52 Sat Oct 3 00:37:02 2009 +++ src/sys/dist/ipf/netinet/ip_fil_netbsd.c Mon Oct 5 03:44:01 2009 @@ -1,4 +1,4 @@ -/* $NetBSD: ip_fil_netbsd.c,v 1.52 2009/10/03 00:37:02 elad Exp $ */ +/* $NetBSD: ip_fil_netbsd.c,v 1.53 2009/10/05 03:44:01 elad Exp $ */ /* * Copyright (C) 1993-2003 by Darren Reed. @@ -8,7 +8,7 @@ #if !defined(lint) #if defined(__NetBSD__) #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: ip_fil_netbsd.c,v 1.52 2009/10/03 00:37:02 elad Exp $"); +__KERNEL_RCSID(0, "$NetBSD: ip_fil_netbsd.c,v 1.53 2009/10/05 03:44:01 elad Exp $"); #else static const char sccsid[] = "@(#)ip_fil.c 2.41 6/5/96 (C) 1993-2000 Darren Reed"; static const char rcsid[] = "@(#)Id: ip_fil_netbsd.c,v 2.55.2.66 2009/05/17 17:45:26 darrenr Exp"; @@ -340,6 +340,12 @@ RWLOCK_INIT(&ipf_mutex, "ipf filter rwlock"); RWLOCK_INIT(&ipf_frcache, "ipf cache rwlock"); # endif + +#if (__NetBSD_Version__ >= 599002000) + ipf_listener = kauth_listen_scope(KAUTH_SCOPE_NETWORK, + ipf_listener_cb, NULL); +#endif + } #endif @@ -481,11 +487,6 @@ timeout(fr_slowtimer, NULL, (hz / IPF_HZ_DIVIDE) * IPF_HZ_MULT); #endif -#if (__NetBSD_Version__ >= 599002000) - ipf_listener = kauth_listen_scope(KAUTH_SCOPE_NETWORK, - ipf_listener_cb, NULL); -#endif - return 0; #if __NetBSD_Version__ >= 105110000