Lines Matching refs:CHAP_HDRLEN
92 #define CHAL_MAX_PKTLEN (PPP_HDRLEN + CHAP_HDRLEN + 4 + MAX_CHALLENGE_LEN + MAXNAMELEN)
93 #define RESP_MAX_PKTLEN (PPP_HDRLEN + CHAP_HDRLEN + 4 + MAX_RESPONSE_LEN + MAXNAMELEN)
289 p += CHAP_HDRLEN; in chap_generate_challenge()
295 len = CHAP_HDRLEN + 1 + clen + nlen; in chap_generate_challenge()
349 ss->challenge + PPP_HDRLEN + CHAP_HDRLEN, in chap_handle_response()
362 len = CHAP_HDRLEN + mlen; in chap_handle_response()
368 memcpy(p + CHAP_HDRLEN, ss->message, mlen); in chap_handle_response()
470 p += CHAP_HDRLEN; in chap_respond()
481 len = CHAP_HDRLEN + clen + 1 + nlen; in chap_respond()
537 if (pktlen < CHAP_HDRLEN) in chap_input()
542 if (len < CHAP_HDRLEN || len > pktlen) in chap_input()
544 len -= CHAP_HDRLEN; in chap_input()
596 if (plen < CHAP_HDRLEN) in chap_print_pkt()
601 if (len < CHAP_HDRLEN || len > plen) in chap_print_pkt()
609 len -= CHAP_HDRLEN; in chap_print_pkt()
640 return len + CHAP_HDRLEN; in chap_print_pkt()