From 42738fdff47f61b3e879b75c3d20c9ee21250cb7 Mon Sep 17 00:00:00 2001 From: Anas Nashif Date: Thu, 15 Dec 2016 09:01:31 -0500 Subject: [PATCH] net: multicast_eth_addr is use only with IPV6 Change-Id: Ia204a327ec7a85d1b0b0bf79778b4ebee8f294a6 Signed-off-by: Anas Nashif --- subsys/net/ip/l2/ethernet.c | 2 ++ 1 file changed, 2 insertions(+) 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 } };