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:
gnn 2015-05-01 12:49:03 +00:00
parent 95d6e4cb47
commit ac5008de11

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) {
/*