1
0
mirror of https://github.com/nmap/nmap.git synced 2026-01-18 04:19:00 +00:00

Document something in NMAP_MODIFICATIONS I forgot to document before. It's from

when I adapted some libdnet 1.11 code to convert a dnet name to a pcap name by
matching hardware addresses. I removed an earlier comment that this one
supersedes.
This commit is contained in:
david
2008-08-30 04:39:30 +00:00
parent dacdf9409a
commit 8bc4a2ced3

View File

@@ -38,12 +38,6 @@ o Rewrote eth_open() for Win32 as its technique for translating from
a dnet-named interface to a pcap-named one did not work on any of my
systems.
o Added intf_get_pcap_devname() function for Win32. This tries to
convert a dnet if name into its pcap equivalent. It is a hack, but
arguably better than the hacks that were there before. The main
down side is that it won't work with interfaces that don't have an
IPv4 address configured.
o Increase the number of available bpf devices from 32 to 128. Patch:
--- eth-bsd.c (revision 2774)
+++ eth-bsd.c (working copy)
@@ -491,5 +485,10 @@ Index: libdnet-stripped/src/intf-win32.c
} else
return (-1);
Added eth_get_pcap_devname that matches up a dnet name to its pcap
equivalent. It starts by matching interfaces IP addresses, then falls
back to matching hardware addresses. The hardware address matching code
is adapted from libdnet 1.11.
Copied include/dnet/os.h from libdnet 1.12 to avoid a duplicate typedef
of ssize_t.