Lines Matching refs:u_char

86 static void upap_input(ppp_pcb *pcb, u_char *inpacket, int l);
89 static int upap_printpkt(const u_char *p, int plen, void (*printer) (void *, const char *, ...), void *arg);
124 static void upap_rauthreq(ppp_pcb *pcb, u_char *inp, int id, int len);
126 static void upap_rauthack(ppp_pcb *pcb, u_char *inp, int id, int len);
127 static void upap_rauthnak(ppp_pcb *pcb, u_char *inp, int id, int len);
130 static void upap_sresp(ppp_pcb *pcb, u_char code, u_char id, const char *msg, int msglen);
305 static void upap_input(ppp_pcb *pcb, u_char *inpacket, int l) {
306 u_char *inp;
307 u_char code, id;
359 static void upap_rauthreq(ppp_pcb *pcb, u_char *inp, int id, int len) {
360 u_char ruserlen, rpasswdlen;
392 len -= sizeof (u_char) + ruserlen + sizeof (u_char);
458 static void upap_rauthack(ppp_pcb *pcb, u_char *inp, int id, int len) {
459 u_char msglen;
474 len -= sizeof (u_char);
493 static void upap_rauthnak(ppp_pcb *pcb, u_char *inp, int id, int len) {
494 u_char msglen;
509 len -= sizeof (u_char);
531 u_char *outp;
534 outlen = UPAP_HEADERLEN + 2 * sizeof (u_char) +
544 outp = (u_char*)p->payload;
567 static void upap_sresp(ppp_pcb *pcb, u_char code, u_char id, const char *msg, int msglen) {
569 u_char *outp;
572 outlen = UPAP_HEADERLEN + sizeof (u_char) + msglen;
581 outp = (u_char*)p->payload;
602 static int upap_printpkt(const u_char *p, int plen, void (*printer) (void *, const char *, ...), void *arg) {
605 const u_char *user, *pwd, *msg;
606 const u_char *pstart;
633 user = (const u_char *) (p + 1);
634 pwd = (const u_char *) (p + ulen + 2);
657 msg = (const u_char *) (p + 1);