Lines Matching refs:code
353 auth_withpeer_fail(unit, PPP_CHAP); /* lwip: just sets the PPP error code on this unit to PPPERR_AUTHFAIL */
367 u_char code, id;
371 * Parse header (code, id and length).
379 GETCHAR(code, inp);
393 * Action depends on code (as in fact it usually does :-).
395 switch (code) {
412 default: /* Need code reject? */
413 CHAPDEBUG(LOG_WARNING, ("Unknown CHAP code (%d) received.\n", code));
525 int code;
587 code = CHAP_FAILURE;
608 code = CHAP_SUCCESS; /* they are the same! */
618 ChapSendStatus(cstate, code);
620 if (code == CHAP_SUCCESS) {
702 auth_withpeer_fail(cstate->unit, PPP_CHAP); /* lwip: just sets the PPP error code on this unit to PPPERR_AUTHFAIL */
746 ChapSendStatus(chap_state *cstate, int code)
752 if (code == CHAP_SUCCESS) {
764 PUTCHAR(code, outp);
770 CHAPDEBUG(LOG_INFO, ("ChapSendStatus: Sent code %d, id %d.\n", code,
851 int code, id, len;
858 GETCHAR(code, p);
865 if (code >= 1 && code <= sizeof(ChapCodenames) / sizeof(char *)) {
866 printer(arg, " %s", ChapCodenames[code-1]);
868 printer(arg, " code=0x%x", code);
872 switch (code) {