mirror of
https://github.com/nmap/nmap.git
synced 2026-08-04 14:49:29 +00:00
Avoid sending NS probe on Npcap Loopback (BSOD on Win7). See #429
This commit is contained in:
parent
fd5926ed1c
commit
7b4180b8d7
1 changed files with 5 additions and 1 deletions
|
|
@ -1845,7 +1845,11 @@ int FPHost6::build_probe_list() {
|
|||
this->total_probes++;
|
||||
|
||||
/* ICMP Probe #3: Neighbor Solicitation. (only sent to on-link targets) */
|
||||
if (this->target_host->directlyConnected()) {
|
||||
if (this->target_host->directlyConnected()
|
||||
#ifdef WIN32
|
||||
&& !(g_has_npcap_loopback && this->target_host->ifType() == devt_loopback)
|
||||
#endif
|
||||
) {
|
||||
ip6 = new IPv6Header();
|
||||
icmp6 = new ICMPv6Header();
|
||||
this->target_host->SourceSockAddr(&ss, &slen);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue