git: 73f72ca08dbb - main - tcp: make TCP_TRK_TRACK_FLG_* flags visible to userland programs
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 23 Mar 2026 21:56:18 UTC
The branch main has been updated by glebius:
URL: https://cgit.FreeBSD.org/src/commit/?id=73f72ca08dbb13ad186e6b33420015d51d0d5b17
commit 73f72ca08dbb13ad186e6b33420015d51d0d5b17
Author: Gleb Smirnoff <glebius@FreeBSD.org>
AuthorDate: 2026-03-23 21:55:59 +0000
Commit: Gleb Smirnoff <glebius@FreeBSD.org>
CommitDate: 2026-03-23 21:55:59 +0000
tcp: make TCP_TRK_TRACK_FLG_* flags visible to userland programs
These flags are used in BBLog entries.
---
sys/netinet/tcp_var.h | 18 +++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)
diff --git a/sys/netinet/tcp_var.h b/sys/netinet/tcp_var.h
index 8dff330cb46b..a3a42b68c26b 100644
--- a/sys/netinet/tcp_var.h
+++ b/sys/netinet/tcp_var.h
@@ -85,6 +85,15 @@
#define TCP_EI_BITS_RST_IN_FR 0x200 /* a front state reset */
#define TCP_EI_BITS_2MS_TIMER 0x400 /* 2 MSL timer expired */
+#define TCP_TRK_TRACK_FLG_EMPTY 0x00 /* Available */
+#define TCP_TRK_TRACK_FLG_USED 0x01 /* In use */
+#define TCP_TRK_TRACK_FLG_OPEN 0x02 /* End is not valid (open range request) */
+#define TCP_TRK_TRACK_FLG_SEQV 0x04 /* We had a sendfile that touched it */
+#define TCP_TRK_TRACK_FLG_COMP 0x08 /* Sendfile as placed the last bits (range req only) */
+#define TCP_TRK_TRACK_FLG_FSND 0x10 /* First send has been done into the seq space */
+#define TCP_TRK_TRACK_FLG_LSND 0x20 /* We were able to set the Last Sent */
+#define MAX_TCP_TRK_REQ 5 /* Max we will have at once */
+
#if defined(_KERNEL)
#include <sys/_callout.h>
#include <sys/osd.h>
@@ -136,15 +145,6 @@ struct sackhint {
STAILQ_HEAD(tcp_log_stailq, tcp_log_mem);
-#define TCP_TRK_TRACK_FLG_EMPTY 0x00 /* Available */
-#define TCP_TRK_TRACK_FLG_USED 0x01 /* In use */
-#define TCP_TRK_TRACK_FLG_OPEN 0x02 /* End is not valid (open range request) */
-#define TCP_TRK_TRACK_FLG_SEQV 0x04 /* We had a sendfile that touched it */
-#define TCP_TRK_TRACK_FLG_COMP 0x08 /* Sendfile as placed the last bits (range req only) */
-#define TCP_TRK_TRACK_FLG_FSND 0x10 /* First send has been done into the seq space */
-#define TCP_TRK_TRACK_FLG_LSND 0x20 /* We were able to set the Last Sent */
-#define MAX_TCP_TRK_REQ 5 /* Max we will have at once */
-
struct tcp_sendfile_track {
uint64_t timestamp; /* User sent timestamp */
uint64_t start; /* Start of sendfile offset */