diff --git a/subsys/net/ip/l2/ethernet.c b/subsys/net/ip/l2/ethernet.c index 868a7e6dde3..0c5bcde58d9 100644 --- a/subsys/net/ip/l2/ethernet.c +++ b/subsys/net/ip/l2/ethernet.c @@ -28,8 +28,10 @@ #include "net_private.h" #include "ipv6.h" +#if defined(CONFIG_NET_IPV6) static const struct net_eth_addr multicast_eth_addr = { { 0x33, 0x33, 0x00, 0x00, 0x00, 0x00 } }; +#endif static const struct net_eth_addr broadcast_eth_addr = { { 0xff, 0xff, 0xff, 0xff, 0xff, 0xff } };