From d86a177456b28804ac4d5e706bd40e14a6cc3e38 Mon Sep 17 00:00:00 2001 From: dmiller Date: Tue, 26 Feb 2019 20:13:36 +0000 Subject: [PATCH] Mark IPv6 host as up if ND response received outside timeout window, same as ARP/IPv4 --- scan_engine_raw.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scan_engine_raw.cc b/scan_engine_raw.cc index 8f1e90dca..034750262 100644 --- a/scan_engine_raw.cc +++ b/scan_engine_raw.cc @@ -1666,8 +1666,10 @@ bool get_ns_result(UltraScanInfo *USI, struct timeval *stime) { hss->target->reason.reason_id = ER_NDRESPONSE; if (hss->probes_outstanding.empty()) { + /* It's up because we got a response, but doesn't count as a response + * within this timeout window. Go around again. */ + hss->target->flags = HOST_UP; continue; - /* TODO: I suppose I should really mark the @@# host as up */ } probeI = hss->probes_outstanding.end(); do {