Lines Matching refs:ibuf
337 mppe_compress(void *arg, unsigned char *ibuf, unsigned char *obuf, in mppe_compress() argument
346 proto = PPP_PROTOCOL(ibuf); in mppe_compress()
364 obuf[0] = PPP_ADDRESS(ibuf); in mppe_compress()
365 obuf[1] = PPP_CONTROL(ibuf); in mppe_compress()
389 ibuf += 2; /* skip to proto field */ in mppe_compress()
392 arc4_crypt(&state->arc4, obuf, ibuf, isize); in mppe_compress()
434 mppe_decompress(void *arg, unsigned char *ibuf, int isize, unsigned char *obuf, in mppe_decompress() argument
439 int flushed = MPPE_BITS(ibuf) & MPPE_BIT_FLUSHED; in mppe_decompress()
463 ccount = MPPE_CCOUNT(ibuf); in mppe_decompress()
469 if (!(MPPE_BITS(ibuf) & MPPE_BIT_ENCRYPTED)) { in mppe_decompress()
555 obuf[0] = PPP_ADDRESS(ibuf); /* +1 */ in mppe_decompress()
556 obuf[1] = PPP_CONTROL(ibuf); /* +1 */ in mppe_decompress()
558 ibuf += PPP_HDRLEN + MPPE_OVHD; in mppe_decompress()
566 arc4_crypt(&state->arc4, obuf, ibuf, 1); in mppe_decompress()
581 arc4_crypt(&state->arc4, obuf + 1, ibuf + 1, isize - 1); in mppe_decompress()
610 static void mppe_incomp(void *arg, unsigned char *ibuf, int icnt) in mppe_incomp() argument
615 (PPP_PROTOCOL(ibuf) >= 0x0021 && PPP_PROTOCOL(ibuf) <= 0x00fa)) in mppe_incomp()
618 "(proto %04x)\n", state->unit, PPP_PROTOCOL(ibuf)); in mppe_incomp()