From ecd40ff824f77cc126c61e91254ca95f70b44de8 Mon Sep 17 00:00:00 2001 From: Benjamin Valentin Date: Thu, 13 Aug 2020 15:49:58 +0200 Subject: [PATCH] examples/gnrc_networking: add port configuration for socket_zep Set the socket_zep port so that native will connect to the default border router configuration. --- examples/gnrc_networking/Makefile | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/examples/gnrc_networking/Makefile b/examples/gnrc_networking/Makefile index 610d0bc501..139a202658 100644 --- a/examples/gnrc_networking/Makefile +++ b/examples/gnrc_networking/Makefile @@ -36,6 +36,17 @@ USEMODULE += netstats_rpl # development process: DEVELHELP ?= 1 +# Instead of simulating an Ethernet connection, we can also simulate +# an IEEE 802.15.4 radio using ZEP +USE_ZEP ?= 0 + +# set the ZEP port for native +ZEP_PORT_BASE ?= 17754 +ifeq (1,$(USE_ZEP)) + TERMFLAGS += -z [::1]:$(ZEP_PORT_BASE) + USEMODULE += socket_zep +endif + # Uncomment the following 2 lines to specify static link lokal IPv6 address # this might be useful for testing, in cases where you cannot or do not want to # run a shell with ifconfig to get the real link lokal address.