Lines Matching defs:ccount
52 #define MPPE_CCOUNT_SPACE 0x1000 /* The size of the ccount space */
163 state->ccount = MPPE_CCOUNT_SPACE - 1;
223 state->ccount = (state->ccount + 1) % MPPE_CCOUNT_SPACE;
224 PPPDEBUG(LOG_DEBUG, ("mppe_compress[%d]: ccount %d\n", pcb->netif->num, state->ccount));
226 pl[0] = state->ccount>>8;
227 pl[1] = state->ccount;
230 ((state->ccount & 0xff) == 0xff) || /* "flag" packet */
283 u16_t ccount;
297 ccount = MPPE_CCOUNT(pl);
298 PPPDEBUG(LOG_DEBUG, ("mppe_decompress[%d]: ccount %d\n",
299 pcb->netif->num, ccount));
315 if (state->stateful && ((ccount & 0xff) == 0xff) && !flushed) {
328 if ((ccount - state->ccount) % MPPE_CCOUNT_SPACE > MPPE_CCOUNT_SPACE / 2) {
334 while (state->ccount != ccount) {
336 state->ccount = (state->ccount + 1) % MPPE_CCOUNT_SPACE;
342 state->ccount = (state->ccount + 1) % MPPE_CCOUNT_SPACE;
343 if (ccount != state->ccount) {
345 * (ccount > state->ccount)
360 while ((ccount & ~0xff) !=
361 (state->ccount & ~0xff)) {
363 state->ccount =
364 (state->ccount +
370 state->ccount = ccount;