]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
RIPv6 now works.
authorPavel Machek <pavel@ucw.cz>
Wed, 7 Jun 2000 14:06:37 +0000 (14:06 +0000)
committerPavel Machek <pavel@ucw.cz>
Wed, 7 Jun 2000 14:06:37 +0000 (14:06 +0000)
proto/rip/rip.c

index 7268383c83b81a98c85356ca6075b575fc73db81..d8058b8d2d79e4b2b4293371a825f0d4a9749ce0 100644 (file)
@@ -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;