From: Jan Kiszka Date: Thu, 15 Sep 2011 22:10:50 +0000 (+0200) Subject: slirp: Fill TCP/IP header template after SYN reception X-Git-Tag: v1.0-rc0~213^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=144d192d33f031bced40012a114a15b6041c751e;p=thirdparty%2Fqemu.git slirp: Fill TCP/IP header template after SYN reception 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 --- diff --git a/slirp/tcp_input.c b/slirp/tcp_input.c index c1214c06591..5a79c68348a 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;