Date: Fri, 10 Dec 2004 02:51:20 +0100 From: Max Laier <max@love2party.net> To: freebsd-pf@freebsd.org Cc: Jayel Villamin <jarthel@operamail.com> Subject: Re: PF and custom kernel Message-ID: <200412100251.28159.max@love2party.net> In-Reply-To: <20041210013739.08AA523CE8@ws5-3.us4.outblaze.com> References: <20041210013739.08AA523CE8@ws5-3.us4.outblaze.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--nextPart1990793.YIPlogb4pN Content-Type: multipart/mixed; boundary="Boundary-01=_aEQuBIqyZ58TYGk" Content-Transfer-Encoding: 7bit Content-Disposition: inline --Boundary-01=_aEQuBIqyZ58TYGk Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Friday 10 December 2004 02:37, Jayel Villamin wrote: > struct ifnet *ifp =3D &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.h= tm >l), BPF is not required for pf. Quote from that link: "device pflog enables the optional pflog(4) pseudo=20 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@gmail.com> > To: "Jayel Villamin" <jarthel@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@gmail.com> wrote: > > > On Thu, 09 Dec 2004 19:11:17 +0900, Jayel Villamin > > > > > > <jarthel@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 =3D &sc->sc_if;". You can do this yourself or upgrade to t= he > > > 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@freebsd.org mailing list > > > > http://lists.freebsd.org/mailman/listinfo/freebsd-pf > > > > To unsubscribe, send any mail to "freebsd-pf-unsubscribe@freebsd.or= g" > > > > > > -- > > > 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. =2D-=20 /"\ Best regards, | mlaier@freebsd.org \ / Max Laier | ICQ #67774661 X http://pf4freebsd.love2party.net/ | mlaier@EFnet / \ ASCII Ribbon Campaign | Against HTML Mail and News --Boundary-01=_aEQuBIqyZ58TYGk Content-Type: text/x-diff; charset="iso-8859-1"; name="pfsync_no_bpf.diff" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="pfsync_no_bpf.diff" Index: if_pfsync.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /usr/store/mlaier/fcvs/src/sys/contrib/pf/net/if_pfsync.c,v retrieving revision 1.11.2.1 diff -u -r1.11.2.1 if_pfsync.c =2D-- if_pfsync.c 20 Sep 2004 15:25:57 -0000 1.11.2.1 +++ if_pfsync.c 10 Dec 2004 01:45:44 -0000 @@ -1529,7 +1529,9 @@ pfsync_sendout(sc) struct pfsync_softc *sc; { +#if NBPFILTER > 0 struct ifnet *ifp =3D &sc->sc_if; +#endif struct mbuf *m; =20 #ifdef __FreeBSD__ --Boundary-01=_aEQuBIqyZ58TYGk-- --nextPart1990793.YIPlogb4pN Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQBBuQEgXyyEoT62BG0RAqZyAJ9IxAfMNbFSLMZhOHvkfpxqkXWexACcD+eF QHGfciNEVyQnpnhqF8ifYCM= =l7BV -----END PGP SIGNATURE----- --nextPart1990793.YIPlogb4pN--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200412100251.28159.max>