> Nmap updated to 4.20 version, it seems to work even with OpenBSD's libpcap.
> Tested on i386.

Can you not GZIP the diffs that you send in the future please?

in your patch-tcpip.cc
--- tcpip.cc.orig       Sun Feb  4 16:06:01 2007
+++ tcpip.cc    Sun Feb  4 16:08:26 2007
@@ -99,6 +99,8 @@
  ***************************************************************************/
 
 /* $Id: tcpip.cc 4228 2006-12-08 03:01:08Z fyodor $ */
+#include <sys/param.h>
+
 #ifdef WIN32
 #include "nmap_winconfig.h"
 #endif
@@ -1959,7 +1961,7 @@ if (timedout) {
 
 // Returns whether the system supports pcap_get_selectable_fd() properly
 bool pcap_selectable_fd_valid() {
-#if defined(WIN32) || defined(MACOSX)
+#if defined(WIN32) || defined(MACOSX) || (defined(BSD) && BSD >= 199306)
   return false;
 #endif
   return true;
@@ -1972,7 +1974,7 @@ bool pcap_selectable_fd_valid() {
    results.  If you just want to test whether the function is supported,
    use pcap_selectable_fd_valid() instead. */
 int my_pcap_get_selectable_fd(pcap_t *p) {
-#if defined(WIN32) || defined(MACOSX)
+#if defined(WIN32) || defined(MACOSX) || (defined(BSD) && BSD >= 199306)
   return -1;
 #else
   assert(pcap_selectable_fd_valid());


Why did you make these changes?  pcap_get_selectable_fd() is in our
libpcap and removing that patch still seems to "work" in general though
I haven't looked to see what it affects... you patched it though,
so hence the question?

Reply via email to