Change the default IPv6 prefix from aaaa::/64 to fd00::/64

This commit is contained in:
Simon Duquennoy 2015-09-30 16:06:58 +02:00 committed by Simon Duquennoy
parent 8b3d220761
commit dea04c67d7
78 changed files with 165 additions and 131 deletions

View file

@ -34,6 +34,7 @@
#include "contiki.h"
#include "net/ip/uip.h"
#include "net/ipv6/uip-ds6.h"
#include "tools/rpl-tools.h"
#include "rest-engine.h"
#include "light-sensor.h"
@ -350,7 +351,7 @@ PROCESS_THREAD(start_app, ev, data)
/* Start net stack */
if(is_coordinator) {
uip_ipaddr_t prefix;
uip_ip6addr(&prefix, 0xaaaa, 0, 0, 0, 0, 0, 0, 0);
uip_ip6addr(&prefix, UIP_DS6_DEFAULT_PREFIX, 0, 0, 0, 0, 0, 0, 0);
rpl_tools_init(&prefix);
} else {
rpl_tools_init(NULL);