From 488acf3454539732ebb52ef710e0098088c2ea26 Mon Sep 17 00:00:00 2001 From: fyodor Date: Tue, 26 Jul 2005 23:48:52 +0000 Subject: [PATCH] routing fix --- CHANGELOG | 3 +++ Makefile.in | 2 +- scan_engine.cc | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index c51f8f947..475074679 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -17,6 +17,9 @@ o Added the --spoof_mac option, which asks Nmap to use the given MAC "Apple", "0", "01:02:03:04:05:06", "deadbeefcafe", "0020F2", and "Cisco". +o Fixed a but that would cause Nmap to ARP for a gateway MAC address + even when it was already in the system ARP cache. + o Fixed a problem where Nmap compilation would use header files from the libpcap included with Nmap even when it was linking to a system libpcap. Thanks to Solar Designer (solar(a)openwall.com) and Okan diff --git a/Makefile.in b/Makefile.in index e2ff3b9e1..f494bd723 100644 --- a/Makefile.in +++ b/Makefile.in @@ -1,4 +1,4 @@ -export NMAP_VERSION = 3.83.SOC3 +export NMAP_VERSION = 3.83.DC13 NMAP_NAME= nmap NMAP_URL= http://www.insecure.org/nmap/ NMAP_PLATFORM=@host@ diff --git a/scan_engine.cc b/scan_engine.cc index 74dc7bfe7..3a2726db1 100644 --- a/scan_engine.cc +++ b/scan_engine.cc @@ -1930,7 +1930,7 @@ static UltraProbe *sendIPScanProbe(UltraScanInfo *USI, HostScanStats *hss, if (USI->ethsd) { memcpy(eth.srcmac, hss->target->SrcMACAddress(), 6); - memcpy(eth.dstmac, hss->target->MACAddress(), 6); + memcpy(eth.dstmac, hss->target->NextHopMACAddress(), 6); eth.ethsd = USI->ethsd; eth.devname[0] = '\0'; ethptr = ð