summaryrefslogtreecommitdiff
path: root/proto/rip/rip.c
diff options
context:
space:
mode:
authorPavel Machek <pavel@ucw.cz>2000-05-10 12:26:09 +0000
committerPavel Machek <pavel@ucw.cz>2000-05-10 12:26:09 +0000
commit84a1305437ddd893771c43d1a9bff32260a56789 (patch)
tree5025361658e8f7e3122da7378bb0de574941892f /proto/rip/rip.c
parent14758d87c48e9d829f58ace0736b0c5b3c7dc6ae (diff)
Send first udpate sooner.
Diffstat (limited to 'proto/rip/rip.c')
-rw-r--r--proto/rip/rip.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/proto/rip/rip.c b/proto/rip/rip.c
index 52dce5d7..6a03ae0e 100644
--- a/proto/rip/rip.c
+++ b/proto/rip/rip.c
@@ -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" );