mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-11-19 23:12:09 +00:00
netif_add: zero-init netif->acd_list
This commit is contained in:
parent
e0be5a7f6d
commit
0caacf82b4
@ -369,6 +369,9 @@ netif_add(struct netif *netif,
|
|||||||
netif->num = netif_num;
|
netif->num = netif_num;
|
||||||
netif->input = input;
|
netif->input = input;
|
||||||
|
|
||||||
|
#if LWIP_ACD
|
||||||
|
netif->acd_list = NULL;
|
||||||
|
#endif /* LWIP_ACD */
|
||||||
NETIF_RESET_HINTS(netif);
|
NETIF_RESET_HINTS(netif);
|
||||||
#if ENABLE_LOOPBACK && LWIP_LOOPBACK_MAX_PBUFS
|
#if ENABLE_LOOPBACK && LWIP_LOOPBACK_MAX_PBUFS
|
||||||
netif->loop_cnt_current = 0;
|
netif->loop_cnt_current = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user