diff options
author | silby <silby@FreeBSD.org> | 2007-10-07 00:07:27 +0000 |
---|---|---|
committer | silby <silby@FreeBSD.org> | 2007-10-07 00:07:27 +0000 |
commit | 3faef0286022deb16a1b3270d26e8aeeb68434fe (patch) | |
tree | cc9a5fcf6433316217c20e296edcac98dfba940d | |
parent | caeef6111c8450d350a0926d31968121a5b5ae73 (diff) | |
download | FreeBSD-src-3faef0286022deb16a1b3270d26e8aeeb68434fe.zip FreeBSD-src-3faef0286022deb16a1b3270d26e8aeeb68434fe.tar.gz |
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)
-rw-r--r-- | sys/netinet/tcp_input.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet/tcp_input.c b/sys/netinet/tcp_input.c index f114bfd..34ae026 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); |