]> git.puffer.fish Git - matthieu/frr.git/commitdiff
[ospfd] cancel OSPF timer hack in nsm_change_state
authorDmitry Tejblum <tejblum@yandex-team.ru>
Tue, 23 Jun 2009 13:16:32 +0000 (17:16 +0400)
committerDenis Ovsienko <pilot@etcnet.org>
Tue, 23 Jun 2009 13:16:32 +0000 (17:16 +0400)
This piece of code causes all Quagga routers on a broadcast link to
send a HELLO packet simultaneously if they see a new neighbor. It also
resets the HELLO timer, so all the quagga routers will continue to
send HELLO packets simultaneously in the future. This is not good
(especially on networks with a lot of Quagga routers connected), and
is explicitly discouraged by the OSPF standard, RFC 2328 (chapter
4.4.Timers).

I suggest to remove the code snippet, it does not provide much benefit
anyway.

ospfd/ospf_nsm.c

index f3ac9eaaeba5c753a076a99a0a1fcd8b6ccad631..15fff349acf54eb4c3b2d89c0e743420cd3a1a7b 100644 (file)
@@ -778,14 +778,6 @@ nsm_change_state (struct ospf_neighbor *nbr, int state)
     break;
   }
 
-  /* Performance hack. Send hello immideately when some neighbor enter
-     Init state.  This whay we decrease neighbor discovery time. Gleb.*/
-  if (state == NSM_Init)
-    {
-      OSPF_ISM_TIMER_OFF (oi->t_hello);
-      OSPF_ISM_TIMER_MSEC_ON (oi->t_hello, ospf_hello_timer, 1);
-    }
-
   /* Preserve old status? */
 }