git: 6fd2c94c8a04 - stable/13 - netinet/tcp_var.h: always define IS_FASTOPEN() for kernel compilation env
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 20 Mar 2024 00:54:18 UTC
The branch stable/13 has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=6fd2c94c8a04814fb9258c1a6181923e141ac9ca commit 6fd2c94c8a04814fb9258c1a6181923e141ac9ca Author: Konstantin Belousov <kib@FreeBSD.org> AuthorDate: 2024-03-13 11:54:50 +0000 Commit: Konstantin Belousov <kib@FreeBSD.org> CommitDate: 2024-03-20 00:53:59 +0000 netinet/tcp_var.h: always define IS_FASTOPEN() for kernel compilation env (cherry picked from commit 220ee18f196482c534a659d1eb50db26c54ca7d0) --- sys/netinet/tcp_var.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sys/netinet/tcp_var.h b/sys/netinet/tcp_var.h index c3d28f1ad6e1..6815c6533073 100644 --- a/sys/netinet/tcp_var.h +++ b/sys/netinet/tcp_var.h @@ -431,11 +431,13 @@ TAILQ_HEAD(tcp_funchead, tcp_function); #define ENTER_RECOVERY(t_flags) t_flags |= (TF_CONGRECOVERY | TF_FASTRECOVERY) #define EXIT_RECOVERY(t_flags) t_flags &= ~(TF_CONGRECOVERY | TF_FASTRECOVERY) -#if defined(_KERNEL) && !defined(TCP_RFC7413) +#if defined(_KERNEL) +#if !defined(TCP_RFC7413) #define IS_FASTOPEN(t_flags) (false) #else #define IS_FASTOPEN(t_flags) (t_flags & TF_FASTOPEN) #endif +#endif #define BYTES_THIS_ACK(tp, th) (th->th_ack - tp->snd_una)