Hi, I don't think this is a bug in libpcap; if your program uses BIOCIMMEDIATE then it needs to include <net/bpf.h> itself and not expect pcap's includes to do it.
FWIW, with the following patch ns2 builds successfully for me on kfreebsd-amd64: Index: ns2-2.35~RC6/emulate/net-pcap.cc =================================================================== --- ns2-2.35~RC6.orig/emulate/net-pcap.cc 2011-04-16 11:21:52.000000000 +0200 +++ ns2-2.35~RC6/emulate/net-pcap.cc 2011-04-16 11:26:17.000000000 +0200 @@ -55,6 +55,10 @@ #include <sys/systeminfo.h> #endif +#if !defined(__linux__)&&!defined(__APPLE__) +#include <net/bpf.h> +#endif + #ifdef __cplusplus extern "C" { #include <pcap.h> -- Romain Francoise <rfranco...@debian.org> http://people.debian.org/~rfrancoise/ -- To UNSUBSCRIBE, email to debian-bsd-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/87fwpiy1ps....@silenus.orebokech.com