Introduce TODO in separate file. Enable linking with ncurses and log4cpp

This commit is contained in:
Pavel Odintsov 2014-06-24 14:15:59 +04:00
parent 9925c43eda
commit ed83a00f26
3 changed files with 19 additions and 1 deletions

@ -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

@ -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

6
TODO Normal file

@ -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