Lines Matching defs:inp
63 static void fsm_rconfreq(fsm *f, u_char id, u_char *inp, int len);
64 static void fsm_rconfack(fsm *f, int id, u_char *inp, int len);
65 static void fsm_rconfnakrej(fsm *f, int code, int id, u_char *inp, int len);
68 static void fsm_rcoderej(fsm *f, u_char *inp, int len);
319 u_char *inp;
327 inp = inpacket;
332 GETCHAR(code, inp);
333 GETCHAR(id, inp);
334 GETSHORT(len, inp);
356 fsm_rconfreq(f, id, inp, len);
360 fsm_rconfack(f, id, inp, len);
365 fsm_rconfnakrej(f, code, id, inp, len);
369 fsm_rtermreq(f, id, inp, len);
377 fsm_rcoderej(f, inp, len);
382 || !(*f->callbacks->extcode)(f, code, id, inp, len) )
392 static void fsm_rconfreq(fsm *f, u_char id, u_char *inp, int len) {
427 code = (*f->callbacks->reqci)(f, inp, &len, reject_if_disagree);
434 fsm_sdata(f, code, id, inp, len);
459 static void fsm_rconfack(fsm *f, int id, u_char *inp, int len) {
464 if( !(f->callbacks->ackci? (*f->callbacks->ackci)(f, inp, len):
467 ppp_error("Received bad configure-ack: %P", inp, len);
515 static void fsm_rconfnakrej(fsm *f, int code, int id, u_char *inp, int len) {
526 || !(ret = f->callbacks->nakci(f, inp, len, treat_as_reject))) {
527 ppp_error("Received bad configure-nak: %P", inp, len);
533 || !(ret = f->callbacks->rejci(f, inp, len))) {
534 ppp_error("Received bad configure-rej: %P", inp, len);
645 static void fsm_rcoderej(fsm *f, u_char *inp, int len) {
652 GETCHAR(code, inp);
653 GETCHAR(id, inp);