diff options
| author | Michael Tuexen <tuexen@FreeBSD.org> | 2026-02-25 13:01:50 +0000 |
|---|---|---|
| committer | Michael Tuexen <tuexen@FreeBSD.org> | 2026-02-25 13:04:37 +0000 |
| commit | 8d2f910ceb0f1c366bcf2146a5ba1d1074d07933 (patch) | |
| tree | da1fd813310c06beccdd5f1559a032521674c643 | |
| parent | 4e28874a6048f3c5a72a42b5bcfcfc7e71cad8a6 (diff) | |
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
| -rw-r--r-- | sys/netinet/tcp_timewait.c | 3 |
1 files changed, 3 insertions, 0 deletions
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); |
