Skip site navigation (1)Skip section navigation (2)



index | | raw e-mail

commit 8d2f910ceb0f1c366bcf2146a5ba1d1074d07933
Author:     Michael Tuexen <tuexen@FreeBSD.org>
AuthorDate: 2026-02-25 13:01:50 +0000
Commit:     Michael Tuexen <tuexen@FreeBSD.org>
CommitDate: 2026-02-25 13:04:37 +0000

    tcp: BBLog incoming packets in TCPS_TIME_WAIT
    
    PR:                     292293
    Reviewed by:            rrs, rscheff, pouria, Nick Banks, Peter Lei
    MFC after:              3 days
    Sponsored by:           Netflix, Inc.
    Differential Revision:  https://reviews.freebsd.org/D5546
---
 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 259ec7dc50dc..847598422da5 100644
--- a/sys/netinet/tcp_timewait.c
+++ b/sys/netinet/tcp_timewait.c
@@ -75,6 +75,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>
@@ -288,6 +289,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);


home | help