From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52819) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X9Es0-00071L-GP for qemu-devel@nongnu.org; Mon, 21 Jul 2014 10:47:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X9Erv-0002jt-3E for qemu-devel@nongnu.org; Mon, 21 Jul 2014 10:47:16 -0400 Received: from mail3-relais-sop.national.inria.fr ([192.134.164.104]:49747) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X9Eru-0002jc-TD for qemu-devel@nongnu.org; Mon, 21 Jul 2014 10:47:11 -0400 Date: Mon, 21 Jul 2014 16:47:09 +0200 From: Samuel Thibault Message-ID: <20140721144709.GA5390@type.bordeaux.inria.fr> References: <20140721114146.GT5390@type.bordeaux.inria.fr> <20140721114911.GU5390@type.bordeaux.inria.fr> <20140721120643.GV5390@type.bordeaux.inria.fr> <20140721142934.GZ5390@type.bordeaux.inria.fr> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="3V7upXqbjpZ4EhLz" Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20140721142934.GZ5390@type.bordeaux.inria.fr> Subject: Re: [Qemu-devel] ipv6 slirp network List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Vasiliy Tolstov Cc: libvir-list@redhat.com, QEMU --3V7upXqbjpZ4EhLz Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit Samuel Thibault, le Mon 21 Jul 2014 16:29:34 +0200, a écrit : > Vasiliy Tolstov, le Mon 21 Jul 2014 18:19:17 +0400, a écrit : > > 2014-07-21 16:06 GMT+04:00 Samuel Thibault : > > > I have pushed it to http://dept-info.labri.fr/~thibault/qemu-ipv6 , in > > > the tosubmit branch. > > > > > > Inside packer (i'm try to build some centos 7 boxes) i have errors > > Qemu stderr: qemu-system-x86_64: slirp/tcp_input.c:1543: tcp_mss: > > Assertion `0' failed. > > Uh?! Does the switch statement properly have both AF_INET and AF_INET6 > cases? > > A gdb backtrace would also be useful. Mmm, I guess this is coming through tcp_connect(). Could you try the attached patch? Samuel --3V7upXqbjpZ4EhLz Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename=patch diff --git a/slirp/tcp_subr.c b/slirp/tcp_subr.c index a1f060b..feae861 100644 --- a/slirp/tcp_subr.c +++ b/slirp/tcp_subr.c @@ -439,6 +439,7 @@ void tcp_connect(struct socket *inso) return; } so->lhost = inso->lhost; + so->ffamily = inso->so_ffamily; } tcp_mss(sototcpcb(so), 0); --3V7upXqbjpZ4EhLz--