summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPavel Machek <pavel@ucw.cz>2000-06-07 16:06:37 +0200
committerPavel Machek <pavel@ucw.cz>2000-06-07 16:06:37 +0200
commit07f29765a58ee72fc79d74b28dbfead24e0b5baf (patch)
treec04a9a841c52200f627af6b9b265378f2676d27b
parent76c7efec63ffd2431ce5f6bd2299763f741ac37c (diff)
downloadbird-07f29765a58ee72fc79d74b28dbfead24e0b5baf.tar
bird-07f29765a58ee72fc79d74b28dbfead24e0b5baf.zip
RIPv6 now works.
-rw-r--r--proto/rip/rip.c4
1 files changed, 4 insertions, 0 deletions
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;