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;
295 len = CHAP_HDRLEN + 1 + clen + nlen;
349 ss->challenge + PPP_HDRLEN + CHAP_HDRLEN,
362 len = CHAP_HDRLEN + mlen;
368 memcpy(p + CHAP_HDRLEN, ss->message, mlen);
470 p += CHAP_HDRLEN;
481 len = CHAP_HDRLEN + clen + 1 + nlen;
537 if (pktlen < CHAP_HDRLEN)
542 if (len < CHAP_HDRLEN || len > pktlen)
544 len -= CHAP_HDRLEN;
596 if (plen < CHAP_HDRLEN)
601 if (len < CHAP_HDRLEN || len > plen)
609 len -= CHAP_HDRLEN;
640 return len + CHAP_HDRLEN;