aboutsummaryrefslogtreecommitdiff
path: root/sys/netinet/tcp_input.c
diff options
context:
space:
mode:
authorMike Silbersack <silby@FreeBSD.org>2007-10-07 00:07:27 +0000
committerMike Silbersack <silby@FreeBSD.org>2007-10-07 00:07:27 +0000
commite31d8aa3dae5a3be0f406fd9b1b45e8857886a41 (patch)
treecc9a5fcf6433316217c20e296edcac98dfba940d /sys/netinet/tcp_input.c
parent457869b973c1f32e270066f3f6bf27e0283a4036 (diff)
downloadsrc-e31d8aa3dae5a3be0f406fd9b1b45e8857886a41.tar.gz
src-e31d8aa3dae5a3be0f406fd9b1b45e8857886a41.zip
Improve the debugging message:
TCP: [X.X.X.X]:X to [X.X.X.X]:X tcpflags 0x18<PUSH,ACK>; tcp_do_segment: FIN_WAIT_2: Received data after socket was closed, sending RST and removing tcpcb So that it also includes how many bytes of data were received. It now looks like this: TCP: [X.X.X.X]:X to [X.X.X.X]:X tcpflags 0x18<PUSH,ACK>; tcp_do_segment: FIN_WAIT_2: Received X bytes of data after socket was closed, sending RST and removing tcpcb Approved by: re (gnn)
Notes
Notes: svn path=/head/; revision=172464
Diffstat (limited to 'sys/netinet/tcp_input.c')
-rw-r--r--sys/netinet/tcp_input.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet/tcp_input.c b/sys/netinet/tcp_input.c
index f114bfd9e459..34ae0268ab95 100644
--- a/sys/netinet/tcp_input.c
+++ b/sys/netinet/tcp_input.c
@@ -1573,9 +1573,9 @@ tcp_do_segment(struct mbuf *m, struct tcphdr *th, struct socket *so,
KASSERT(headlocked, ("%s: trimthenstep6: tcp_close.3: head "
"not locked", __func__));
if ((s = tcp_log_addrs(&tp->t_inpcb->inp_inc, th, NULL, NULL))) {
- log(LOG_DEBUG, "%s; %s: %s: Received data after socket "
+ log(LOG_DEBUG, "%s; %s: %s: Received %d bytes of data after socket "
"was closed, sending RST and removing tcpcb\n",
- s, __func__, tcpstates[tp->t_state]);
+ s, __func__, tcpstates[tp->t_state], tlen);
free(s, M_TCPLOG);
}
tp = tcp_close(tp);