diff --git a/src/core/netif.c b/src/core/netif.c index ddedb4cc..880d7454 100644 --- a/src/core/netif.c +++ b/src/core/netif.c @@ -291,10 +291,8 @@ netif_add(struct netif *netif, if (gw == NULL) { gw = ip_2_ip4(IP4_ADDR_ANY); } -#endif /* LWIP_IPV4 */ /* reset new interface configuration state */ -#if LWIP_IPV4 ip_addr_set_zero_ip4(&netif->ip_addr); ip_addr_set_zero_ip4(&netif->netmask); ip_addr_set_zero_ip4(&netif->gw);