68 |
DEBUGF(NETIF_DEBUG, ("netif_add(): out of memory for netif\n")); |
DEBUGF(NETIF_DEBUG, ("netif_add(): out of memory for netif\n")); |
69 |
return NULL; |
return NULL; |
70 |
} |
} |
71 |
|
#if LWIP_DHCP |
72 |
/* netif not under DHCP control by default */ |
/* netif not under DHCP control by default */ |
73 |
netif->dhcp = NULL; |
netif->dhcp = NULL; |
74 |
|
#endif |
75 |
/* remember netif specific state information data */ |
/* remember netif specific state information data */ |
76 |
netif->state = state; |
netif->state = state; |
77 |
netif->num = netifnum++; |
netif->num = netifnum++; |