mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-10-05 22:29:49 +00:00
Forgot #if LWIP_DHCP around netif->dhcp = NULL;
This commit is contained in:
parent
e062b70da8
commit
cea002a088
@ -68,10 +68,10 @@ netif_add(struct ip_addr *ipaddr, struct ip_addr *netmask,
|
|||||||
DEBUGF(NETIF_DEBUG, ("netif_add(): out of memory for netif\n"));
|
DEBUGF(NETIF_DEBUG, ("netif_add(): out of memory for netif\n"));
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
#if LWIP_DHCP
|
||||||
/* netif not under DHCP control by default */
|
/* netif not under DHCP control by default */
|
||||||
netif->dhcp = NULL;
|
netif->dhcp = NULL;
|
||||||
|
#endif
|
||||||
/* remember netif specific state information data */
|
/* remember netif specific state information data */
|
||||||
netif->state = state;
|
netif->state = state;
|
||||||
netif->num = netifnum++;
|
netif->num = netifnum++;
|
||||||
|
Loading…
Reference in New Issue
Block a user