conf: lock_file is derived config.
[olsrd.git] / src / main.c
index 38bd295..309cc59 100644 (file)
@@ -45,6 +45,7 @@
 #include <assert.h>
 #include <fcntl.h>
 
+#include "cfgparser/olsrd_conf.h"
 #include "ipcalc.h"
 #include "defs.h"
 #include "builddata.h"
@@ -440,6 +441,12 @@ int main(int argc, char *argv[]) {
     olsr_exit(__func__, EXIT_FAILURE);
   }
 
+  /*
+   * Setup derived configuration
+   */
+
+  set_derived_cnf(olsr_cnf);
+
   /*
    * Establish file lock to prevent multiple instances
    */