summaryrefslogtreecommitdiff
path: root/proto
diff options
context:
space:
mode:
authorPavel Machek <pavel@ucw.cz>2000-05-11 09:41:16 +0000
committerPavel Machek <pavel@ucw.cz>2000-05-11 09:41:16 +0000
commit10f5c47d2e3d9fdeb2dd4ade1d09a1e06b53a7f6 (patch)
tree44bcee3f062598db70121a01dbdbc5a51072dabc /proto
parent94d1a6c9dc9ac578cb88428462ab41f113ca4e23 (diff)
Some more paranoia into rip_insert and rip_delete
Diffstat (limited to 'proto')
-rw-r--r--proto/rip/rip.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/proto/rip/rip.c b/proto/rip/rip.c
index 38a843da..b277f5c2 100644
--- a/proto/rip/rip.c
+++ b/proto/rip/rip.c
@@ -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 );
}