[PATCH v2 07/25] Add TCP_AO_* and TCP_IS_MPTCP from Linux 6.7 and 6.10 to netinet/tcp.h
Adhemerval Zanella
adhemerval.zanella@linaro.org
Tue Nov 10 15:09:51 GMT 2026
Linux 6.7 added the socket options for the TCP Authentication Option
(RFC 5925): TCP_AO_ADD_KEY, TCP_AO_DEL_KEY, and TCP_AO_INFO (commit
4954f17ddefc51d218625dcdfaf422a253dad3fa), TCP_AO_GET_KEYS (commit
ef84703a911f4ee52ca585e8308b7084093941f4), and TCP_AO_REPAIR (commit
faadfaba5e018ca0f9595f17115ff48416b7b85e). Linux 6.10 added
TCP_IS_MPTCP (commit c084ebd77a00b1a16d9daa57b6ecdfdf1f43c78a).
glibc commit 7e46c2aae47d3284d4eb0845ddcc3951e987d681 added the
structures used with the TCP-AO options (struct tcp_ao_add and the
others) but not the options themselves, and glibc commit
b416f91801b72982e4fa09b01fca19969c2ba90b added the options that follow
them (TCP_RTO_MAX_MS and later).
Checked on x86_64-linux-gnu.
---
sysdeps/gnu/netinet/tcp.h | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/sysdeps/gnu/netinet/tcp.h b/sysdeps/gnu/netinet/tcp.h
index 98ea9ab7427..5343b14fef5 100644
--- a/sysdeps/gnu/netinet/tcp.h
+++ b/sysdeps/gnu/netinet/tcp.h
@@ -80,6 +80,12 @@
as a cmsg on read. */
#define TCP_CM_INQ TCP_INQ
#define TCP_TX_DELAY 37 /* Delay outgoing packets by XX usec. */
+#define TCP_AO_ADD_KEY 38 /* Add or set a TCP-AO master key. */
+#define TCP_AO_DEL_KEY 39 /* Delete a TCP-AO master key. */
+#define TCP_AO_INFO 40 /* Set or get TCP-AO socket options. */
+#define TCP_AO_GET_KEYS 41 /* List TCP-AO master keys. */
+#define TCP_AO_REPAIR 42 /* Get or set TCP-AO SNEs and ISNs. */
+#define TCP_IS_MPTCP 43 /* Whether MPTCP is in use. */
#define TCP_RTO_MAX_MS 44 /* Max time to retransmit (msec). */
#define TCP_RTO_MIN_US 45 /* Min time to retransmit (usec). */
#define TCP_DELACK_MAX_US 46 /* Max delayed ack time (usec). */
--
2.53.0
More information about the Libc-alpha
mailing list