mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2026-08-11 01:53:48 +08:00
netif_add: zero-init netif->acd_list
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user