From 972f32dd474c7863489ac1ebbe037d659591b0d1 Mon Sep 17 00:00:00 2001 From: goldsimon Date: Wed, 7 Mar 2018 19:58:09 +0100 Subject: [PATCH] zepif: fix compiling with IPv4 disabled --- src/netif/zepif.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/netif/zepif.c b/src/netif/zepif.c index bf838b35..6e6f27ac 100644 --- a/src/netif/zepif.c +++ b/src/netif/zepif.c @@ -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;