Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 18 Feb 2007 08:57:52 +0000 (GMT)
From:      Robert Watson <rwatson@FreeBSD.org>
To:        "Florian C. Smeets" <flo@kasimir.com>
Cc:        cvs-src@FreeBSD.org, src-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/sys/netinet in_pcb.c in_pcb.h tcp_usrreq.c
Message-ID:  <20070218085730.E63360@fledge.watson.org>
In-Reply-To: <45D78ABA.2000701@kasimir.com>
References:  <200702172102.l1HL2dGg051461@repoman.freebsd.org> <45D78ABA.2000701@kasimir.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 18 Feb 2007, Florian C. Smeets wrote:

> This breaks the kernel build for kernels without INET6.
>
> I think something like this is needed:

Indeed -- committed (with minor adjustments), thanks!

Robert N M Watson
Computer Laboratory
University of Cambridge

>
> - --- in_pcb.c.org        Sat Feb 17 23:57:26 2007
> +++ in_pcb.c    Sat Feb 17 23:57:34 2007
> @@ -1263,8 +1263,10 @@
>
>        if (inc->inc_flags == 1) {
> +#ifdef INET6
>                /* IPv6. */
>                ip6_sprintf(laddr_str, &inc->inc6_laddr);
>                ip6_sprintf(faddr_str, &inc->inc6_faddr);
> +#endif
>        } else {
>                /* IPv4. */
>                inet_ntoa_r(inc->inc_laddr, laddr_str);
>
> With this change i was able to build a kernel again.
>
> Cheers
> Florian
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.6 (Darwin)
>
> iD8DBQFF14q6A+1tjUZ1YScRAsaWAKCBMuTasbAhlb8l0axHdHMoq/itrACfZPqv
> XEYHWbrm9kbYKMPK9xVVi+A=
> =Q281
> -----END PGP SIGNATURE-----
>



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