From b02bd2ca354d02096940e3926bd7e37bfd0359ab Mon Sep 17 00:00:00 2001 From: Frank Cusack Date: Fri, 7 Mar 2003 05:50:55 +0000 Subject: [PATCH] add debugging for coherency count --- linux/mppe/ppp_mppe_compress.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/linux/mppe/ppp_mppe_compress.c b/linux/mppe/ppp_mppe_compress.c index 2e98e18..33885df 100644 --- a/linux/mppe/ppp_mppe_compress.c +++ b/linux/mppe/ppp_mppe_compress.c @@ -333,6 +333,9 @@ mppe_compress(void *arg, unsigned char *ibuf, unsigned char *obuf, obuf += PPP_HDRLEN; state->ccount = (state->ccount + 1) % MPPE_CCOUNT_SPACE; + if (state->debug >= 7) + printk(KERN_DEBUG "mppe_compress[%d]: ccount %d\n", state->unit, + state->ccount); obuf[0] = state->ccount >> 8; obuf[1] = state->ccount & 0xff; @@ -423,6 +426,9 @@ mppe_decompress(void *arg, unsigned char *ibuf, int isize, unsigned char *obuf, osize = isize - MPPE_OVHD - 2; ccount = MPPE_CCOUNT(ibuf); + if (state->debug >= 7) + printk(KERN_DEBUG "mppe_decompress[%d]: ccount %d\n", state->unit, + ccount); /* sanity checks -- terminate with extreme prejudice */ if (!(MPPE_BITS(ibuf) & MPPE_BIT_ENCRYPTED)) { -- 2.39.2