tcp: Check if timestamp is passed also while sending FIN to tap/guest
...it's probably possible that we might need to reset a connection together with a FIN segment. Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
This commit is contained in:
parent
ccbf13ed1b
commit
8131fc9175
1 changed files with 1 additions and 1 deletions
2
tcp.c
2
tcp.c
|
@ -1641,7 +1641,7 @@ static int tcp_send_to_tap(struct ctx *c, struct tcp_tap_conn *conn, int flags,
|
|||
if (th->ack && now)
|
||||
conn->ts_ack_to_tap = *now;
|
||||
|
||||
if (th->fin)
|
||||
if (th->fin && now)
|
||||
conn->tap_data_noack = *now;
|
||||
|
||||
/* RFC 793, 3.1: "[...] and the first data octet is ISN+1." */
|
||||
|
|
Loading…
Reference in a new issue