OpenBSD patch: pcap_selectable_fd_valid should return false #274

Closed
dmiller-nmap opened this Issue Jan 12, 2016 · 0 comments

Comments

Projects
None yet
1 participant

From the OpenBSD ports maintainer: http://seclists.org/nmap-dev/2016/q1/35

Index: libnetutil/netutil.cc
===================================================================
--- libnetutil/netutil.cc   (revision 35571)
+++ libnetutil/netutil.cc   (working copy)
@@ -915,7 +915,7 @@
 /* Other than WIN32, what these systems have in common is that they use BPF for
    packet capture. (Solaris 10 and earlier used DLPI and had valid selectable
    fds.) */
-#if defined(WIN32) || defined(MACOSX) || (defined(FREEBSD) && (__FreeBSD_version < 500000) || defined(SOLARIS_BPF_PCAP_CAPTURE))
+#if defined(WIN32) || defined(MACOSX) || (defined(FREEBSD) && (__FreeBSD_version < 500000) || defined(SOLARIS_BPF_PCAP_CAPTURE) || defined(OPENBSD))
 /* Returns whether the system supports pcap_get_selectable_fd() properly */
 int pcap_selectable_fd_valid() {
   return 0;

nmap-bot closed this in a205e0c Jan 12, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment