From 208838e812a47cfc306214a8c5fd98180083e28e Mon Sep 17 00:00:00 2001 From: Luca Deri Date: Tue, 2 Apr 2019 23:00:02 +0200 Subject: [PATCH] Formattign changes --- src/Flow.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Flow.cpp b/src/Flow.cpp index 3e3f579561fe..4ec129ed761b 100644 --- a/src/Flow.cpp +++ b/src/Flow.cpp @@ -590,7 +590,9 @@ void Flow::setDetectedProtocol(ndpi_protocol proto_id, bool forceDetection) { if(ndpiDetectedProtocol.category == CUSTOM_CATEGORY_MALWARE) { char buf[512]; print(buf, sizeof(buf)); - snprintf(&buf[strlen(buf)], sizeof(buf) - strlen(buf), "Malware category detected. [cli_blacklisted: %u][srv_blacklisted: %u][category: %s]", cli_host->isBlacklisted(), srv_host->isBlacklisted(), get_protocol_category_name()); + snprintf(&buf[strlen(buf)], sizeof(buf) - strlen(buf), + "Malware category detected. [cli_blacklisted: %u][srv_blacklisted: %u][category: %s]", + cli_host->isBlacklisted(), srv_host->isBlacklisted(), get_protocol_category_name()); ntop->getTrace()->traceEvent(TRACE_NORMAL, "%s", buf); } #endif @@ -2303,6 +2305,7 @@ void Flow::housekeep(time_t t) { && iface->get_ndpi_struct() && get_ndpi_flow()) { ndpi_protocol givenup_protocol = ndpi_detection_giveup(iface->get_ndpi_struct(), get_ndpi_flow(), 1); + setDetectedProtocol(givenup_protocol, true); } }