Lines Matching defs:code
10 * 1. Redistributions of source code must retain the above copyright
65 static void fsm_rconfnakrej(fsm *f, int code, int id, u_char *inp, int len);
320 u_char code, id;
324 * Parse header (code, id and length).
332 GETCHAR(code, inp);
352 * Action depends on code.
354 switch (code) {
365 fsm_rconfnakrej(f, code, id, inp, len);
382 || !(*f->callbacks->extcode)(f, code, id, inp, len) )
393 int code, reject_if_disagree;
423 * to protocol-specific code for checking.
427 code = (*f->callbacks->reqci)(f, inp, &len, reject_if_disagree);
429 code = CONFREJ; /* Reject all CI */
431 code = CONFACK;
434 fsm_sdata(f, code, id, inp, len);
436 if (code == CONFACK) {
450 if( code == CONFNAK )
515 static void fsm_rconfnakrej(fsm *f, int code, int id, u_char *inp, int len) {
522 if (code == CONFNAK) {
646 u_char code, id;
652 GETCHAR(code, inp);
654 ppp_warn("%s: Rcvd Code-Reject for code %d, id %d", PROTO_NAME(f), code, id);
770 void fsm_sdata(fsm *f, u_char code, u_char id, const u_char *data, int datalen) {
793 PUTCHAR(code, outp);