mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2026-05-18 22:26:41 +08:00
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:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user