EDGESEC  0.1.0-alpha.0+sha.ca29a8277b72f80785649ea9ef9cd7edf642d939
Secure router - reference implementation
dns_config.h
Go to the documentation of this file.
1 
10 #ifndef DNS_CONFIG_H
11 #define DNS_CONFIG_H
12 
13 #include <utarray.h>
14 
15 #include "../capture/capture_config.h"
16 
17 #define MDNS_MAX_OPT 26
18 
19 #define MDNS_OPT_CONFIG "-c"
20 #define MDNS_OPT_STRING ":c:dvh"
21 #define MDNS_USAGE_STRING "\t%s [-d] [-h] [-v] [-c config]"
22 
23 #define MDNS_OPT_DEFS \
24  "\t-c config\t The config file path\n" \
25  "\t-d\t\t Verbosity level (use multiple -dd... to increase)\n" \
26  "\t-h\t\t Show help\n" \
27  "\t-v\t\t Show app version\n\n"
28 
29 #define MDNS_DESCRIPTION \
30  "--" \
31  "NquiringMinds EDGESEC mdns forwarder.\n" \
32  "\n" \
33  "Forwards and captures EDGESEC mDNS network traffic for each connected " \
34  "device.\n" \
35  "The resulting captured mDNS traffic is forwarded across subnets and " \
36  "bridge commands are issued accordingly.\n\n"
37 
42 struct dns_conf {
43  UT_array
45 };
46 
51 struct mdns_conf {
54  bool reflect_ip4;
55  bool reflect_ip6;
56 };
57 
58 #endif
#define MAX_FILTER_SIZE
Definition: capture_config.h:22
The dns configuration structures.
Definition: dns_config.h:42
UT_array * server_array
Definition: dns_config.h:44
The mDNS configuration structures.
Definition: dns_config.h:51
char filter[MAX_FILTER_SIZE]
Definition: dns_config.h:52
bool reflect_ip4
Definition: dns_config.h:54
bool reflect_ip6
Definition: dns_config.h:55