From f177284a733c9a932c8a2a2fce3e1041c4ba85fe Mon Sep 17 00:00:00 2001 From: Niclas Finne Date: Thu, 7 Jun 2012 14:21:13 +0200 Subject: [PATCH] Added option to specify the IPv6 prefix --- examples/ipv6/rpl-border-router/Makefile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/examples/ipv6/rpl-border-router/Makefile b/examples/ipv6/rpl-border-router/Makefile index c166000bc..43230a17f 100644 --- a/examples/ipv6/rpl-border-router/Makefile +++ b/examples/ipv6/rpl-border-router/Makefile @@ -34,13 +34,17 @@ APPS += $(WITH_WEBSERVER) CFLAGS += -DWEBSERVER=2 endif +ifeq ($(PREFIX),) + PREFIX = aaaa::1/64 +endif + include $(CONTIKI)/Makefile.include $(CONTIKI)/tools/tunslip6: $(CONTIKI)/tools/tunslip6.c (cd $(CONTIKI)/tools && $(MAKE) tunslip6) connect-router: $(CONTIKI)/tools/tunslip6 - sudo $(CONTIKI)/tools/tunslip6 aaaa::1/64 + sudo $(CONTIKI)/tools/tunslip6 $(PREFIX) connect-router-cooja: $(CONTIKI)/tools/tunslip6 - sudo $(CONTIKI)/tools/tunslip6 -a 127.0.0.1 aaaa::1/64 + sudo $(CONTIKI)/tools/tunslip6 -a 127.0.0.1 $(PREFIX)