Lines Matching refs:cp
428 handle_ccp(cp, dp, len)
429 struct pkt *cp;
444 cp->flags &= ~(CCP_DECOMP_RUN | CCP_ISUP);
452 if (cp->state != NULL) {
453 (*cp->comp->decomp_free)(cp->state);
454 cp->state = NULL;
456 cp->comp = *comp;
457 cp->state = (*comp)->decomp_alloc(dp, CCP_OPT_LENGTH(dp));
458 cp->flags |= CCP_ISUP;
459 if (cp->state != NULL
460 && (*cp->comp->decomp_init)
461 (cp->state, dp, clen, 0, 0, 8192, 1))
462 cp->flags = (cp->flags & ~CCP_ERR) | CCP_DECOMP_RUN;
470 cp->flags &= ~(CCP_DECOMP_RUN | CCP_ISUP);
474 if (cp->flags & CCP_ISUP) {
475 if (cp->state && (cp->flags & CCP_DECOMP_RUN)) {
476 (*cp->comp->decomp_reset)(cp->state);
477 cp->flags &= ~CCP_ERROR;