From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:43086) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R4KKh-0007Bj-Ox for qemu-devel@nongnu.org; Thu, 15 Sep 2011 18:23:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R4KKg-00064c-Ap for qemu-devel@nongnu.org; Thu, 15 Sep 2011 18:22:59 -0400 Received: from fmmailgate03.web.de ([217.72.192.234]:34834) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R4KKf-00064T-RC for qemu-devel@nongnu.org; Thu, 15 Sep 2011 18:22:58 -0400 Message-ID: <4E727AAA.5090803@web.de> Date: Fri, 16 Sep 2011 00:22:34 +0200 From: Jan Kiszka MIME-Version: 1.0 References: <4E727A76.3030106@web.de> In-Reply-To: <4E727A76.3030106@web.de> Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit Sender: jan.kiszka@web.de Subject: [Qemu-devel] [PATCH 1/1] slirp: Fill TCP/IP header template after SYN reception List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Anthony Liguori Cc: qemu-devel This ensures we can cleanly signal the drop in case the connection timer fires. So far we sent those frames to nowhere (target IP 0.0.0.0). Found by the new assertion on invalid IPs in arp_table_search. Signed-off-by: Jan Kiszka --- slirp/tcp_input.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/slirp/tcp_input.c b/slirp/tcp_input.c index c1214c0..5a79c68 100644 --- a/slirp/tcp_input.c +++ b/slirp/tcp_input.c @@ -610,6 +610,7 @@ findso: so->so_ti = ti; tp->t_timer[TCPT_KEEP] = TCPTV_KEEP_INIT; tp->t_state = TCPS_SYN_RECEIVED; + tcp_template(tp); } return; -- 1.7.3.4