[Olsr-cvs] olsrd-current/src/cfgparser olsrd_conf.c,1.42,1.43

Thomas Lopatic (spam-protected)
Sun Oct 23 21:01:06 CEST 2005


Update of /cvsroot/olsrd/olsrd-current/src/cfgparser
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23711/src/cfgparser

Modified Files:
	olsrd_conf.c 
Log Message:
olsr_switch looks okay on Windows. Windows port uses correct MTU. With LQ
enabled minimal HELLO-validity-time is HELLO-interval x LQ-Window-Size.


Index: olsrd_conf.c
===================================================================
RCS file: /cvsroot/olsrd/olsrd-current/src/cfgparser/olsrd_conf.c,v
retrieving revision 1.42
retrieving revision 1.43
diff -C2 -d -r1.42 -r1.43
*** olsrd_conf.c	17 Sep 2005 20:48:50 -0000	1.42
--- olsrd_conf.c	23 Oct 2005 19:01:04 -0000	1.43
***************
*** 317,320 ****
--- 317,334 ----
  	}
  
+       if (cnf->lq_level > 0)
+       {
+         float want = cnf->lq_wsize * io->hello_params.emission_interval;
+ 
+         if (io->hello_params.validity_time < want)
+         {
+           io->hello_params.validity_time = want;
+ 
+           fprintf(stderr,
+                   "WARNING: %s HELLO validity time set to %.1f seconds!\n",
+                   in->name, want);
+         }
+       }
+ 
        /* TC interval */
        if(io->tc_params.emission_interval < cnf->pollrate ||





More information about the Olsr-cvs mailing list