mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-11-05 08:28:32 +00:00
zepif: fix compiling with IPv4 disabled
This commit is contained in:
parent
971404ff90
commit
972f32dd47
@ -237,9 +237,12 @@ zepif_init(struct netif *netif)
|
||||
if (state->init.zep_dst_udp_port == 0) {
|
||||
state->init.zep_dst_udp_port = ZEPIF_DEFAULT_UDP_PORT;
|
||||
}
|
||||
#if LWIP_IPV4
|
||||
if (state->init.zep_dst_ip_addr == NULL) {
|
||||
/* With IPv4 enabled, default to broadcasting packets if no address is set */
|
||||
state->init.zep_dst_ip_addr = IP_ADDR_BROADCAST;
|
||||
}
|
||||
#endif /* LWIP_IPV4 */
|
||||
|
||||
netif->state = NULL;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user