Linux kernel mirror (for testing)
git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel
os
linux
1// SPDX-License-Identifier: GPL-2.0
2//
3// Basic TFO server test
4//
5// Test TFO_SERVER_WO_SOCKOPT1 without setsockopt(TCP_FASTOPEN)
6
7`./defaults.sh
8 ./set_sysctls.py /proc/sys/net/ipv4/tcp_fastopen=0x402`
9
10 0 socket(..., SOCK_STREAM|SOCK_NONBLOCK, IPPROTO_TCP) = 3
11 +0 setsockopt(3, SOL_SOCKET, SO_REUSEADDR, [1], 4) = 0
12 +0 bind(3, ..., ...) = 0
13 +0 listen(3, 1) = 0
14
15 +0 < S 0:10(10) win 32792 <mss 1460,sackOK,nop,nop,FO TFO_COOKIE,nop,nop>
16 +0 > S. 0:0(0) ack 11 <mss 1460,nop,nop,sackOK>
17
18 +0 accept(3, ..., ...) = 4
19 +0 %{ assert (tcpi_options & TCPI_OPT_SYN_DATA) != 0, tcpi_options }%
20
21 +0 read(4, ..., 512) = 10