From 004cf4fc0ced85dba570173f372c51b1bf71dafe Mon Sep 17 00:00:00 2001 From: Ondrej Filip Date: Thu, 15 Jul 2004 17:28:13 +0000 Subject: [PATCH] Minor bugfix to compile bird in IPv6. --- proto/rip/rip.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/proto/rip/rip.c b/proto/rip/rip.c index 5ff161fa..6c7bd369 100644 --- a/proto/rip/rip.c +++ b/proto/rip/rip.c @@ -361,8 +361,14 @@ process_block( struct proto *p, struct rip_block *block, ip_addr whotoldme ) ip_addr network = block->network; CHK_MAGIC; +#ifdef IPV6 + TRACE(D_ROUTES, "block: %I tells me: %I/%d available, metric %d... ", + whotoldme, network, block->pxlen, metric ); +#else TRACE(D_ROUTES, "block: %I tells me: %I/%d available, metric %d... ", whotoldme, network, ipa_mklen(block->netmask), metric ); +#endif + if ((!metric) || (metric > P_CF->infinity)) { #ifdef IPV6 /* Someone is sedning us nexthop and we are ignoring it */ if (metric == 0xff)