New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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
@dmiller-nmap

dmiller-nmap commented Jan 12, 2016

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;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment