File Index
Files and directories
Sign in
FILE

tcp_fastopen_server_trigger-rst-unread-data-closed.pkt

File preview with syntax highlighting.

linux-6.19.14/tools/testing/selftests/net/packetdrill/tcp_fastopen_server_trigger-rst-unread-data-closed.pkt PLAIN TEXT
 1// SPDX-License-Identifier: GPL-2.0
 2//
 3// Close a TFO socket with unread data.
 4// This will trigger a RST pkt.
 5
 6`./defaults.sh`
 7
 8    0 socket(..., SOCK_STREAM|SOCK_NONBLOCK, 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   +0 setsockopt(3, SOL_TCP, TCP_FASTOPEN, [1], 4) = 0
13
14   +0 < S 0:10(10) win 32792 <mss 1460,sackOK,nop,nop,FO TFO_COOKIE,nop,nop>
15   +0 > S. 0:0(0) ack 11 <mss 1460,nop,nop,sackOK>
16
17   +0 accept(3, ..., ...) = 4
18   +0 %{ assert (tcpi_options & TCPI_OPT_SYN_DATA) != 0, tcpi_options }%
19   +0 %{ assert tcpi_state == TCP_SYN_RECV, tcpi_state }%
20
21// data_was_unread == true in __tcp_close()
22   +0 close(4) = 0
23   +0 > R. 1:1(0) ack 11
~/ Read-only file preview.