]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Send first udpate sooner.
authorPavel Machek <pavel@ucw.cz>
Wed, 10 May 2000 12:26:09 +0000 (12:26 +0000)
committerPavel Machek <pavel@ucw.cz>
Wed, 10 May 2000 12:26:09 +0000 (12:26 +0000)
proto/rip/rip.c

index 52dce5d7b880ccc8ad7e739a505a696b9b1f1c4f..6a03ae0e7ec027c55c309d4133b91b7a1b658282 100644 (file)
@@ -241,7 +241,7 @@ rip_rte_update_if_better(rtable *tab, net *net, struct proto *p, rte *new)
   rte *old;
 
   old = rte_find(net, p);
-  if (!old || rip_rte_better(new, old))
+  if (!old || p->rte_better(new, old))
     rte_update(tab, net, p, new);
 }
 
@@ -465,8 +465,6 @@ rip_timer(timer *t)
   DBG( "RIP: Broadcasting routing tables\n" );
   {
     struct rip_interface *rif;
-    P->tx_count ++;
-
     WALK_LIST( rif, P->interfaces ) {
       struct iface *iface = rif->iface;
 
@@ -477,6 +475,7 @@ rip_timer(timer *t)
       rif->triggered = (P->tx_count % 6);
       rip_sendto( p, IPA_NONE, 0, rif );
     }
+    P->tx_count ++;
   }
 
   DBG( "RIP: tick tock done\n" );