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 <samuel.thiba...@gnu.org>: > > > 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
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);