Subject: Re: Compile PF in kernel on Cobalt is no go on 3.0
To: Daniel Ouellet <daniel@presscom.net>
From: Hubert Feyrer <hubert@feyrer.de>
List: port-cobalt
Date: 01/06/2006 21:20:16
On Fri, 6 Jan 2006, Daniel Ouellet wrote:
>> #ifdef PFIL_HOOKS
>> struct pfil_head if_pfil; /* packet filtering hook for interfaces
>> */
>> #endif
>
> That was it! I didn't uncommented it, I simply didn't put it in, in the
> kernel configuration.
>
> #options PFIL_HOOKS # pfil(9) packet filter hooks
>
> Sorry for waisting your time.
You didn't - I'd call this a bug.
For a quick workaround, apply the patch below. 8-)
- Hubert
Index: pf.4
===================================================================
RCS file: /cvsroot/src/dist/pf/share/man/man4/pf.4,v
retrieving revision 1.3
diff -u -r1.3 pf.4
--- pf.4 1 Jul 2005 12:43:50 -0000 1.3
+++ pf.4 6 Jan 2006 20:15:43 -0000
@@ -27,13 +27,14 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.Dd June 24, 2001
+.Dd January 6, 2006
.Dt PF 4
.Os
.Sh NAME
.Nm pf
.Nd packet filter
.Sh SYNOPSIS
+.Cd "options PFIL_HOOKS"
.Cd "pseudo-device pf"
.Sh DESCRIPTION
Packet filtering takes place in the kernel.