mirror of
https://github.com/optim-enterprises-bv/nDPId.git
synced 2025-11-02 11:17:49 +00:00
Improved testing capabilities via Makefile.
* increased nDPId_MAX_READER_THREADS to 32 Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
This commit is contained in:
16
Makefile
16
Makefile
@@ -7,6 +7,9 @@ LIBS += -pthread -lpcap -lm
|
|||||||
GOCC =
|
GOCC =
|
||||||
GOFLAGS = -ldflags='-s -w'
|
GOFLAGS = -ldflags='-s -w'
|
||||||
|
|
||||||
|
UNIX_SOCK_DISTRIBUTOR = /tmp/ndpid-distributor.sock
|
||||||
|
UNIX_SOCK_COLLECTOR = /tmp/ndpid-collector.sock
|
||||||
|
|
||||||
ifneq ($(PKG_CONFIG_BIN),)
|
ifneq ($(PKG_CONFIG_BIN),)
|
||||||
PC_CFLAGS=$(shell $(PKG_CONFIG_BIN) --cflags libndpi)
|
PC_CFLAGS=$(shell $(PKG_CONFIG_BIN) --cflags libndpi)
|
||||||
PC_LDFLAGS=$(shell $(PKG_CONFIG_BIN) --libs libndpi)
|
PC_LDFLAGS=$(shell $(PKG_CONFIG_BIN) --libs libndpi)
|
||||||
@@ -134,13 +137,16 @@ else
|
|||||||
endif
|
endif
|
||||||
@echo '------------------------------------'
|
@echo '------------------------------------'
|
||||||
|
|
||||||
mocksrvd:
|
run-mocksrvd:
|
||||||
nc -k -l -U /tmp/ndpid-collector.sock
|
nc -k -l -U $(UNIX_SOCK_COLLECTOR)
|
||||||
|
|
||||||
|
run-raw-out:
|
||||||
|
nc -U $(UNIX_SOCK_DISTRIBUTOR)
|
||||||
|
|
||||||
run-nDPIsrvd: nDPIsrvd
|
run-nDPIsrvd: nDPIsrvd
|
||||||
./nDPIsrvd -l
|
./nDPIsrvd -l -c $(UNIX_SOCK_COLLECTOR) -S $(UNIX_SOCK_DISTRIBUTOR)
|
||||||
|
|
||||||
run-nDPId: nDPId
|
run-nDPId: nDPId
|
||||||
sudo ./nDPId -l -a run-test -u $(shell id -u -n)
|
sudo ./nDPId -l -c $(UNIX_SOCK_COLLECTOR) -a run-test -u $(shell id -u -n)
|
||||||
|
|
||||||
.PHONY: all examples install clean help mocksrvd run
|
.PHONY: all examples install clean help run-mocksrvd run-raw-out run-nDPIsrvd run-nDPId
|
||||||
|
|||||||
2
config.h
2
config.h
@@ -14,7 +14,7 @@
|
|||||||
#define nDPId_MAX_FLOWS_PER_THREAD 4096
|
#define nDPId_MAX_FLOWS_PER_THREAD 4096
|
||||||
#define nDPId_MAX_IDLE_FLOWS_PER_THREAD 512
|
#define nDPId_MAX_IDLE_FLOWS_PER_THREAD 512
|
||||||
#define nDPId_TICK_RESOLUTION 1000
|
#define nDPId_TICK_RESOLUTION 1000
|
||||||
#define nDPId_MAX_READER_THREADS 8
|
#define nDPId_MAX_READER_THREADS 32
|
||||||
#define nDPId_IDLE_SCAN_PERIOD 10000 /* 10 sec */
|
#define nDPId_IDLE_SCAN_PERIOD 10000 /* 10 sec */
|
||||||
#define nDPId_IDLE_TIME 600000 /* 600 sec */
|
#define nDPId_IDLE_TIME 600000 /* 600 sec */
|
||||||
#define nDPId_POST_END_FLOW_TIME 60000 /* 60 sec */
|
#define nDPId_POST_END_FLOW_TIME 60000 /* 60 sec */
|
||||||
|
|||||||
Reference in New Issue
Block a user