mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-10-05 22:29:49 +00:00
PPP, chained returns up to ppp_open()
ppp_open() now returns lower level protocol return value if something failed.
This commit is contained in:
parent
8a8cba75a2
commit
07f9212799
@ -258,8 +258,7 @@ int ppp_open(ppp_pcb *pcb, u16_t holdoff) {
|
|||||||
PPPDEBUG(LOG_DEBUG, ("ppp_open() called, holdoff=%d\n", holdoff));
|
PPPDEBUG(LOG_DEBUG, ("ppp_open() called, holdoff=%d\n", holdoff));
|
||||||
|
|
||||||
if (holdoff == 0) {
|
if (holdoff == 0) {
|
||||||
ppp_do_open(pcb);
|
return pcb->link_command_cb(pcb->link_ctx_cb, PPP_LINK_COMMAND_CONNECT);
|
||||||
return PPPERR_NONE;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
new_phase(pcb, PPP_PHASE_HOLDOFF);
|
new_phase(pcb, PPP_PHASE_HOLDOFF);
|
||||||
|
Loading…
Reference in New Issue
Block a user