P->timer->recurrent = RIP_TIME;
P->timer->hook = rip_timer;
tm_start( P->timer, 5 );
+ CHK_MAGIC;
debug( "RIP: ...done\n");
}
static void
rip_rt_notify(struct proto *p, struct network *net, struct rte *new, struct rte *old)
{
- debug( "rip: new entry came\n" );
+ debug( "rip: new entry came: " );
+ CHK_MAGIC;
if (old) {
struct rip_entry *e = find_entry( p, net->n.prefix, net->n.pxlen );
+
+ debug( "deleting old\n" );
if (!e)
log( L_ERR "Deleting nonexistent entry?!\n" );
if (new) {
struct rip_entry *e = new_entry( p );
+ debug( "inserting new\n" );
e->whotoldme = IPA_NONE;
e->network = net->n.prefix;
e->pxlen = net->n.pxlen;
return 0;
}
+static int
+rip_rta_same(rta *a, rta *b)
+{
+ debug( "RIP: they ask me if rta_same\n" );
+ /* As we have no specific data in rta, they are always the same */
+ return 1;
+}
+
static void
rip_preconfig(struct protocol *x)
{
p->if_notify = rip_if_notify;
p->rt_notify = rip_rt_notify;
p->rte_better = rip_rte_better;
- p->rta_same = NULL; /* rip_rta_same; */
+ p->rta_same = rip_rta_same;
p->dump = rip_dump;
}