summaryrefslogtreecommitdiff
path: root/src/daemon/dlt-daemon.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/daemon/dlt-daemon.c')
-rw-r--r--src/daemon/dlt-daemon.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/daemon/dlt-daemon.c b/src/daemon/dlt-daemon.c
index a14de88..cd6e5d9 100644
--- a/src/daemon/dlt-daemon.c
+++ b/src/daemon/dlt-daemon.c
@@ -322,6 +322,7 @@ int option_file_parser(DltDaemonLocal *daemon_local)
daemon_local->UDPMulticastIPPort = MULTICASTIPPORT;
#endif
daemon_local->flags.ipNodes = NULL;
+ daemon_local->flags.injectionMode = 1;
/* open configuration file */
if (daemon_local->flags.cvalue[0])
@@ -705,6 +706,9 @@ int option_file_parser(DltDaemonLocal *daemon_local)
dlt_vlog(LOG_WARNING, "BindAddress option is empty\n");
}
}
+ else if (strcmp(token, "InjectionMode") == 0) {
+ daemon_local->flags.injectionMode = atoi(value);
+ }
else {
fprintf(stderr, "Unknown option: %s=%s\n", token, value);
}