aboutsummaryrefslogtreecommitdiff
path: root/nDPIsrvd.c
diff options
context:
space:
mode:
authorToni Uhlig <matzeton@googlemail.com>2020-08-04 01:35:32 +0200
committerToni Uhlig <matzeton@googlemail.com>2020-08-04 01:35:32 +0200
commit88b85cecb83757f6a4617a97980a6540822c72be (patch)
treee9b064b9aaafdec892959a93c97981d246cce9c1 /nDPIsrvd.c
parente9467b7fb63656b16fe231758ef3b04533a5ae44 (diff)
merged some pre-processor macros which are used in multiple executables
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat (limited to 'nDPIsrvd.c')
-rw-r--r--nDPIsrvd.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/nDPIsrvd.c b/nDPIsrvd.c
index fcd15a2f9..06fe08574 100644
--- a/nDPIsrvd.c
+++ b/nDPIsrvd.c
@@ -13,6 +13,8 @@
#include <sys/types.h>
#include <unistd.h>
+#include "config.h"
+
enum ev_type { JSON_SOCK, SERV_SOCK };
struct remote_desc {
@@ -36,9 +38,9 @@ static struct remotes {
size_t desc_used;
} remotes = {NULL, 0, 0};
-static char json_sockpath[UNIX_PATH_MAX] = "/tmp/ndpid-collector.sock";
-static char serv_listen_addr[INET6_ADDRSTRLEN] = "127.0.0.1";
-static uint16_t serv_listen_port = 7000;
+static char json_sockpath[UNIX_PATH_MAX] = COLLECTOR_UNIX_SOCKET;
+static char serv_listen_addr[INET6_ADDRSTRLEN] = DISTRIBUTOR_HOST;
+static uint16_t serv_listen_port = DISTRIBUTOR_PORT;
static int json_sockfd;
static int serv_sockfd;