mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-11-04 23:29:25 +00:00
netifapi.c: Fix compile when IPv4 is not enabled
This commit is contained in:
parent
d2bb569ee4
commit
bcab7fef84
@ -115,6 +115,7 @@ netifapi_netif_add(struct netif *netif,
|
||||
NETIFAPI_VAR_DECLARE(msg);
|
||||
NETIFAPI_VAR_ALLOC(msg);
|
||||
|
||||
#if LWIP_IPV4
|
||||
if (ipaddr == NULL) {
|
||||
ipaddr = IP4_ADDR_ANY;
|
||||
}
|
||||
@ -124,6 +125,7 @@ netifapi_netif_add(struct netif *netif,
|
||||
if (gw == NULL) {
|
||||
gw = IP4_ADDR_ANY;
|
||||
}
|
||||
#endif /* LWIP_IPV4 */
|
||||
|
||||
NETIFAPI_VAR_REF(msg).function = netifapi_do_netif_add;
|
||||
NETIFAPI_VAR_REF(msg).msg.netif = netif;
|
||||
|
Loading…
Reference in New Issue
Block a user