Lines Matching refs:CHAP_HDRLEN
91 #define CHAL_MAX_PKTLEN (PPP_HDRLEN + CHAP_HDRLEN + 4 + MAX_CHALLENGE_LEN + MAXNAMELEN)
92 #define RESP_MAX_PKTLEN (PPP_HDRLEN + CHAP_HDRLEN + 4 + MAX_RESPONSE_LEN + MAXNAMELEN)
290 p += CHAP_HDRLEN;
296 len = CHAP_HDRLEN + 1 + clen + nlen;
354 ss->challenge + PPP_HDRLEN + CHAP_HDRLEN,
366 len = CHAP_HDRLEN + mlen;
372 memcpy(p + CHAP_HDRLEN, message, mlen);
455 p += CHAP_HDRLEN;
466 len = CHAP_HDRLEN + clen + 1 + nlen;
521 if (pktlen < CHAP_HDRLEN)
526 if (len < CHAP_HDRLEN || len > pktlen)
528 len -= CHAP_HDRLEN;
579 if (plen < CHAP_HDRLEN)
584 if (len < CHAP_HDRLEN || len > plen)
592 len -= CHAP_HDRLEN;
623 return len + CHAP_HDRLEN;