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

o [libpcap] Added a --disable-packet-ring option to force the use of

an older, slower packet capture mechanism on Linux. Before Linux
  2.6.27, the packet ring mechanism uses different-sized kernel
  structures on 32- and 64-bit architectures, so a 32-bit program will
  not run correctly on a 64-bit kernel. The older mechanism does not
  have this flaw.
This commit is contained in:
david
2010-05-26 20:43:09 +00:00
parent 1fe9546cfc
commit 38019ded5c
6 changed files with 127 additions and 11 deletions

18
libpcap/configure vendored
View File

@@ -596,6 +596,7 @@ ac_subst_vars='LTLIBOBJS
INSTALL_DATA
INSTALL_SCRIPT
INSTALL_PROGRAM
PCAP_SUPPORT_PACKET_RING
CAN_SRC
PCAP_SUPPORT_CAN
BT_SRC
@@ -702,6 +703,7 @@ with_snf_includes
with_snf_libraries
enable_bluetooth
enable_can
enable_packet_ring
'
ac_precious_vars='build_alias
host_alias
@@ -1335,6 +1337,7 @@ Optional Features:
available]
--enable-can enable CAN support [default=yes, if support
available]
--enable-packet-ring enable Linux packet ring support [default=yes]
Optional Packages:
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
@@ -7179,6 +7182,21 @@ $as_echo "$as_me: no CAN sniffing support implemented for $host_os" >&6;}
esac
fi
# Check whether --enable-packet-ring was given.
if test "${enable_packet_ring+set}" = set; then :
enableval=$enable_packet_ring;
else
enable_packet_ring=yes
fi
if test "x$enable_packet_ring" != "xno" ; then
$as_echo "#define PCAP_SUPPORT_PACKET_RING 1" >>confdefs.h
fi
# Find a good install program. We prefer a C program (faster),