aboutsummaryrefslogtreecommitdiff
path: root/sys/netinet/tcp_timer.c
diff options
context:
space:
mode:
authorRandall Stewart <rrs@FreeBSD.org>2023-03-16 15:43:16 +0000
committerRandall Stewart <rrs@FreeBSD.org>2023-03-16 15:43:16 +0000
commit69c7c81190580ade16e608c6edaaa9f63dcd9052 (patch)
tree3e478fede0714e6a115e54dd86022fe0b8cf4bad /sys/netinet/tcp_timer.c
parentfa3af3ce5010740f28faed22e0a1e819491f26b4 (diff)
Diffstat (limited to 'sys/netinet/tcp_timer.c')
-rw-r--r--sys/netinet/tcp_timer.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/netinet/tcp_timer.c b/sys/netinet/tcp_timer.c
index 019f01391f22..d1301c18d54f 100644
--- a/sys/netinet/tcp_timer.c
+++ b/sys/netinet/tcp_timer.c
@@ -67,9 +67,9 @@ __FBSDID("$FreeBSD$");
#include <netinet/ip_var.h>
#include <netinet/tcp.h>
#include <netinet/tcp_fsm.h>
-#include <netinet/tcp_log_buf.h>
#include <netinet/tcp_timer.h>
#include <netinet/tcp_var.h>
+#include <netinet/tcp_log_buf.h>
#include <netinet/tcp_seq.h>
#include <netinet/cc/cc.h>
#ifdef INET6
@@ -796,8 +796,8 @@ tcp_bblog_timer(struct tcpcb *tp, tt_which which, tt_what what, uint32_t ticks)
uint64_t ms;
INP_WLOCK_ASSERT(tptoinpcb(tp));
- if (tp->t_logstate != TCP_LOG_STATE_OFF)
- lgb = tcp_log_event_(tp, NULL, NULL, NULL, TCP_LOG_RTO, 0, 0,
+ if (tcp_bblogging_on(tp))
+ lgb = tcp_log_event(tp, NULL, NULL, NULL, TCP_LOG_RTO, 0, 0,
NULL, false, NULL, NULL, 0, NULL);
else
lgb = NULL;