A C++ packet sniffer designed for anomaly based IDS