Lines Matching refs:sk_state

130 	if (sk->sk_state != SMC_INIT && smc->clcsock && smc->clcsock->sk) {
135 switch (sk->sk_state) {
139 sk->sk_state = SMC_PEERABORTWAIT;
141 if (sk->sk_state != SMC_PEERABORTWAIT)
143 sk->sk_state = SMC_CLOSED;
149 sk->sk_state = SMC_PEERABORTWAIT;
151 if (sk->sk_state != SMC_PEERABORTWAIT)
153 sk->sk_state = SMC_CLOSED;
160 sk->sk_state = SMC_PEERABORTWAIT;
162 if (sk->sk_state != SMC_PEERABORTWAIT)
164 sk->sk_state = SMC_CLOSED;
205 old_state = sk->sk_state;
207 switch (sk->sk_state) {
209 sk->sk_state = SMC_CLOSED;
212 sk->sk_state = SMC_CLOSED;
229 if (sk->sk_state == SMC_ACTIVE) {
232 sk->sk_state = SMC_PEERCLOSEWAIT1;
254 sk->sk_state = SMC_CLOSED;
263 if (sk->sk_state != SMC_APPCLOSEWAIT1 &&
264 sk->sk_state != SMC_APPCLOSEWAIT2)
270 sk->sk_state = SMC_CLOSED;
274 sk->sk_state = SMC_PEERFINCLOSEWAIT;
291 sk->sk_state = SMC_CLOSED;
294 sk->sk_state = SMC_CLOSED;
301 if (old_state != sk->sk_state)
312 switch (sk->sk_state) {
316 sk->sk_state = SMC_PROCESSABORT;
320 sk->sk_state = SMC_PROCESSABORT;
327 sk->sk_state = SMC_PROCESSABORT;
329 sk->sk_state = SMC_CLOSED;
334 sk->sk_state = SMC_CLOSED;
338 sk->sk_state = SMC_CLOSED;
362 old_state = sk->sk_state;
374 switch (sk->sk_state) {
376 sk->sk_state = SMC_APPCLOSEWAIT1;
379 sk->sk_state = SMC_APPCLOSEWAIT1;
386 sk->sk_state = SMC_PEERCLOSEWAIT2;
395 sk->sk_state = SMC_CLOSED;
398 sk->sk_state = SMC_APPFINCLOSEWAIT;
404 sk->sk_state = SMC_CLOSED;
426 if (old_state != sk->sk_state) {
428 if ((sk->sk_state == SMC_CLOSED) &&
453 old_state = sk->sk_state;
455 switch (sk->sk_state) {
461 if (sk->sk_state != SMC_ACTIVE)
465 sk->sk_state = SMC_PEERCLOSEWAIT1;
474 if (sk->sk_state != SMC_APPCLOSEWAIT1)
478 sk->sk_state = SMC_APPCLOSEWAIT2;
491 if (old_state != sk->sk_state)