summaryrefslogtreecommitdiffstats
path: root/proto/rip/rip.c
diff options
context:
space:
mode:
authorOndrej Filip <feela@network.cz>2004-06-23 23:34:26 +0200
committerOndrej Filip <feela@network.cz>2004-06-23 23:34:26 +0200
commit3fe5f8990764b33cc0245317e90fbbcd0cde84de (patch)
treea762ee5520ca87ac2f5dc7d6db8b70aa971cba26 /proto/rip/rip.c
parent09e4117cc19dd94efbdad6edde9bc7d715a58a9a (diff)
downloadbird-3fe5f8990764b33cc0245317e90fbbcd0cde84de.tar
bird-3fe5f8990764b33cc0245317e90fbbcd0cde84de.zip
P->magic used just in LOCAL_DEBUG mode
Diffstat (limited to 'proto/rip/rip.c')
-rw-r--r--proto/rip/rip.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/proto/rip/rip.c b/proto/rip/rip.c
index 342b98a..71758cc 100644
--- a/proto/rip/rip.c
+++ b/proto/rip/rip.c
@@ -572,8 +572,9 @@ rip_start(struct proto *p)
assert( sizeof(struct rip_block) == 20);
assert( sizeof(struct rip_block_auth) == 20);
-
+#ifdef LOCAL_DEBUG
P->magic = RIP_MAGIC;
+#endif
fib_init( &P->rtable, p->pool, sizeof( struct rip_entry ), 0, NULL );
init_list( &P->connections );
init_list( &P->garbage );