pflogd needing pcap-int.h

Christoph Egger christoph at debian.org
Fri Aug 29 03:48:37 UTC 2014


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]
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 818 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-pf/attachments/20140828/72d2d28f/attachment.sig>


More information about the freebsd-pf mailing list