Lines Matching refs:code
367 u_char code, id; in ChapInput() local
379 GETCHAR(code, inp); in ChapInput()
395 switch (code) { in ChapInput()
413 CHAPDEBUG(LOG_WARNING, ("Unknown CHAP code (%d) received.\n", code)); in ChapInput()
525 int code; in ChapReceiveResponse() local
587 code = CHAP_FAILURE; in ChapReceiveResponse()
608 code = CHAP_SUCCESS; /* they are the same! */ in ChapReceiveResponse()
618 ChapSendStatus(cstate, code); in ChapReceiveResponse()
620 if (code == CHAP_SUCCESS) { in ChapReceiveResponse()
746 ChapSendStatus(chap_state *cstate, int code) in ChapSendStatus() argument
752 if (code == CHAP_SUCCESS) { in ChapSendStatus()
764 PUTCHAR(code, outp); in ChapSendStatus()
770 CHAPDEBUG(LOG_INFO, ("ChapSendStatus: Sent code %d, id %d.\n", code, in ChapSendStatus()
851 int code, id, len; in ChapPrintPkt() local
858 GETCHAR(code, p); in ChapPrintPkt()
865 if (code >= 1 && code <= sizeof(ChapCodenames) / sizeof(char *)) { in ChapPrintPkt()
866 printer(arg, " %s", ChapCodenames[code-1]); in ChapPrintPkt()
868 printer(arg, " code=0x%x", code); in ChapPrintPkt()
872 switch (code) { in ChapPrintPkt()