diff options
Diffstat (limited to 'proto/rip/rip.c')
-rw-r--r-- | proto/rip/rip.c | 4 |
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; |