mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2025-01-04 02:39:15 +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"));
|
||||
return NULL;
|
||||
}
|
||||
|
||||
#if LWIP_DHCP
|
||||
/* netif not under DHCP control by default */
|
||||
netif->dhcp = NULL;
|
||||
|
||||
#endif
|
||||
/* remember netif specific state information data */
|
||||
netif->state = state;
|
||||
netif->num = netifnum++;
|
||||
|
Loading…
Reference in New Issue
Block a user