Lines Matching refs:sk_state

133 	if (sk->sk_state != SMC_INIT && smc->clcsock && smc->clcsock->sk) {
138 switch (sk->sk_state) {
142 sk->sk_state = SMC_PEERABORTWAIT;
144 if (sk->sk_state != SMC_PEERABORTWAIT)
146 sk->sk_state = SMC_CLOSED;
152 sk->sk_state = SMC_PEERABORTWAIT;
154 if (sk->sk_state != SMC_PEERABORTWAIT)
156 sk->sk_state = SMC_CLOSED;
163 sk->sk_state = SMC_PEERABORTWAIT;
165 if (sk->sk_state != SMC_PEERABORTWAIT)
167 sk->sk_state = SMC_CLOSED;
208 old_state = sk->sk_state;
210 switch (sk->sk_state) {
212 sk->sk_state = SMC_CLOSED;
215 sk->sk_state = SMC_CLOSED;
235 if (sk->sk_state == SMC_ACTIVE) {
238 sk->sk_state = SMC_PEERCLOSEWAIT1;
260 sk->sk_state = SMC_CLOSED;
269 if (sk->sk_state != SMC_APPCLOSEWAIT1 &&
270 sk->sk_state != SMC_APPCLOSEWAIT2)
276 sk->sk_state = SMC_CLOSED;
280 sk->sk_state = SMC_PEERFINCLOSEWAIT;
297 sk->sk_state = SMC_CLOSED;
300 sk->sk_state = SMC_CLOSED;
307 if (old_state != sk->sk_state)
318 switch (sk->sk_state) {
322 sk->sk_state = SMC_PROCESSABORT;
326 sk->sk_state = SMC_PROCESSABORT;
333 sk->sk_state = SMC_PROCESSABORT;
335 sk->sk_state = SMC_CLOSED;
340 sk->sk_state = SMC_CLOSED;
344 sk->sk_state = SMC_CLOSED;
368 old_state = sk->sk_state;
380 switch (sk->sk_state) {
382 sk->sk_state = SMC_APPCLOSEWAIT1;
385 sk->sk_state = SMC_APPCLOSEWAIT1;
392 sk->sk_state = SMC_PEERCLOSEWAIT2;
401 sk->sk_state = SMC_CLOSED;
404 sk->sk_state = SMC_APPFINCLOSEWAIT;
410 sk->sk_state = SMC_CLOSED;
432 if (old_state != sk->sk_state) {
434 if ((sk->sk_state == SMC_CLOSED) &&
459 old_state = sk->sk_state;
461 switch (sk->sk_state) {
467 if (sk->sk_state != SMC_ACTIVE)
471 sk->sk_state = SMC_PEERCLOSEWAIT1;
480 if (sk->sk_state != SMC_APPCLOSEWAIT1)
484 sk->sk_state = SMC_APPCLOSEWAIT2;
497 if (old_state != sk->sk_state)