diff --git a/netmap_plugin/netmap_collector.cpp b/netmap_plugin/netmap_collector.cpp index 2c0dae6a..b62b114a 100644 --- a/netmap_plugin/netmap_collector.cpp +++ b/netmap_plugin/netmap_collector.cpp @@ -42,6 +42,9 @@ void consume_pkt(u_char* buffer, int len); // Get log4cpp logger from main programm extern log4cpp::Category& logger; +// Pass unparsed packets number to main programm +extern uint64_t total_unparsed_packets; + // Global configuration map extern std::map configuration_map; @@ -106,6 +109,8 @@ void consume_pkt(u_char* buffer, int len) { } netmap_process_func_ptr(packet); + } else { + total_unparsed_packets++; } }