1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-06 04:31:29 +00:00

Call pcap_set_immediate_mode to get results back immediately.

This commit is contained in:
dmiller
2018-08-21 04:51:33 +00:00
parent 7f1485f56d
commit d6a04c465e
5 changed files with 70 additions and 42 deletions

View File

@@ -479,9 +479,11 @@ if test $have_libpcap != yes; then
PCAP_CLEAN="clean-pcap"
PCAP_DIST_CLEAN="distclean-pcap"
AC_DEFINE(PCAP_INCLUDED, 1, [Using included libpcap])
AC_DEFINE(HAVE_PCAP_SET_IMMEDIATE_MODE, 1, [Included libpcap has pcap_set_immediate_mode])
else
# We assume our included libpcap doesn't need this check-and-define
PCAP_DEFINE_NETMASK_UNKNOWN
AC_CHECK_FUNCS([pcap_set_immediate_mode])
AC_DEFINE(HAVE_LIBPCAP, 1, [Have libpcap library])
LIBPCAP_LIBS="-lpcap"