summaryrefslogtreecommitdiff
path: root/proto/rip/rip.c
diff options
context:
space:
mode:
authorPavel Machek <pavel@ucw.cz>2000-06-07 14:06:37 +0000
committerPavel Machek <pavel@ucw.cz>2000-06-07 14:06:37 +0000
commit07f29765a58ee72fc79d74b28dbfead24e0b5baf (patch)
treec04a9a841c52200f627af6b9b265378f2676d27b /proto/rip/rip.c
parent76c7efec63ffd2431ce5f6bd2299763f741ac37c (diff)
RIPv6 now works.
Diffstat (limited to 'proto/rip/rip.c')
-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 7268383c..d8058b8d 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;