From 07f29765a58ee72fc79d74b28dbfead24e0b5baf Mon Sep 17 00:00:00 2001 From: Pavel Machek Date: Wed, 7 Jun 2000 14:06:37 +0000 Subject: RIPv6 now works. --- proto/rip/rip.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'proto/rip') diff --git a/proto/rip/rip.c b/proto/rip/rip.c index 7268383..d8058b8 100644 --- a/proto/rip/rip.c +++ b/proto/rip/rip.c @@ -353,7 +353,11 @@ advertise_entry( struct proto *p, struct rip_block *b, ip_addr whotoldme ) static void process_block( struct proto *p, struct rip_block *block, ip_addr whotoldme ) { +#ifndef IPV6 int metric = ntohl( block->metric ); +#else + int metric = block->metric; +#endif ip_addr network = block->network; CHK_MAGIC; -- cgit v1.2.3