Lines Matching refs:clientstate
126 chap_cstate(int clientstate)
131 if (clientstate < 0 || clientstate >= Dim(cstate)) {
132 (void) slprintf(buf, sizeof(buf), "#%d", clientstate);
135 return cstate[clientstate];
162 cstate->clientstate = CHAPCS_INITIAL;
187 if (cstate->clientstate == CHAPCS_INITIAL ||
188 cstate->clientstate == CHAPCS_PENDING) {
190 cstate->clientstate = CHAPCS_PENDING;
199 cstate->clientstate = CHAPCS_LISTEN;
267 if (cstate->clientstate != CHAPCS_RESPONSE)
304 if (cstate->clientstate == CHAPCS_INITIAL)
305 cstate->clientstate = CHAPCS_CLOSED;
306 else if (cstate->clientstate == CHAPCS_PENDING)
307 cstate->clientstate = CHAPCS_LISTEN;
337 if (cstate->clientstate == CHAPCS_RESPONSE)
340 cstate->clientstate = CHAPCS_INITIAL;
357 if (cstate->clientstate != CHAPCS_INITIAL &&
358 cstate->clientstate != CHAPCS_CLOSED)
445 if (cstate->clientstate == CHAPCS_CLOSED ||
446 cstate->clientstate == CHAPCS_PENDING) {
449 chap_cstate(cstate->clientstate));
519 if (cstate->clientstate == CHAPCS_RESPONSE)
727 if (cstate->clientstate == CHAPCS_OPEN) {
734 if (cstate->clientstate != CHAPCS_RESPONSE) {
738 chap_cstate(cstate->clientstate));
750 cstate->clientstate = CHAPCS_OPEN;
767 if (cstate->clientstate != CHAPCS_RESPONSE) {
771 chap_cstate(cstate->clientstate));
921 cstate->clientstate = CHAPCS_RESPONSE;