Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 8 Mar 2006 22:29:27 +1100 (EST)
From:      Bruce Evans <bde@zeta.org.au>
To:        Kris Kennaway <kris@obsecurity.org>
Cc:        gnn@FreeBSD.org, Hajimu UMEMOTO <ume@FreeBSD.org>, net@FreeBSD.org
Subject:   Re: ipv6 panic in 6.0 ([kris@FreeBSD.org: kern/85780: 'panic: bogus refcnt 0' in routing/ipv6])
Message-ID:  <20060308222124.O20893@delplex.bde.org>
In-Reply-To: <20060306231556.GA54600@xor.obsecurity.org>
References:  <20050927222721.GA46411@xor.obsecurity.org> <20051001214002.GU45345@cell.sick.ru> <ygeoe65iapr.wl%ume@mahoroba.org> <m2slvfj3ua.wl%gnn@neville-neil.com> <20051005173837.GA36638@xor.obsecurity.org> <20051005174012.GB36638@xor.obsecurity.org> <20060306231556.GA54600@xor.obsecurity.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 6 Mar 2006, Kris Kennaway wrote:

> P.S. This comment in netinet6/ip6_output.c appears to be bogus, since
> RTFREE is only a single statement:
>
>        if (ro == &ip6route && ro->ro_rt) { /* brace necessary for RTFREE */
>                RTFREE(ro->ro_rt);
>        } else if (ro_pmtu == &ip6route && ro_pmtu->ro_rt) {
>                RTFREE(ro_pmtu->ro_rt);
>        }

This is because peter fixed RTFREE() 7 years ago in rev.1.29 of route.h.
It used not to be wrapped in "do while (0)".  It was also fixed in NetBSD
7.5 years ago so there should be few portabilty problems with assuming
that it is fixed.  NetBSD is missing the style bug in rev.1.29 (indentation
of the wrapped code instead of outdentation of the do-while).

Bruce



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060308222124.O20893>