1// SPDX-License-Identifier: GPL-2.0 2`./defaults.sh 3 ./set_sysctls.py /proc/sys/net/ipv4/tcp_timestamps=0` 4 5 0 socket(..., SOCK_STREAM|SOCK_NONBLOCK, IPPROTO_TCP) = 3 6 +0 setsockopt(3, SOL_SOCKET, SO_REUSEADDR, [1], 4) = 0 7 +0 bind(3, ..., ...) = 0 8 +0 listen(3, 1) = 0 9 +0 setsockopt(3, SOL_TCP, TCP_FASTOPEN, [1], 4) = 0 10 11 +0 < S 0:10(10) win 32792 <mss 1460,nop,nop,sackOK,nop,nop,FO TFO_COOKIE> 12 +0 > S. 0:0(0) ack 11 win 65535 <mss 1460,nop,nop,sackOK> 13 14// sk->sk_state is TCP_SYN_RECV 15 +0 accept(3, ..., ...) = 4 16 +0 %{ assert tcpi_state == TCP_SYN_RECV, tcpi_state }% 17 18// tcp_disconnect() sets sk->sk_state to TCP_CLOSE 19 +0 connect(4, AF_UNSPEC, ...) = 0 20 +0 > R. 1:1(0) ack 11 win 65535 21 +0 %{ assert tcpi_state == TCP_CLOSE, tcpi_state }% 22 23// connect() sets sk->sk_state to TCP_SYN_SENT 24 +0 fcntl(4, F_SETFL, O_RDWR|O_NONBLOCK) = 0 25 +0 connect(4, ..., ...) = -1 EINPROGRESS (Operation is now in progress) 26 +0 > S 0:0(0) win 65535 <mss 1460,nop,nop,sackOK,nop,wscale 8> 27 +0 %{ assert tcpi_state == TCP_SYN_SENT, tcpi_state }% 28 29// tp->fastopen_rsk must be NULL 30 +1 > S 0:0(0) win 65535 <mss 1460,nop,nop,sackOK,nop,wscale 8> 31