From 66ab5c072bce3e86f782eb4b82d00222710ef826 Mon Sep 17 00:00:00 2001 From: root Date: Thu, 18 Aug 2016 16:11:40 +0200 Subject: [PATCH] - changes in produce_dpi_dump_for_pcap_dump() - added logging of stats from DPI --- src/fastnetmon.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/fastnetmon.cpp b/src/fastnetmon.cpp index c2aaaf4..b9185fd 100644 --- a/src/fastnetmon.cpp +++ b/src/fastnetmon.cpp @@ -3673,6 +3673,13 @@ void produce_dpi_dump_for_pcap_dump(std::string pcap_file_path, std::stringstrea close(filedesc); + logger << log4cpp::Priority::INFO + << "DPI pkt stats: total:" << total_packets_number + << " DNS:" << dns_amplification_packets + << " NTP:" << ntp_amplification_packets + << " SSDP:" << ssdp_amplification_packets + << " SNMP:" << snmp_amplification_packets; + amplification_attack_type_t attack_type; // Attack type in unknown by default