mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2025-08-06 22:44:38 +08:00
Initialized netif->dhcp to NULL.
This commit is contained in:
parent
07058652c1
commit
ce4dbcec6a
@ -69,6 +69,9 @@ netif_add(struct ip_addr *ipaddr, struct ip_addr *netmask,
|
|||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* netif not under DHCP control by default */
|
||||||
|
netif->dhcp = NULL;
|
||||||
|
|
||||||
/* 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…
x
Reference in New Issue
Block a user