mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-12-29 12:14:28 +00:00
netif: fix reset of IPv6 addresses in netif_add()
Previously, only the state of the first IPv6 address would be reset, thus possibly keeping other addresses valid (even though zeroed).
This commit is contained in:
parent
1a7ba24d13
commit
1c9e603299
@ -259,7 +259,7 @@ netif_add(struct netif *netif,
|
|||||||
#if LWIP_IPV6
|
#if LWIP_IPV6
|
||||||
for (i = 0; i < LWIP_IPV6_NUM_ADDRESSES; i++) {
|
for (i = 0; i < LWIP_IPV6_NUM_ADDRESSES; i++) {
|
||||||
ip_addr_set_zero_ip6(&netif->ip6_addr[i]);
|
ip_addr_set_zero_ip6(&netif->ip6_addr[i]);
|
||||||
netif->ip6_addr_state[0] = IP6_ADDR_INVALID;
|
netif->ip6_addr_state[i] = IP6_ADDR_INVALID;
|
||||||
}
|
}
|
||||||
netif->output_ip6 = netif_null_output_ip6;
|
netif->output_ip6 = netif_null_output_ip6;
|
||||||
#endif /* LWIP_IPV6 */
|
#endif /* LWIP_IPV6 */
|
||||||
|
Loading…
Reference in New Issue
Block a user