From a2e7a2fea179f0ea6f16e41ec4189f8cd812efef Mon Sep 17 00:00:00 2001
From: smlng <s@mlng.net>
Date: Fri, 17 Feb 2017 14:17:27 +0100
Subject: [PATCH] examples: add optional static link local ipv6 address in
 gnrc_networking

---
 examples/gnrc_networking/Makefile | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/examples/gnrc_networking/Makefile b/examples/gnrc_networking/Makefile
index 73fb7909af..a10d81ca29 100644
--- a/examples/gnrc_networking/Makefile
+++ b/examples/gnrc_networking/Makefile
@@ -40,6 +40,12 @@ USEMODULE += netstats_rpl
 # development process:
 CFLAGS += -DDEVELHELP
 
+# Comment the following 2 lines out to specify static link lokal IPv6 address
+# this might be useful for testing, in cases whre you cannot or do not want to
+# run a shell with ifconfig to get the real link lokal address.
+#IPV6_STATIC_LLADDR ?= '"fe80::cafe:cafe:cafe:1"'
+#CFLAGS += -DGNRC_IPV6_STATIC_LLADDR=$(IPV6_STATIC_LLADDR)
+
 # Comment this out to join RPL DODAGs even if DIOs do not contain
 # DODAG Configuration Options (see the doc for more info)
 # CFLAGS += -DGNRC_RPL_DODAG_CONF_OPTIONAL_ON_JOIN
-- 
GitLab