[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

pflogd needing pcap-int.h



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: pgpmmAbk1QUhf.pgp
Description: PGP signature


Reply to: