mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2026-08-09 17:13:49 +08:00
PPP, removed now useless struct ppp_addrs from ppp_pcb
Saved a few bytes of useless copy.
This commit is contained in:
@@ -582,9 +582,6 @@ void ppp_clear(ppp_pcb *pcb) {
|
||||
#endif /* PPP_STATS_SUPPORT */
|
||||
|
||||
memset(&pcb->phase, 0, sizeof(ppp_pcb) - ( (char*)&((ppp_pcb*)0)->phase - (char*)0 ) );
|
||||
#if PPP_IPV4_SUPPORT
|
||||
ip4_addr_set_u32(&pcb->addrs.netmask, IPADDR_BROADCAST);
|
||||
#endif /* PPP_IPV4_SUPPORT */
|
||||
|
||||
/*
|
||||
* Initialize each protocol.
|
||||
|
||||
Reference in New Issue
Block a user