lqnatthresh: maintain an advantage for the current (NAT) inet gw
[olsrd.git] / src / cfgparser / cfgfile_gen.c
index 6b50bc9..26047b1 100644 (file)
@@ -181,6 +181,9 @@ olsrd_write_cnf(struct olsrd_config *cnf, const char *fname)
   fprintf(fd, "# Link quality window size\n\n");
   fprintf(fd, "LinkQualityWinSize\t%d\n\n", cnf->lq_wsize);
 
+  fprintf(fd, "# NAT threshold\n\n");
+  fprintf(fd, "NatThreshold\t%f\n\n", cnf->lq_nat_thresh);
+
   fprintf(fd, "# Clear screen when printing debug output?\n\n");
   fprintf(fd, "ClearScreen\t%s\n\n", cnf->clear_screen ? "yes" : "no");
 
@@ -462,6 +465,9 @@ olsrd_write_cnf_buf(struct olsrd_config *cnf, char *buf, olsr_u32_t bufsize)
   WRITE_TO_BUF("# Link quality window size\n\n");
   WRITE_TO_BUF("LinkQualityWinSize\t%d\n\n", cnf->lq_wsize);
 
+  WRITE_TO_BUF("# NAT threshold\n\n");
+  WRITE_TO_BUF("NatThreshold\t%f\n\n", cnf->lq_nat_thresh);
+
   WRITE_TO_BUF("# Clear screen when printing debug output?\n\n");
   WRITE_TO_BUF("ClearScreen\t%s\n\n", cnf->clear_screen ? "yes" : "no");