aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorToni Uhlig <matzeton@googlemail.com>2020-12-15 10:32:16 +0100
committerToni Uhlig <matzeton@googlemail.com>2020-12-15 10:32:16 +0100
commitb37cafe910bfc2aee355a84d960b5bd6cfc81ce3 (patch)
treefdeea3f1e554e99757bc80009b43104173478f53 /Makefile
parentcda7124fa569a8890c2ad39841f9e07c6d6b2d70 (diff)
Improved testing capabilities via Makefile.
* increased nDPId_MAX_READER_THREADS to 32 Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile16
1 files changed, 11 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index de961b8da..e4cc0ea85 100644
--- a/Makefile
+++ b/Makefile
@@ -7,6 +7,9 @@ LIBS += -pthread -lpcap -lm
GOCC =
GOFLAGS = -ldflags='-s -w'
+UNIX_SOCK_DISTRIBUTOR = /tmp/ndpid-distributor.sock
+UNIX_SOCK_COLLECTOR = /tmp/ndpid-collector.sock
+
ifneq ($(PKG_CONFIG_BIN),)
PC_CFLAGS=$(shell $(PKG_CONFIG_BIN) --cflags libndpi)
PC_LDFLAGS=$(shell $(PKG_CONFIG_BIN) --libs libndpi)
@@ -134,13 +137,16 @@ else
endif
@echo '------------------------------------'
-mocksrvd:
- nc -k -l -U /tmp/ndpid-collector.sock
+run-mocksrvd:
+ nc -k -l -U $(UNIX_SOCK_COLLECTOR)
+
+run-raw-out:
+ nc -U $(UNIX_SOCK_DISTRIBUTOR)
run-nDPIsrvd: nDPIsrvd
- ./nDPIsrvd -l
+ ./nDPIsrvd -l -c $(UNIX_SOCK_COLLECTOR) -S $(UNIX_SOCK_DISTRIBUTOR)
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