From 43e5fe08fcd679a00f6a5dff7d7da6bf35e8fa85 Mon Sep 17 00:00:00 2001 From: emanuele-f Date: Mon, 21 May 2018 17:42:01 +0200 Subject: [PATCH] Fix bad mac traffic increment in nedge --- src/NetworkInterface.cpp | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/src/NetworkInterface.cpp b/src/NetworkInterface.cpp index 99ee39d096..bfce36f738 100644 --- a/src/NetworkInterface.cpp +++ b/src/NetworkInterface.cpp @@ -1021,17 +1021,7 @@ Flow* NetworkInterface::getFlow(Mac *srcMac, Mac *dstMac, } if((dstHost = (*src2dst_direction) ? ret->get_srv_host() : ret->get_cli_host())) { - if(dstMac->isSpecialMac()) { - if(getIfType() == interface_type_NETFILTER) { - /* - In this case the destination Mac is unknown and thus we need to - increase the bytes/packets counters for the flow peer (if set) - */ - - if(!dstHost->getMac()->isSpecialMac()) - dstHost->getMac()->incRcvdStats(1, rawsize); - } - } else if((!dstMac->isSpecialMac()) && (primary_mac = dstHost->getMac()) && primary_mac != dstMac) { + if((!dstMac->isSpecialMac()) && (primary_mac = dstHost->getMac()) && primary_mac != dstMac) { #ifdef MAC_DEBUG char buf[32], bufm1[32], bufm2[32]; ntop->getTrace()->traceEvent(TRACE_NORMAL,