Lines Matching refs:ibuf
367 mppe_compress(void *arg, unsigned char *ibuf, unsigned char *obuf, in mppe_compress() argument
378 proto = PPP_PROTOCOL(ibuf); in mppe_compress()
396 obuf[0] = PPP_ADDRESS(ibuf); in mppe_compress()
397 obuf[1] = PPP_CONTROL(ibuf); in mppe_compress()
421 ibuf += 2; /* skip to proto field */ in mppe_compress()
427 setup_sg(sg_in, ibuf, isize); in mppe_compress()
474 mppe_decompress(void *arg, unsigned char *ibuf, int isize, unsigned char *obuf, in mppe_decompress() argument
480 int flushed = MPPE_BITS(ibuf) & MPPE_BIT_FLUSHED; in mppe_decompress()
505 ccount = MPPE_CCOUNT(ibuf); in mppe_decompress()
511 if (!(MPPE_BITS(ibuf) & MPPE_BIT_ENCRYPTED)) { in mppe_decompress()
597 obuf[0] = PPP_ADDRESS(ibuf); /* +1 */ in mppe_decompress()
598 obuf[1] = PPP_CONTROL(ibuf); /* +1 */ in mppe_decompress()
600 ibuf += PPP_HDRLEN + MPPE_OVHD; in mppe_decompress()
610 setup_sg(sg_in, ibuf, 1); in mppe_decompress()
630 setup_sg(sg_in, ibuf + 1, isize - 1); in mppe_decompress()
664 static void mppe_incomp(void *arg, unsigned char *ibuf, int icnt) in mppe_incomp() argument
669 (PPP_PROTOCOL(ibuf) >= 0x0021 && PPP_PROTOCOL(ibuf) <= 0x00fa)) in mppe_incomp()
672 "(proto %04x)\n", state->unit, PPP_PROTOCOL(ibuf)); in mppe_incomp()