2009-05-08 14:49:36 +02:00
|
|
|
ifdef CONTIKI_HOME
|
|
|
|
CONTIKI = $(CONTIKI_HOME)
|
|
|
|
else
|
|
|
|
ifndef CONTIKI
|
2010-02-06 19:23:04 +01:00
|
|
|
CONTIKI=../../..
|
2009-05-08 14:49:36 +02:00
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2014-11-12 10:18:29 +01:00
|
|
|
DEFINES=WITH_SLIP=1,PROJECT_CONF_H=\"bridge-conf.h\"
|
2009-05-08 14:49:36 +02:00
|
|
|
|
|
|
|
ifndef TARGET
|
|
|
|
TARGET=sky
|
|
|
|
endif
|
|
|
|
|
|
|
|
PROJECTDIRS = dev
|
|
|
|
PROJECT_SOURCEFILES = fakeuip.c sicslow_ethernet.c
|
|
|
|
|
|
|
|
all: uip6-bridge-tap.sky
|
|
|
|
|
2009-10-26 14:20:31 +01:00
|
|
|
upload: uip6-bridge-tap.ihex
|
|
|
|
cp $< $(IHEXFILE)
|
2009-11-02 12:46:49 +01:00
|
|
|
$(MAKE) sky-u.$(subst /,-,$(word $(MOTE), $(MOTES)))
|
2009-10-26 14:20:31 +01:00
|
|
|
|
2014-11-12 10:18:29 +01:00
|
|
|
CONTIKI_WITH_IPV6 = 1
|
2009-05-08 14:49:36 +02:00
|
|
|
include $(CONTIKI)/Makefile.include
|
2009-10-26 14:20:31 +01:00
|
|
|
|
|
|
|
../../tapslip6: ../../tapslip6.c
|
|
|
|
(cd ../../; $(MAKE) tapslip6)
|
|
|
|
|
|
|
|
ifndef MOTE
|
|
|
|
MOTE=1
|
|
|
|
endif
|
|
|
|
|
|
|
|
connect: ../../tapslip6
|
|
|
|
sudo ../../tapslip6 -t tap0 -s $(USBDEVPREFIX)$(word $(MOTE), $(CMOTES)) 127.0.0.1 255.0.0.0
|
|
|
|
|
|
|
|
bridge:
|
2010-02-06 19:23:04 +01:00
|
|
|
@sudo service radvd restart || echo radvd could not be restarted
|
2015-09-30 16:06:58 +02:00
|
|
|
sudo route add -6 fd00::/64 tap0
|
|
|
|
sudo ip -6 address add fd00::1/64 dev tap0
|