From owner-freebsd-pf@FreeBSD.ORG Fri Dec 10 01:50:44 2004 Return-Path: Delivered-To: freebsd-pf@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4579616A4CE for ; Fri, 10 Dec 2004 01:50:44 +0000 (GMT) Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.189]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7D85043D53 for ; Fri, 10 Dec 2004 01:50:43 +0000 (GMT) (envelope-from max@love2party.net) Received: from [212.227.126.161] (helo=mrelayng.kundenserver.de) by moutng.kundenserver.de with esmtp (Exim 3.35 #1) id 1CcZve-0003IP-00; Fri, 10 Dec 2004 02:50:42 +0100 Received: from [217.83.2.154] (helo=donor.laier.local) by mrelayng.kundenserver.de with asmtp (TLSv1:RC4-MD5:128) (Exim 3.35 #1) id 1CcZve-0007eu-00; Fri, 10 Dec 2004 02:50:42 +0100 From: Max Laier To: freebsd-pf@freebsd.org Date: Fri, 10 Dec 2004 02:51:20 +0100 User-Agent: KMail/1.7.1 References: <20041210013739.08AA523CE8@ws5-3.us4.outblaze.com> In-Reply-To: <20041210013739.08AA523CE8@ws5-3.us4.outblaze.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1990793.YIPlogb4pN"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200412100251.28159.max@love2party.net> X-Provags-ID: kundenserver.de abuse@kundenserver.de auth:61c499deaeeba3ba5be80f48ecc83056 cc: Jayel Villamin Subject: Re: PF and custom kernel X-BeenThere: freebsd-pf@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical discussion and general questions about packet filter (pf) List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Dec 2004 01:50:44 -0000 --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" > To: "Jayel Villamin" > 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 wrote: > > > On Thu, 09 Dec 2004 19:11:17 +0900, Jayel Villamin > > > > > > 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--