mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2025-02-06 00:39:59 +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 mppe_decomp_init(void *arg, unsigned char *options, int optlen, int unit,
|
||||||
int hdrlen, int mru, int debug);
|
int hdrlen, int mru, int debug);
|
||||||
void mppe_decomp_reset(void *arg);
|
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);
|
void mppe_incomp(void *arg, unsigned char *ibuf, int icnt);
|
||||||
|
|
||||||
#endif /* MPPE_H */
|
#endif /* MPPE_H */
|
||||||
|
@ -368,7 +368,7 @@ void mppe_decomp_reset(void *arg)
|
|||||||
/*
|
/*
|
||||||
* Decompress (decrypt) an MPPE packet.
|
* Decompress (decrypt) an MPPE packet.
|
||||||
*/
|
*/
|
||||||
int
|
err_t
|
||||||
mppe_decompress(void *arg, struct pbuf **pb)
|
mppe_decompress(void *arg, struct pbuf **pb)
|
||||||
{
|
{
|
||||||
struct ppp_mppe_state *state = (struct ppp_mppe_state *) arg;
|
struct ppp_mppe_state *state = (struct ppp_mppe_state *) arg;
|
||||||
@ -497,7 +497,7 @@ mppe_decompress(void *arg, struct pbuf **pb)
|
|||||||
/* good packet credit */
|
/* good packet credit */
|
||||||
state->sanity_errors >>= 1;
|
state->sanity_errors >>= 1;
|
||||||
|
|
||||||
return n0->tot_len;
|
return ERR_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user