mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2025-01-29 00:32:51 +00:00
PPP, MPPE, using err_t return for mppe_decompress
This commit is contained in:
parent
ab1606a0f6
commit
421582d747
@ -136,7 +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, struct pbuf **pb);
|
||||
err_t mppe_decompress(void *arg, struct pbuf **pb);
|
||||
void mppe_incomp(void *arg, unsigned char *ibuf, int icnt);
|
||||
|
||||
#endif /* MPPE_H */
|
||||
|
@ -368,7 +368,7 @@ void mppe_decomp_reset(void *arg)
|
||||
/*
|
||||
* Decompress (decrypt) an MPPE packet.
|
||||
*/
|
||||
int
|
||||
err_t
|
||||
mppe_decompress(void *arg, struct pbuf **pb)
|
||||
{
|
||||
struct ppp_mppe_state *state = (struct ppp_mppe_state *) arg;
|
||||
@ -497,7 +497,7 @@ mppe_decompress(void *arg, struct pbuf **pb)
|
||||
/* good packet credit */
|
||||
state->sanity_errors >>= 1;
|
||||
|
||||
return n0->tot_len;
|
||||
return ERR_OK;
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
x
Reference in New Issue
Block a user