Skip to content

Commit

Permalink
slirp: Fill TCP/IP header template after SYN reception
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
jan-kiszka committed Sep 15, 2011
1 parent 44520db commit 144d192
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions slirp/tcp_input.c
Original file line number Diff line number Diff line change
Expand Up @@ -610,6 +610,7 @@ tcp_input(struct mbuf *m, int iphlen, struct socket *inso)
so->so_ti = ti;
tp->t_timer[TCPT_KEEP] = TCPTV_KEEP_INIT;
tp->t_state = TCPS_SYN_RECEIVED;
tcp_template(tp);
}
return;

Expand Down

0 comments on commit 144d192

Please sign in to comment.