Lines Matching refs:msglen
130 static void upap_sresp(ppp_pcb *pcb, u_char code, u_char id, const char *msg, int msglen);
366 int msglen;
411 if (auth_check_passwd(pcb, ruser, ruserlen, rpasswd, rpasswdlen, &msg, &msglen)) {
430 msglen = strlen(msg);
431 if (msglen > 255)
432 msglen = 255;
435 upap_sresp(pcb, retcode, id, msg, msglen);
459 u_char msglen;
472 GETCHAR(msglen, inp);
473 if (msglen > 0) {
475 if (len < msglen) {
480 PRINTMSG(msg, msglen);
494 u_char msglen;
507 GETCHAR(msglen, inp);
508 if (msglen > 0) {
510 if (len < msglen) {
515 PRINTMSG(msg, msglen);
567 static void upap_sresp(ppp_pcb *pcb, u_char code, u_char id, const char *msg, int msglen) {
572 outlen = UPAP_HEADERLEN + sizeof (u_char) + msglen;
587 PUTCHAR(msglen, outp);
588 MEMCPY(outp, msg, msglen);