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)
This commit is contained in:
parent
457869b973
commit
e31d8aa3da
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=172464
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user