From 8b79c4ccd597b90222f57eb3dfadeb24f39db7bd Mon Sep 17 00:00:00 2001 From: Pavel Machek Date: Mon, 5 Jun 2000 15:41:44 +0000 Subject: Add safety check. --- proto/rip/rip.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'proto/rip/rip.c') diff --git a/proto/rip/rip.c b/proto/rip/rip.c index 698f0e2..643fc43 100644 --- a/proto/rip/rip.c +++ b/proto/rip/rip.c @@ -53,6 +53,7 @@ #include "lib/string.h" #include "rip.h" +#include #define P ((struct rip_proto *) p) #define P_CF ((struct rip_proto_config *)p->cf) @@ -538,6 +539,11 @@ rip_start(struct proto *p) struct rip_interface *rif; DBG( "RIP: starting instance...\n" ); + assert( sizeof(struct rip_packet_heading) == 4); + assert( sizeof(struct rip_block) == 20); + assert( sizeof(struct rip_block_auth) == 20); + + P->magic = RIP_MAGIC; fib_init( &P->rtable, p->pool, sizeof( struct rip_entry ), 0, NULL ); init_list( &P->connections ); -- cgit v1.2.3