From 4f1a6d27b9a44f61329bc7b6779a0c645362e181 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Mon, 17 May 1999 20:16:53 +0000 Subject: Kill remaining master_table relics in KRT code. Make all protocols pass routing table to rte_update and rte_discard. --- proto/rip/rip.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'proto/rip') diff --git a/proto/rip/rip.c b/proto/rip/rip.c index 4a3e10a..16c63ae 100644 --- a/proto/rip/rip.c +++ b/proto/rip/rip.c @@ -223,7 +223,7 @@ advertise_entry( struct proto *p, struct rip_block *b, ip_addr whotoldme ) r->u.rip.tag = ntohl(b->tag); r->net = n; r->pflags = 0; /* Here go my flags */ - rte_update( n, p, r ); + rte_update( p->table, n, p, r ); DBG( "done\n" ); } @@ -356,7 +356,7 @@ rip_timer(timer *t) if (now - rte->lastmod > P_CF->garbage_time) { debug( "RIP: entry is too old: " ); rte_dump( rte ); - rte_discard(rte); + rte_discard(p->table, rte); } } -- cgit v1.2.3