Date: Thu, 28 Aug 2014 20:48:12 -0700 From: Christoph Egger <christoph@debian.org> To: 711247@bugs.debian.org, libpcap@packages.debian.org, freebsd-pf@freebsd.org, debian-bsd@lists.debian.org Subject: pflogd needing pcap-int.h Message-ID: <87iolcvtvn.fsf@mitoraj.siccegge.de>
next in thread | raw e-mail | index | archive | help
[-- Attachment #1 --]
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
--
/home/christoph/debian/freebsd-utils/src/sbin/pflogd/../../contrib/pf/pflogd/pflogd.c: In function ‘try_reset_dump’:
/home/christoph/debian/freebsd-utils/src/sbin/pflogd/../../contrib/pf/pflogd/pflogd.c:379:23: error: dereferencing pointer to incomplete type
hdr.thiszone = hpcap->tzoff;
^
/home/christoph/debian/freebsd-utils/src/sbin/pflogd/../../contrib/pf/pflogd/pflogd.c:380:22: error: dereferencing pointer to incomplete type
hdr.snaplen = hpcap->snapshot;
^
/home/christoph/debian/freebsd-utils/src/sbin/pflogd/../../contrib/pf/pflogd/pflogd.c:382:23: error: dereferencing pointer to incomplete type
hdr.linktype = hpcap->linktype;
^
/home/christoph/debian/freebsd-utils/src/sbin/pflogd/../../contrib/pf/pflogd/pflogd.c: In function ‘scan_dump’:
/home/christoph/debian/freebsd-utils/src/sbin/pflogd/../../contrib/pf/pflogd/pflogd.c:411:24: error: storage size of ‘ph’ isn’t known
struct pcap_sf_pkthdr ph;
^
/home/christoph/debian/freebsd-utils/src/sbin/pflogd/../../contrib/pf/pflogd/pflogd.c:435:27: error: dereferencing pointer to incomplete type
hdr.linktype != hpcap->linktype ||
^
/home/christoph/debian/freebsd-utils/src/sbin/pflogd/../../contrib/pf/pflogd/pflogd.c:411:24: warning: unused variable ‘ph’ [-Wunused-variable]
struct pcap_sf_pkthdr ph;
^
/home/christoph/debian/freebsd-utils/src/sbin/pflogd/../../contrib/pf/pflogd/pflogd.c: In function ‘dump_packet_nobuf’:
/home/christoph/debian/freebsd-utils/src/sbin/pflogd/../../contrib/pf/pflogd/pflogd.c:484:24: error: storage size of ‘sh’ isn’t known
struct pcap_sf_pkthdr sh;
^
/home/christoph/debian/freebsd-utils/src/sbin/pflogd/../../contrib/pf/pflogd/pflogd.c:484:24: warning: unused variable ‘sh’ [-Wunused-variable]
/home/christoph/debian/freebsd-utils/src/sbin/pflogd/../../contrib/pf/pflogd/pflogd.c: In function ‘dump_packet’:
/home/christoph/debian/freebsd-utils/src/sbin/pflogd/../../contrib/pf/pflogd/pflogd.c:581:24: error: storage size of ‘sh’ isn’t known
struct pcap_sf_pkthdr sh;
^
/home/christoph/debian/freebsd-utils/src/sbin/pflogd/../../contrib/pf/pflogd/pflogd.c:581:24: warning: unused variable ‘sh’ [-Wunused-variable]
[-- Attachment #2 --]
-----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-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?87iolcvtvn.fsf>
