aboutsummaryrefslogtreecommitdiff
path: root/config.h
blob: c60780447d3e3450bc8d26e262f44f5db1c5ca73 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#ifndef CONFIG_H
#define CONFIG_H 1

/* macros shared across multiple executables */
#define COLLECTOR_UNIX_SOCKET "/tmp/ndpid-collector.sock"
#define DISTRIBUTOR_UNIX_SOCKET "/tmp/ndpid-distributor.sock"
#define DISTRIBUTOR_HOST "127.0.0.1"
#define DISTRIBUTOR_PORT 7000

#define NETWORK_BUFFER_MAX_SIZE 9728 /* 8192 + 1024 + 512 */

/* nDPId default config options */
#define nDPId_PIDFILE "/tmp/ndpid.pid"
#define nDPId_MAX_FLOWS_PER_THREAD 4096
#define nDPId_MAX_IDLE_FLOWS_PER_THREAD 512
#define nDPId_TICK_RESOLUTION 1000
#define nDPId_MAX_READER_THREADS 8
#define nDPId_IDLE_SCAN_PERIOD 10000 /* 10 sec */
#define nDPId_IDLE_TIME 600000 /* 600 sec */
#define nDPId_POST_END_FLOW_TIME 60000 /* 60 sec */
#define nDPId_THREAD_DISTRIBUTION_SEED 0x03dd018b
#define nDPId_PACKETS_PER_FLOW_TO_SEND 15
#define nDPId_FLOW_STRUCT_SEED 0x5defc104

/* nDPIsrvd default config options */
#define nDPIsrvd_PIDFILE "/tmp/ndpisrvd.pid"
#define nDPIsrvd_JSON_BYTES 4

#endif