Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 18 Feb 2007 00:07:38 +0100
From:      "Florian C. Smeets" <flo@kasimir.com>
To:        Robert Watson <rwatson@FreeBSD.org>
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:  <45D78ABA.2000701@kasimir.com>
In-Reply-To: <200702172102.l1HL2dGg051461@repoman.freebsd.org>
References:  <200702172102.l1HL2dGg051461@repoman.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Robert Watson wrote:
> rwatson     2007-02-17 21:02:39 UTC
> 
>   FreeBSD src repository
> 
>   Modified files:
>     sys/netinet          in_pcb.c in_pcb.h tcp_usrreq.c 
>   Log:
>   Add "show inpcb", "show tcpcb" DDB commands, which should come in handy
>   for debugging sblock and other network panics.
>   
>   Revision  Changes    Path
>   1.186     +251 -1    src/sys/netinet/in_pcb.c
>   1.92      +6 -0      src/sys/netinet/in_pcb.h
>   1.146     +321 -1    src/sys/netinet/tcp_usrreq.c

This breaks the kernel build for kernels without INET6.

I think something like this is needed:

- --- 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?45D78ABA.2000701>