xref: /linux/tools/testing/selftests/net/packetdrill/tcp_close_no_rst.pkt (revision 55a42f78ffd386e01a5404419f8c5ded7db70a21)
1// SPDX-License-Identifier: GPL-2.0
2
3--mss=1000
4
5`./defaults.sh`
6
7// Initialize connection
8    0 socket(..., SOCK_STREAM, IPPROTO_TCP) = 3
9   +0 setsockopt(3, SOL_SOCKET, SO_REUSEADDR, [1], 4) = 0
10   +0 bind(3, ..., ...) = 0
11   +0 listen(3, 1) = 0
12
13   +0 < S 0:0(0) win 32792 <mss 1000,sackOK,nop,nop>
14   +0 > S. 0:0(0) ack 1 <mss 1460,nop,nop,sackOK>
15  +.1 < . 1:1(0) ack 1 win 32792
16
17
18   +0 accept(3, ..., ...) = 4
19   +0 < . 1:1001(1000) ack 1 win 32792
20   +0 > . 1:1(0) ack 1001
21   +0 read(4, ..., 1000) = 1000
22
23// resend the payload + a FIN
24   +0 < F. 1:1001(1000) ack 1 win 32792
25// Why do we have a delay and no dsack ?
26   +0~+.04 > . 1:1(0) ack 1002
27
28   +0 close(4) = 0
29
30// According to RFC 2525, section 2.17
31// we should _not_ send an RST here, because there was no data to consume.
32   +0 > F. 1:1(0) ack 1002
33