mirror of
https://github.com/nmap/nmap.git
synced 2025-12-16 04:39:03 +00:00
dedbb7f6ee328aa970f96338efd3546baeba8e15
upstream (git://bpf.tcpdump.org/libpcap). This is a workaround for the BIOCSRTIMEOUT bug in 10.6, 10.6.1, and 10.6.3 that doesn't work for non-integer timeouts. A symptom of being affected by the bug is Nmap haning forever at the first call to pcap_next. 10.6.2 was somehow not affected. This alone still doesn't solve the problem; I still have to make the default --with-libpcap=included for 64-bit OS X. The source comment is informative: /* * XXX - Mac OS X 10.6 mishandles BIOCSRTIMEOUT in 64-bit userland - it * takes, as an argument, a "struct BPF_TIMEVAL", which has 32-bit * tv_sec and tv_usec, rather than a "struct timeval". * * If this platform defines "struct BPF_TIMEVAL", we check whether the * structure size in BIOCSRTIMEOUT is that of a "struct timeval" and, if * not, we use a "struct BPF_TIMEVAL" rather than a "struct timeval". * (That way, if the bug is fixed in a future release, we will still do * the right thing.) */ commit 43acbb77a8e0b3346b574b3e28793de2d6985e69 Author: Guy Harris <guy@alum.mit.edu> Date: Sun Oct 11 11:05:46 2009 -0700 Work around an annoying Snow Leopard BPF bug that causes sub-second timeouts not to work in 64-bit userland code (Snow Leopard's GCC builds 64-bit by default on 64-bit machines).
Added matchline for the Arucer backdoor. The Arucer backdoor was found to be packaged with drivers for the Energizer USB recharger: http://www.kb.cert.org/vuls/id/154421
Modified UDP-payload-related code to make it independent of the NmapOps class so it can be reused by other apps like Nping. More info at http://seclists.org/nmap-dev/2009/q3/0051.html
Here is some documentation for Nmap, but these files are much less comprehensive than what you'll find at the actual Nmap documentation site ( http://nmap.org ).
Description
Languages
C
37.8%
Lua
28.1%
C++
16.7%
Shell
5.8%
Python
4.2%
Other
7.2%