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:
Sylvain Rochet 2018-06-15 15:45:15 +02:00
parent 5278202f66
commit 738a2fe846

View File

@ -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 */
if (l2tp->phase == PPPOL2TP_STATE_ICCN_SENT && (s16_t)(l2tp->peer_nr - l2tp->our_ns) > 0) {
l2tp->phase = PPPOL2TP_STATE_DATA;
sys_untimeout(pppol2tp_timeout, l2tp);
ppp_start(l2tp->ppp); /* notify upper layers */
}