Minor bugfix to compile bird in IPv6.
This commit is contained in:
parent
b37bb5ce03
commit
004cf4fc0c
1 changed files with 6 additions and 0 deletions
|
@ -361,8 +361,14 @@ process_block( struct proto *p, struct rip_block *block, ip_addr whotoldme )
|
||||||
ip_addr network = block->network;
|
ip_addr network = block->network;
|
||||||
|
|
||||||
CHK_MAGIC;
|
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... ",
|
TRACE(D_ROUTES, "block: %I tells me: %I/%d available, metric %d... ",
|
||||||
whotoldme, network, ipa_mklen(block->netmask), metric );
|
whotoldme, network, ipa_mklen(block->netmask), metric );
|
||||||
|
#endif
|
||||||
|
|
||||||
if ((!metric) || (metric > P_CF->infinity)) {
|
if ((!metric) || (metric > P_CF->infinity)) {
|
||||||
#ifdef IPV6 /* Someone is sedning us nexthop and we are ignoring it */
|
#ifdef IPV6 /* Someone is sedning us nexthop and we are ignoring it */
|
||||||
if (metric == 0xff)
|
if (metric == 0xff)
|
||||||
|
|
Loading…
Reference in a new issue