Add visualization of unparsed packets in netmap mode

This commit is contained in:
Pavel Odintsov 2015-03-11 12:47:10 +03:00
parent ab062c2503
commit 32105bdab7

@ -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<std::string, std::string> configuration_map;
@ -106,6 +109,8 @@ void consume_pkt(u_char* buffer, int len) {
}
netmap_process_func_ptr(packet);
} else {
total_unparsed_packets++;
}
}