PPP, MPPE, adapt decompressor to use pbuf

mppe_decompress() now takes a pointer to a pbuf pointer and re-use the
passed buffer for MPPE "decompression". Removed sub protocol handling
which can be shared among all decompressors in ppp.c
This commit is contained in:
Sylvain Rochet
2015-04-12 21:04:22 +02:00
parent bcfaeca373
commit ab1606a0f6
2 changed files with 21 additions and 49 deletions

View File

@@ -136,8 +136,7 @@ int mppe_compress(void *arg, unsigned char *ibuf, unsigned char *obuf,
int mppe_decomp_init(void *arg, unsigned char *options, int optlen, int unit,
int hdrlen, int mru, int debug);
void mppe_decomp_reset(void *arg);
int mppe_decompress(void *arg, unsigned char *ibuf, int isize, unsigned char *obuf,
int osize);
int mppe_decompress(void *arg, struct pbuf **pb);
void mppe_incomp(void *arg, unsigned char *ibuf, int icnt);
#endif /* MPPE_H */