0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-11-09 20:58:44 +00:00

Some more paranoia into rip_insert and rip_delete

This commit is contained in:
Pavel Machek 2000-05-11 09:41:16 +00:00
parent 94d1a6c9dc
commit 10f5c47d2e

View File

@ -447,7 +447,11 @@ rip_timer(timer *t)
rte *rte;
rte = SKIP_BACK( struct rte, u.rip.garbage, e );
#ifdef LOCAL_DEBUG
DBG( "Garbage: " ); rte_dump( rte );
{
struct proto *p = rte->attrs->proto;
CHK_MAGIC;
}
DBG( "Garbage: (%p)", rte ); rte_dump( rte );
#endif
if (now - rte->u.rip.lastmodX > P_CF->timeout_time) {
@ -815,6 +819,8 @@ static void
rip_rte_insert(net *net, rte *rte)
{
struct proto *p = rte->attrs->proto;
CHK_MAGIC;
DBG( "rip_rte_insert: %p\n", rte );
rte->u.rip.lastmodX = now;
add_head( &P->garbage, &rte->u.rip.garbage );
}
@ -822,6 +828,9 @@ rip_rte_insert(net *net, rte *rte)
static void
rip_rte_remove(net *net, rte *rte)
{
struct proto *p = rte->attrs->proto;
CHK_MAGIC;
DBG( "rip_rte_remove: %p\n", rte );
rem_node( &rte->u.rip.garbage );
}