diff options
| author | Gleb Smirnoff <glebius@FreeBSD.org> | 2026-03-23 21:55:59 +0000 |
|---|---|---|
| committer | Gleb Smirnoff <glebius@FreeBSD.org> | 2026-03-23 21:55:59 +0000 |
| commit | 73f72ca08dbb13ad186e6b33420015d51d0d5b17 (patch) | |
| tree | 231c2d86584cf3fb37c8886c618359ea8299dc90 | |
| parent | 2318ea10a3afb66c51078483f74c1a622811a619 (diff) | |
tcp: make TCP_TRK_TRACK_FLG_* flags visible to userland programs
These flags are used in BBLog entries.
| -rw-r--r-- | sys/netinet/tcp_var.h | 18 |
1 files 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 */ |
