From 92d245de3b6172731367b9e3af7dbfec400c835f Mon Sep 17 00:00:00 2001 From: Benjamin Valentin Date: Fri, 3 Dec 2021 18:29:41 +0100 Subject: [PATCH] examples/gnrc_{networking, border_router}: allow to set ZEP L2 address --- examples/gnrc_border_router/Makefile.native.conf | 5 +++++ examples/gnrc_networking/Makefile | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/examples/gnrc_border_router/Makefile.native.conf b/examples/gnrc_border_router/Makefile.native.conf index 013bc5d88d..d6dcab5c9f 100644 --- a/examples/gnrc_border_router/Makefile.native.conf +++ b/examples/gnrc_border_router/Makefile.native.conf @@ -23,3 +23,8 @@ TERMPROG ?= sudo $(RIOTTOOLS)/zep_dispatch/start_network.sh $(TERMPROG_FLAGS) # -z [::1]:$PORT for each ZEP device TERMFLAGS ?= $(patsubst %,-z [::1]:%, $(shell seq $(ZEP_PORT_BASE) $(ZEP_PORT_MAX))) + +# set optional ZEP l2 address +ifneq (,$(ZEP_MAC)) + TERMFLAGS += --eui64=$(ZEP_MAC) +endif diff --git a/examples/gnrc_networking/Makefile b/examples/gnrc_networking/Makefile index f52d8cb532..858fa72527 100644 --- a/examples/gnrc_networking/Makefile +++ b/examples/gnrc_networking/Makefile @@ -52,6 +52,10 @@ ZEP_PORT_BASE ?= 17754 ifeq (1,$(USE_ZEP)) TERMFLAGS += -z [::1]:$(ZEP_PORT_BASE) USEMODULE += socket_zep + + ifneq (,$(ZEP_MAC)) + TERMFLAGS += --eui64=$(ZEP_MAC) + endif endif # Uncomment the following 2 lines to specify static link lokal IPv6 address