osd-contiki/tools/stm32w/uip6_bridge
2013-11-18 23:26:37 +01:00
..
dev Removed all old RCS tags in the Contiki source tree. Those RCS tags are not used any more, as we are now using git to manage the Contiki source tree 2012-10-26 15:54:49 +02:00
bridge-conf.h Removed all old RCS tags in the Contiki source tree. Those RCS tags are not used any more, as we are now using git to manage the Contiki source tree 2012-10-26 15:54:49 +02:00
fakeuip.c Port apps, examples, platforms and tools so they use the new neighbor and route API. 2013-08-19 17:48:30 +02:00
Makefile Travis-ci tweaks, added CPUREV to 01 regression test, needed by mbxxx platform 2013-07-12 17:07:04 +02:00
README.md Rename to md 2013-03-26 23:15:37 +01:00
sicslow_ethernet.c Added tools for STM32W. 2010-10-25 10:42:40 +00:00
sicslow_ethernet.h Added tools for STM32W. 2010-10-25 10:42:40 +00:00
uip6-bridge-tap.c Added the const keyword to functions that use the tcpip_set_outputfunc(), which now takes a const argument 2013-11-18 23:26:37 +01:00

See siscslow_ethernet.c for information about translation between 802.15.4 and 802.3 addresses. Devices must have a proper EUI-64 address for this bridge to work. If the EUI-64 address of the devices cannot be changed and they are incompatible with the translation mechanism, you have to change the translation rules (they are defined in mac_createSicslowpanLongAddr() and mac_createEthernetAddr()).

Usage example:

run tapslip6 (source file are located in tools folder).

./tapslip6 -p 2001:db8:bbbb:abce::/64

where 2001:db8:bbbb:abce:: is the network address and 64 is the the prefix length. The remaining 64 bits will be derived from the EUI-64 (two middle bytes will be removed).

You can also simply create an edge router in one of the network nodes: you have to enable routing and set the appropriate forwarding rules, as shown in contiki-init-net.c. Then you have to add the corresponding rule on your machine, for example:

route -A inet6 add 2001:db8:bbbb:abcd::/64 gw 2001:db8:bbbb:abce:280:e102::8a.

where 2001:db8:bbbb:abce:280:e102::6c is the address of the edge node and 2001:db8:bbbb🔡:/64 is the lowpan address.