diff --git a/src/include/netif/ppp/mppe.h b/src/include/netif/ppp/mppe.h index 6bd22f80..4fa0274f 100644 --- a/src/include/netif/ppp/mppe.h +++ b/src/include/netif/ppp/mppe.h @@ -152,12 +152,10 @@ struct ppp_mppe_state { int debug; }; -int mppe_comp_init(struct ppp_mppe_state *state, unsigned char *options, int optlen, int unit, - int hdrlen, int debug); +int mppe_init(struct ppp_mppe_state *state, unsigned char *options, int optlen, + int unit, int debug, const char *debugstr); void mppe_comp_reset(struct ppp_mppe_state *state); err_t mppe_compress(struct ppp_mppe_state *state, struct pbuf **pb, u16_t protocol); -int mppe_decomp_init(struct ppp_mppe_state *state, unsigned char *options, int optlen, int unit, - int hdrlen, int mru, int debug); void mppe_decomp_reset(struct ppp_mppe_state *state); err_t mppe_decompress(struct ppp_mppe_state *state, struct pbuf **pb); void mppe_incomp(struct ppp_mppe_state *state, unsigned char *ibuf, int icnt); diff --git a/src/netif/ppp/mppe.c b/src/netif/ppp/mppe.c index 1b5e53f2..be8d3df7 100644 --- a/src/netif/ppp/mppe.c +++ b/src/netif/ppp/mppe.c @@ -116,7 +116,7 @@ static void mppe_rekey(struct ppp_mppe_state * state, int initial_key) /* * Initialize (de)compressor state. */ -static int +int mppe_init(struct ppp_mppe_state *state, unsigned char *options, int optlen, int unit, int debug, const char *debugstr) { @@ -184,14 +184,6 @@ mppe_init(struct ppp_mppe_state *state, unsigned char *options, int optlen, int return 1; } -int -mppe_comp_init(struct ppp_mppe_state *state, unsigned char *options, int optlen, int unit, - int hdrlen, int debug) -{ - LWIP_UNUSED_ARG(hdrlen); - return mppe_init(state, options, optlen, unit, debug, "mppe_comp_init"); -} - /* * We received a CCP Reset-Request (actually, we are sending a Reset-Ack), * tell the compressor to rekey. Note that we MUST NOT rekey for @@ -265,15 +257,6 @@ mppe_compress(struct ppp_mppe_state *state, struct pbuf **pb, u16_t protocol) return ERR_OK; } -int -mppe_decomp_init(struct ppp_mppe_state *state, unsigned char *options, int optlen, int unit, - int hdrlen, int mru, int debug) -{ - LWIP_UNUSED_ARG(hdrlen); - LWIP_UNUSED_ARG(mru); - return mppe_init(state, options, optlen, unit, debug, "mppe_decomp_init"); -} - /* * We received a CCP Reset-Ack. Just ignore it. */