mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-27 07:21:18 +01:00
pkg/lwip: only use ip4_addr_t component of IP4_ADDR_ANY at bootstrap
IP4_ADDR_ANY is a generic address of type IPv4 when lwIP is compiled with both IPv4 and IPv6, so we need to extract the `ip4_addr_t` component when using with `netif_add()` as that is the expected type.
This commit is contained in:
parent
c0b7560dde
commit
e80c473830
@ -155,8 +155,8 @@ static struct netif *_netif_add(struct netif *netif, void *state,
|
||||
netif_init_fn init, netif_input_fn input)
|
||||
{
|
||||
#if IS_USED(MODULE_LWIP_IPV4)
|
||||
return netif_add(netif, IP4_ADDR_ANY, IP4_ADDR_ANY, IP4_ADDR_ANY,
|
||||
state, init, input);
|
||||
return netif_add(netif, ip_2_ip4(IP4_ADDR_ANY), ip_2_ip4(IP4_ADDR_ANY),
|
||||
ip_2_ip4(IP4_ADDR_ANY), state, init, input);
|
||||
#else /* IS_USED(MODULE_LWIP_IPV4) */
|
||||
return netif_add(netif, state, init, input);
|
||||
#endif /* IS_USED(MODULE_LWIP_IPV4) */
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user