Add a state transition call to show that we have entered TIME_WAIT.

Although this is not important to the rest of the TCP processing
it is a conveneint way to make the DTrace state-transition probe
catch this important state change.

MFC after:	1 week
This commit is contained in:
George V. Neville-Neil 2015-05-01 12:49:03 +00:00
parent 24f5e9f694
commit f00543eeab
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=282300

View File

@ -251,6 +251,13 @@ tcp_twstart(struct tcpcb *tp)
}
}
/*
* For use only by DTrace. We do not reference the state
* after this point so modifying it in place is not a problem.
*/
tcp_state_change(tp, TCPS_TIME_WAIT);
tw = uma_zalloc(V_tcptw_zone, M_NOWAIT);
if (tw == NULL) {
/*