From ed83a00f26cb50155eb1e4a71eac258f16a8f67c Mon Sep 17 00:00:00 2001 From: Pavel Odintsov Date: Tue, 24 Jun 2014 14:15:59 +0400 Subject: [PATCH] Introduce TODO in separate file. Enable linking with ncurses and log4cpp --- Makefile | 11 ++++++++++- README.md | 3 +++ TODO | 6 ++++++ 3 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 TODO diff --git a/Makefile b/Makefile index 0530244..77e02e1 100644 --- a/Makefile +++ b/Makefile @@ -52,13 +52,22 @@ endif # we use C++ 11 threads. We must include pthread library due gcc bug LIBS += -lpthread +# We need ncurses +LIBS += -lncurses +# It's support libs for ncurses +LIBS += -ltermcap +LIBS += -lgpm + +# Logger +LIBS += -llog4cpp + # If you need dynamic compile, please comment this line STATIC = -static cppcheck: cppcheck --enable=all -DPF_RING -DREDIS $(HEADERS) fastnetmon.cpp fastnetmon: libipulog.o fastnetmon.o - g++ $(STATIC) libipulog.o fastnetmon.o -o fastnetmon $(LIBS_PATH) $(LIBS) $(BUILD_FLAGS) + g++ $(STATIC) libipulog.o fastnetmon.o -o fastnetmon $(LIBS_PATH) $(LIBS) $(BUILD_FLAGS) -pthread libipulog.o: libipulog.c g++ $(STATIC) -c libipulog.c -o libipulog.o -Wno-write-strings fastnetmon.o: fastnetmon.cpp diff --git a/README.md b/README.md index c772864..7ca52ec 100644 --- a/README.md +++ b/README.md @@ -69,6 +69,9 @@ Install FastNetMon: # If you need traffic counting apt-get install -y libhiredis-dev + # Support libs + apt-get install -y libgpm-dev libncurses5-dev liblog4cpp5-dev + # If you need PF_RING abilities apt-get install -y libnuma-dev diff --git a/TODO b/TODO new file mode 100644 index 0000000..19a5421 --- /dev/null +++ b/TODO @@ -0,0 +1,6 @@ +- Add network average load for 30 second/60 and 5 minutes +- Migrate ban list to blacklist struct +- Enable work as standard linux user with CAP Admin +- Migrate belongs_to_network to prefix bitwise tree +- http://hg.python.org/cpython/file/3fa1414ce505/Lib/heapq.py#l183 - поиск топ 10 +- Try libsparsehash-dev