git: 5a29c53eb3b4 - stable/15 - tcp: BBLog incoming packets in TCPS_TIME_WAIT
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 26 Apr 2026 07:58:13 UTC
The branch stable/15 has been updated by tuexen:
URL: https://cgit.FreeBSD.org/src/commit/?id=5a29c53eb3b4c8e7af28ebf5176a492ea7c46a7b
commit 5a29c53eb3b4c8e7af28ebf5176a492ea7c46a7b
Author: Michael Tuexen <tuexen@FreeBSD.org>
AuthorDate: 2026-02-25 13:01:50 +0000
Commit: Michael Tuexen <tuexen@FreeBSD.org>
CommitDate: 2026-04-26 07:56:31 +0000
tcp: BBLog incoming packets in TCPS_TIME_WAIT
PR: 292293
Reviewed by: rrs, rscheff, pouria, Nick Banks, Peter Lei
Sponsored by: Netflix, Inc.
Differential Revision: https://reviews.freebsd.org/D5546
Event: Wiesbaden Hackathon 2026
(cherry picked from commit 8d2f910ceb0f1c366bcf2146a5ba1d1074d07933)
---
sys/netinet/tcp_timewait.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/sys/netinet/tcp_timewait.c b/sys/netinet/tcp_timewait.c
index ce63fcf9ffc0..5032f5bf4c28 100644
--- a/sys/netinet/tcp_timewait.c
+++ b/sys/netinet/tcp_timewait.c
@@ -76,6 +76,7 @@
#include <netinet/tcp_seq.h>
#include <netinet/tcp_timer.h>
#include <netinet/tcp_var.h>
+#include <netinet/tcp_log_buf.h>
#include <netinet/tcpip.h>
#include <netinet/udp.h>
@@ -331,6 +332,8 @@ tcp_twcheck(struct inpcb *inp, struct tcpopt *to, struct tcphdr *th,
*/
if (thflags != TH_ACK || tlen != 0 ||
th->th_seq != tp->rcv_nxt || th->th_ack != tp->snd_nxt) {
+ TCP_LOG_EVENT(tp, th, NULL, NULL, TCP_LOG_IN, 0, tlen, NULL,
+ true);
TCP_PROBE5(receive, NULL, NULL, m, NULL, th);
tcp_respond(tp, mtod(m, void *), th, m, tp->rcv_nxt,
tp->snd_nxt, TH_ACK);