mirror of
https://github.com/nmap/nmap.git
synced 2026-08-27 03:48:14 +00:00
Fix for OpenBSD packet loss. Fixes #274
This commit is contained in:
parent
4f91604e75
commit
a205e0c4d4
2 changed files with 6 additions and 2 deletions
|
|
@ -915,7 +915,7 @@ void set_ttl(int sd, int ttl) {
|
|||
/* 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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue