Microchip® Advanced Software Framework

simple-rpl.c File Reference
#include "contiki.h"
#include "contiki-net.h"
#include "net/rpl/rpl.h"
#include "net/rpl/rpl-private.h"
#include "simple-rpl.h"
#include <string.h>
#include "net/ip/uip-debug.h"

Macros

#define _DEBUG_   DEBUG_NONE
 
#define RPL_DAG_GRACE_PERIOD   (CLOCK_SECOND * 20 * 1)
 

Functions

static void create_dag_callback (void *ptr)
 
static void route_callback (int event, uip_ipaddr_t *route, uip_ipaddr_t *ipaddr, int numroutes)
 
static uip_ipaddr_tset_global_address (void)
 
const uip_ipaddr_tsimple_rpl_global_address (void)
 
void simple_rpl_global_repair (void)
 
void simple_rpl_init (void)
 
void simple_rpl_init_dag (void)
 
int simple_rpl_init_dag_immediately (void)
 
void simple_rpl_local_repair (void)
 
const uip_ipaddr_tsimple_rpl_parent (void)
 
const uip_ipaddr_tsimple_rpl_root (void)
 

Variables

static struct ctimer c
 
static struct uip_ds6_notification n
 
static uint8_t to_become_root
 

#define _DEBUG_   DEBUG_NONE
#define RPL_DAG_GRACE_PERIOD   (CLOCK_SECOND * 20 * 1)

static void route_callback ( int  event,
uip_ipaddr_t route,
uip_ipaddr_t ipaddr,
int  numroutes 
)
static
void simple_rpl_global_repair ( void  )
void simple_rpl_init ( void  )
void simple_rpl_init_dag ( void  )
void simple_rpl_local_repair ( void  )
const uip_ipaddr_t* simple_rpl_parent ( void  )
const uip_ipaddr_t* simple_rpl_root ( void  )

uint8_t to_become_root
static