mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-08-25 07:33:11 +00:00
PPP, PPPoS, also clear last_xmit when resetting PPPoS control block
This commit is contained in:
parent
0a8b1c199d
commit
40c671b1a5
@ -349,7 +349,7 @@ pppos_listen(ppp_pcb *ppp, void *ctx, struct ppp_addrs *addrs)
|
|||||||
|
|
||||||
ppp_clear(ppp);
|
ppp_clear(ppp);
|
||||||
/* reset PPPoS control block to its initial state */
|
/* reset PPPoS control block to its initial state */
|
||||||
memset(&pppos->out_accm, 0, sizeof(pppos_pcb) - ( (char*)&((pppos_pcb*)0)->out_accm - (char*)0 ) );
|
memset(&pppos->last_xmit, 0, sizeof(pppos_pcb) - ( (char*)&((pppos_pcb*)0)->last_xmit - (char*)0 ) );
|
||||||
|
|
||||||
/* Wait passively */
|
/* Wait passively */
|
||||||
lcp_wo = &ppp->lcp_wantoptions;
|
lcp_wo = &ppp->lcp_wantoptions;
|
||||||
|
Loading…
Reference in New Issue
Block a user