From owner-freebsd-pf@FreeBSD.ORG Fri Aug 29 03:48:37 2014 Return-Path: Delivered-To: freebsd-pf@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 49015491 for ; Fri, 29 Aug 2014 03:48:37 +0000 (UTC) Received: from colorhost.siccegge.de (colorhost.siccegge.de [IPv6:2a00:f48:1026:0:f1f7:0:cf4a:fab8]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 067AA1B94 for ; Fri, 29 Aug 2014 03:48:36 +0000 (UTC) Received: from cl-3369.cgn-01.de.sixxs.net ([2001:4dd0:ff00:d28::2] helo=mitoraj.siccegge.de) by colorhost.siccegge.de with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from ) id 1XNDAf-00010a-AU; Fri, 29 Aug 2014 03:48:27 +0000 From: Christoph Egger To: 711247@bugs.debian.org, libpcap@packages.debian.org, freebsd-pf@freebsd.org, debian-bsd@lists.debian.org Organization: Privat Date: Thu, 28 Aug 2014 20:48:12 -0700 Message-ID: <87iolcvtvn.fsf@mitoraj.siccegge.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/kfreebsd) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-SA-Exim-Connect-IP: 2001:4dd0:ff00:d28::2 X-SA-Exim-Mail-From: christoph@christoph-egger.org X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on colorhost.siccegge.de X-Spam-Level: X-Spam-Status: No, score=-1.0 required=9.0 tests=ALL_TRUSTED autolearn=ham version=3.3.2 Subject: pflogd needing pcap-int.h X-SA-Exim-Version: 4.2.1 (built Mon, 26 Dec 2011 16:24:06 +0000) X-SA-Exim-Scanned: Yes (on colorhost.siccegge.de) X-BeenThere: freebsd-pf@freebsd.org X-Mailman-Version: 2.1.18-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, 29 Aug 2014 03:48:37 -0000 --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi! I'm trying to build pflogd for debian. Unfortunately it depends on pcap-int.h which is kind of awkward for some reasons: - It could add incompatibility wiith changing pcap versions -- potentially unnoticed - I don't really fancy having the pcap-dev package expose internal headers and using a copy sounds even worse in time of up-to-dateness - the pcap-int header somewhat depends on the config.h which we'd need to keep available Below are the error messages when compiling with an empty pcap-int.h do you see a chance of fullfilling pflogd's need with "official" API? Any ideas how a clean solution would look like? Thanks Christoph =2D-=20 /home/christoph/debian/freebsd-utils/src/sbin/pflogd/../../contrib/pf/pflog= d/pflogd.c: In function =E2=80=98try_reset_dump=E2=80=99: /home/christoph/debian/freebsd-utils/src/sbin/pflogd/../../contrib/pf/pflog= d/pflogd.c:379:23: error: dereferencing pointer to incomplete type hdr.thiszone =3D hpcap->tzoff; ^ /home/christoph/debian/freebsd-utils/src/sbin/pflogd/../../contrib/pf/pflog= d/pflogd.c:380:22: error: dereferencing pointer to incomplete type hdr.snaplen =3D hpcap->snapshot; ^ /home/christoph/debian/freebsd-utils/src/sbin/pflogd/../../contrib/pf/pflog= d/pflogd.c:382:23: error: dereferencing pointer to incomplete type hdr.linktype =3D hpcap->linktype; ^ /home/christoph/debian/freebsd-utils/src/sbin/pflogd/../../contrib/pf/pflog= d/pflogd.c: In function =E2=80=98scan_dump=E2=80=99: /home/christoph/debian/freebsd-utils/src/sbin/pflogd/../../contrib/pf/pflog= d/pflogd.c:411:24: error: storage size of =E2=80=98ph=E2=80=99 isn=E2=80=99= t known struct pcap_sf_pkthdr ph; ^ /home/christoph/debian/freebsd-utils/src/sbin/pflogd/../../contrib/pf/pflog= d/pflogd.c:435:27: error: dereferencing pointer to incomplete type hdr.linktype !=3D hpcap->linktype || ^ /home/christoph/debian/freebsd-utils/src/sbin/pflogd/../../contrib/pf/pflog= d/pflogd.c:411:24: warning: unused variable =E2=80=98ph=E2=80=99 [-Wunused-= variable] struct pcap_sf_pkthdr ph; ^ /home/christoph/debian/freebsd-utils/src/sbin/pflogd/../../contrib/pf/pflog= d/pflogd.c: In function =E2=80=98dump_packet_nobuf=E2=80=99: /home/christoph/debian/freebsd-utils/src/sbin/pflogd/../../contrib/pf/pflog= d/pflogd.c:484:24: error: storage size of =E2=80=98sh=E2=80=99 isn=E2=80=99= t known struct pcap_sf_pkthdr sh; ^ /home/christoph/debian/freebsd-utils/src/sbin/pflogd/../../contrib/pf/pflog= d/pflogd.c:484:24: warning: unused variable =E2=80=98sh=E2=80=99 [-Wunused-= variable] /home/christoph/debian/freebsd-utils/src/sbin/pflogd/../../contrib/pf/pflog= d/pflogd.c: In function =E2=80=98dump_packet=E2=80=99: /home/christoph/debian/freebsd-utils/src/sbin/pflogd/../../contrib/pf/pflog= d/pflogd.c:581:24: error: storage size of =E2=80=98sh=E2=80=99 isn=E2=80=99= t known struct pcap_sf_pkthdr sh; ^ /home/christoph/debian/freebsd-utils/src/sbin/pflogd/../../contrib/pf/pflog= d/pflogd.c:581:24: warning: unused variable =E2=80=98sh=E2=80=99 [-Wunused-= variable] --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCAAGBQJT//f8AAoJEKv/7bJACMb5VHoP/j6anfFATwY6opiDCxHzqpSM 9W4iPt6/f+ZsvR4MVHb9F+NuD07+hsDcp90EnVH6Ym+azx1RJ+G1yIXrmhIPNsol oKHKM8Go5An9jPRK++XnK8PlodHLipsO11nTtXsZwHWyumcze/MEM4YlTztixCWP Os+PosuV0kIHTF4a9sX7BCtEsz47akVM9S/fLbtkGsev/joKps7hTZaZX4Ed+pON lIFaTzywMmiP0Le6C5aL23r+9M58DY24RhYk1umDvlz+q3XIHIiABcb4PFNiLAJL p77G9Ze+lvqtZjHVlzDxtnNX23KI3qPxtKblK/aPSlq1sejBJpQblMBd1I2YL2EE VjNQ/Irs2KGpqtCZXrl5o2wfDHOmHZIa3Wy3IemAvoxvqQHE0aWjQ5qLHlBV4n+b TcW8mNgJuziknUTOu9baTzrer6/zfs511DoFVXFdvu+DsGk2Fag82wT9jO74CSRn 4tGGjCUjpdVNxPTFEE+DXVmdylNARZgUwTy4TzROukAf/KGkt5i9QxlaEdZdAr+H Yu7LeHl8aDiYtYmnPwQIbhF+Ifzf40zBIm5c+O4l3j9rTmfdBmHulHx+Tb8m/+jp HLkDi0PS5e1UWXb2YZc/+rqAuZPQkgMfkxqM3+ed6xDaWZrEmIHU1P0IXduS24Pq LqJ6wHvd0wUso/sg9cAw =p99y -----END PGP SIGNATURE----- --=-=-=--