PF and custom kernel

Max Laier max at love2party.net
Thu Dec 9 17:50:44 PST 2004


On Friday 10 December 2004 02:37, Jayel Villamin wrote:
> struct ifnet *ifp = &sc->sc_if; -->> I also have this in my if_pfsync.c so
> I do not that is the problem. I would try bpf. maybe that'll work.

Diff attached.

> But according to the pf page in the handbook
> (http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/firewalls-pf.htm
>l), BPF is not required for pf.

Quote from that link: "device pflog enables the optional pflog(4) pseudo 
network device which can be used to log traffic to a bpf(4) descriptor"

pflog is utterly useless without bpf.

> ----- Original Message -----
> From: "Vlad GALU" <vladgalu at gmail.com>
> To: "Jayel Villamin" <jarthel at operamail.com>
> Subject: Re: PF and custom kernel
> Date: Thu, 9 Dec 2004 12:40:27 +0200
>
> > On Thu, 9 Dec 2004 12:37:19 +0200, Vlad GALU <vladgalu at gmail.com> wrote:
> > > On Thu, 09 Dec 2004 19:11:17 +0900, Jayel Villamin
> > >
> > > <jarthel at operamail.com> wrote:
> > > > here's a gist of the error message
> > > > ------------
> > > >
> > > > if_pfsync.c: In function 'pfsync_sendout':
> > > > if_pfsync.c:1532: unused variable 'ifp'
> > >
> > >     gcc is told to consider each warning as an error.  In my version
> > > of if_pfsync.c I notice that the pointer is now initialized: "struct
> > > ifnet *ifp = &sc->sc_if;". You can do this yourself or upgrade to the
> > > last version of the file.
> >
> >      Or simply add support for bpf to your kernel :)
> >
> > > > -------------
> > > >
> > > >
> > > >
> > > > Thanks
> > > > --
> > > > _____________________________________________________________
> > > > Web-based SMS services available at http://www.operamail.com.
> > > > From your mailbox to local or overseas cell phones.
> > > >
> > > > Powered by Outblaze
> > > > _______________________________________________
> > > > freebsd-pf at freebsd.org mailing list
> > > > http://lists.freebsd.org/mailman/listinfo/freebsd-pf
> > > > To unsubscribe, send any mail to "freebsd-pf-unsubscribe at freebsd.org"
> > >
> > > --
> > > If it's there, and you can see it, it's real.
> > > If it's not there, and you can see it, it's virtual.
> > > If it's there, and you can't see it, it's transparent.
> > > If it's not there, and you can't see it, you erased it.
> >
> > --
> > If it's there, and you can see it, it's real.
> > If it's not there, and you can see it, it's virtual.
> > If it's there, and you can't see it, it's transparent.
> > If it's not there, and you can't see it, you erased it.

-- 
/"\  Best regards,                      | mlaier at freebsd.org
\ /  Max Laier                          | ICQ #67774661
 X   http://pf4freebsd.love2party.net/  | mlaier at EFnet
/ \  ASCII Ribbon Campaign              | Against HTML Mail and News
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pfsync_no_bpf.diff
Type: text/x-diff
Size: 485 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-pf/attachments/20041210/d397f403/pfsync_no_bpf.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-pf/attachments/20041210/d397f403/attachment.bin


More information about the freebsd-pf mailing list