2015-03-24 12:35:16 +00:00
|
|
|
#include "contiki.h"
|
|
|
|
#include "contiki-net.h"
|
|
|
|
#include "ip64.h"
|
|
|
|
#include "net/netstack.h"
|
2017-06-10 12:35:39 +00:00
|
|
|
#include "rpl-dag-root.h"
|
2015-03-24 12:35:16 +00:00
|
|
|
|
|
|
|
/*---------------------------------------------------------------------------*/
|
|
|
|
PROCESS(router_node_process, "Router node");
|
|
|
|
AUTOSTART_PROCESSES(&router_node_process);
|
|
|
|
/*---------------------------------------------------------------------------*/
|
|
|
|
PROCESS_THREAD(router_node_process, ev, data)
|
|
|
|
{
|
|
|
|
PROCESS_BEGIN();
|
|
|
|
|
|
|
|
/* Set us up as a RPL root node. */
|
2017-06-10 12:35:39 +00:00
|
|
|
rpl_dag_root_init_dag_delay();
|
2015-03-24 12:35:16 +00:00
|
|
|
|
|
|
|
/* Initialize the IP64 module so we'll start translating packets */
|
|
|
|
ip64_init();
|
|
|
|
|
|
|
|
/* ... and do nothing more. */
|
|
|
|
while(1) {
|
|
|
|
PROCESS_WAIT_EVENT();
|
|
|
|
}
|
|
|
|
|
|
|
|
PROCESS_END();
|
|
|
|
}
|
|
|
|
/*---------------------------------------------------------------------------*/
|