mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-12-27 06:14:09 +00:00
PPP, PPPoL2TP: stop ICCN timeout when receiving ICCN ack
Remove spurious and hitless timeout function call once L2TP reach "data" state. Signed-off-by: Sylvain Rochet <gradator@gradator.net>
This commit is contained in:
parent
5278202f66
commit
738a2fe846
@ -510,6 +510,7 @@ static void pppol2tp_dispatch_control_packet(pppol2tp_pcb *l2tp, u16_t port, str
|
|||||||
/* Handle the special case of the ICCN acknowledge */
|
/* Handle the special case of the ICCN acknowledge */
|
||||||
if (l2tp->phase == PPPOL2TP_STATE_ICCN_SENT && (s16_t)(l2tp->peer_nr - l2tp->our_ns) > 0) {
|
if (l2tp->phase == PPPOL2TP_STATE_ICCN_SENT && (s16_t)(l2tp->peer_nr - l2tp->our_ns) > 0) {
|
||||||
l2tp->phase = PPPOL2TP_STATE_DATA;
|
l2tp->phase = PPPOL2TP_STATE_DATA;
|
||||||
|
sys_untimeout(pppol2tp_timeout, l2tp);
|
||||||
ppp_start(l2tp->ppp); /* notify upper layers */
|
ppp_start(l2tp->ppp); /* notify upper layers */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user