mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2025-03-28 19:21:20 +00:00
PPP, updated pppapi_reopen() to follow ppp_reopen() prototype change
This commit is contained in:
parent
4f8198b298
commit
ad5f520c68
@ -209,7 +209,7 @@ int pppapi_over_l2tp_open(ppp_pcb *pcb, struct netif *netif, ip_addr_t *ipaddr,
|
|||||||
* Call ppp_reopen() inside the tcpip_thread context.
|
* Call ppp_reopen() inside the tcpip_thread context.
|
||||||
*/
|
*/
|
||||||
static void pppapi_do_ppp_reopen(struct pppapi_msg_msg *msg) {
|
static void pppapi_do_ppp_reopen(struct pppapi_msg_msg *msg) {
|
||||||
ppp_reopen(msg->ppp, msg->msg.reopen.holdoff);
|
msg->err = ppp_reopen(msg->ppp, msg->msg.reopen.holdoff);
|
||||||
TCPIP_PPPAPI_ACK(msg);
|
TCPIP_PPPAPI_ACK(msg);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -217,12 +217,13 @@ static void pppapi_do_ppp_reopen(struct pppapi_msg_msg *msg) {
|
|||||||
* Call ppp_reopen() in a thread-safe way by running that function inside the
|
* Call ppp_reopen() in a thread-safe way by running that function inside the
|
||||||
* tcpip_thread context.
|
* tcpip_thread context.
|
||||||
*/
|
*/
|
||||||
void pppapi_reopen(ppp_pcb *pcb, u16_t holdoff) {
|
int pppapi_reopen(ppp_pcb *pcb, u16_t holdoff) {
|
||||||
struct pppapi_msg msg;
|
struct pppapi_msg msg;
|
||||||
msg.function = pppapi_do_ppp_reopen;
|
msg.function = pppapi_do_ppp_reopen;
|
||||||
msg.msg.ppp = pcb;
|
msg.msg.ppp = pcb;
|
||||||
msg.msg.msg.reopen.holdoff = holdoff;
|
msg.msg.msg.reopen.holdoff = holdoff;
|
||||||
TCPIP_PPPAPI(&msg);
|
TCPIP_PPPAPI(&msg);
|
||||||
|
return msg.msg.err;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -128,7 +128,7 @@ int pppapi_over_l2tp_open(ppp_pcb *pcb, struct netif *netif, ip_addr_t *ipaddr,
|
|||||||
u8_t *secret, u8_t secret_len,
|
u8_t *secret, u8_t secret_len,
|
||||||
ppp_link_status_cb_fn link_status_cb, void *link_status_ctx);
|
ppp_link_status_cb_fn link_status_cb, void *link_status_ctx);
|
||||||
#endif /* PPPOL2TP_SUPPORT */
|
#endif /* PPPOL2TP_SUPPORT */
|
||||||
void pppapi_reopen(ppp_pcb *pcb, u16_t holdoff);
|
int pppapi_reopen(ppp_pcb *pcb, u16_t holdoff);
|
||||||
int pppapi_close(ppp_pcb *pcb);
|
int pppapi_close(ppp_pcb *pcb);
|
||||||
void pppapi_sighup(ppp_pcb *pcb);
|
void pppapi_sighup(ppp_pcb *pcb);
|
||||||
int pppapi_delete(ppp_pcb *pcb);
|
int pppapi_delete(ppp_pcb *pcb);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user