Skip to content

Commit c556afb

Browse files
matttbenealcardwell
authored andcommitted
net-test: packetdrill: support socket options TCP_FASTOPEN_KEY + NO_COOKIE
These two sockets were missing: - TCP_FASTOPEN_KEY - TCP_FASTOPEN_NO_COOKIE We just need to add the new symbols to support them. They are being added to MPTCP in the kernel and validated with Packetdrill. This commit was originally for the work-in-progress packetdrill fork implementation supporting MPTCP but these options can be used for any "plain" TCP connections. Signed-off-by: Matthieu Baerts <[email protected]>
1 parent 329d89e commit c556afb

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

gtests/net/packetdrill/symbols_linux.c

+2
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,8 @@ struct int_symbol platform_symbols_table[] = {
187187
{ TCP_USER_TIMEOUT, "TCP_USER_TIMEOUT" },
188188
{ TCP_FASTOPEN, "TCP_FASTOPEN" },
189189
{ TCP_FASTOPEN_CONNECT, "TCP_FASTOPEN_CONNECT" },
190+
{ TCP_FASTOPEN_KEY, "TCP_FASTOPEN_KEY" },
191+
{ TCP_FASTOPEN_NO_COOKIE, "TCP_FASTOPEN_NO_COOKIE" },
190192
{ TCP_TIMESTAMP, "TCP_TIMESTAMP" },
191193
{ TCP_NOTSENT_LOWAT, "TCP_NOTSENT_LOWAT" },
192194
{ TCP_INQ, "TCP_INQ" },

gtests/net/packetdrill/tcp.h

+2
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,8 @@
6161
#define TCP_SAVED_SYN 28 /* Get SYN headers recorded for connection */
6262
#define TCP_REPAIR_WINDOW 29 /* Get/set window parameters */
6363
#define TCP_FASTOPEN_CONNECT 30 /* Attempt FastOpen with connect */
64+
#define TCP_FASTOPEN_KEY 33 /* Set the key for Fast Open (cookie) */
65+
#define TCP_FASTOPEN_NO_COOKIE 34 /* Enable TFO without a TFO cookie */
6466

6567
#ifndef TCP_INQ
6668
#define TCP_INQ 36

0 commit comments

Comments
 (0)