Contiki-NG
Functions
rpl-dag.h File Reference

Header file for rpl-dag module. More...

#include "uip.h"

Go to the source code of this file.

Functions

const char * rpl_dag_state_to_str (enum rpl_dag_state state)
 Returns a textual description of the current DAG state. More...
 
int rpl_dag_get_root_ipaddr (uip_ipaddr_t *ipaddr)
 Returns the IPv6 address of the RPL DAG root, if any. More...
 
void rpl_dag_poison_and_leave (void)
 Start poisoning and leave the DAG after a delay. More...
 
void rpl_dag_leave (void)
 Leaves the current DAG. More...
 
void rpl_dag_periodic (unsigned seconds)
 A function called periodically. More...
 
void rpl_global_repair (const char *str)
 Triggers a RPL global repair. More...
 
void rpl_local_repair (const char *str)
 Triggers a RPL local repair. More...
 
int rpl_is_addr_in_our_dag (const uip_ipaddr_t *addr)
 Tells whether a given global IPv6 address is in our current DAG. More...
 
void rpl_dag_init_root (uint8_t instance_id, uip_ipaddr_t *dag_id, uip_ipaddr_t *prefix, unsigned prefix_len, uint8_t flags)
 Initializes DAG internal structure for a root node. More...
 
rpl_instance_trpl_get_default_instance (void)
 Returns pointer to the default instance (for compatibility with legagy RPL code) More...
 
rpl_dag_trpl_get_any_dag (void)
 Returns pointer to any DAG (for compatibility with legagy RPL code) More...
 
int rpl_process_hbh (rpl_nbr_t *sender, uint16_t sender_rank, int loop_detected, int rank_error_signaled)
 Processes Hop-by-Hop (HBH) Extension Header of a packet currently being forwrded. More...
 
void rpl_process_dis (uip_ipaddr_t *from, int is_multicast)
 Processes incoming DIS. More...
 
void rpl_process_dio (uip_ipaddr_t *from, rpl_dio_t *dio)
 Processes incoming DIO. More...
 
void rpl_process_dao (uip_ipaddr_t *from, rpl_dao_t *dao)
 Processes incoming DAO. More...
 
void rpl_process_dao_ack (uint8_t sequence, uint8_t status)
 Processes incoming DAO-ACK. More...
 
int rpl_dag_ready_to_advertise (void)
 Tells whether RPL is ready to advertise the DAG. More...
 
void rpl_dag_update_state (void)
 Updates RPL internal state: selects preferred parent, updates rank & metreic container, triggers control traffic accordingly and updates uIP6 internal state.
 
void rpl_dag_init (void)
 Initializes rpl-dag module.
 

Detailed Description

Header file for rpl-dag module.

Author
Joakim Eriksson joaki.nosp@m.me@s.nosp@m.ics.s.nosp@m.e, Nicolas Tsiftes nvt@s.nosp@m.ics..nosp@m.se, Simon DUquennoy simon.nosp@m..duq.nosp@m.uenno.nosp@m.y@in.nosp@m.ria.f.nosp@m.r

Definition in file rpl-dag.h.