[OLSR-users] Problem with hysterisis (with patch)

Wim Bonis (spam-protected)
Thu Aug 26 19:40:57 CEST 2004


To day i was playing a little bit arround, and i found a problem which
keeps hysteresis from working. (Every x minutes the link drops)

The Bug is there when you have only one Interface, and you have only 1
Ip address on the interface

What happens is: The olsrd build an empty packet (which does not get
sent out), But the sequnce->counter is already incremented.


--- src/generate_msg.c.org      2004-08-26 19:24:37.679566496 +0200
+++ src/generate_msg.c  2004-08-26 19:25:44.549435714 +0200
@@ -318,7 +318,10 @@
     {
       //printf("\nSending MID seq: %i\n", ifn->seqnums.mid_seqnum);
       mid_build(ifn);
-      net_output(ifn);
+      if(outputsize)
+       {
+         net_output(ifn);
+       }
     }

 return;

--
-------------------------------------------------------------------
Wim Bonis             ,+'^'+,                 Telefon:06301-791868
          NetwerkAnalyse und SystemDesign       Mobil:0170-5664234
                       +,.,+                    voip:0211-58005076
                                           sip:(spam-protected)
email: (spam-protected)                      Kaiserslautern/Mehlbach 
pgp-fingerprint: 6118 C35D FE0F 5FDE D632 E8EF ECE7 EA5F 6BDB F776 



More information about the Olsr-users mailing list