Lines Matching refs:clen
284 int clen = 1, nlen, len; in chap_generate_challenge() local
291 clen = *p; in chap_generate_challenge()
293 memcpy(p + 1 + clen, ss->name, nlen); in chap_generate_challenge()
295 len = CHAP_HDRLEN + 1 + clen + nlen; in chap_generate_challenge()
441 int clen, nlen; in chap_respond() local
452 clen = pkt[0]; in chap_respond()
453 nlen = len - (clen + 1); in chap_respond()
456 slprintf(rname, sizeof(rname), "%.*v", nlen, pkt + clen + 1); in chap_respond()
476 clen = *p; in chap_respond()
478 memcpy(p + clen + 1, cs->name, nlen); in chap_respond()
481 len = CHAP_HDRLEN + clen + 1 + nlen; in chap_respond()
593 int clen, nlen; in chap_print_pkt() local
615 clen = p[0]; in chap_print_pkt()
616 if (len < clen + 1) in chap_print_pkt()
619 nlen = len - clen - 1; in chap_print_pkt()
621 for (; clen > 0; --clen) { in chap_print_pkt()
634 for (clen = len; clen > 0; --clen) { in chap_print_pkt()