Contiki-NG
|
Logic for Directed Acyclic Graphs in RPL. More...
#include "net/routing/rpl-lite/rpl.h"
#include "net/ipv6/uip-sr.h"
#include "net/nbr-table.h"
#include "net/link-stats.h"
#include "sys/log.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_leave (void) |
Leaves the current DAG. More... | |
void | rpl_dag_poison_and_leave (void) |
Start poisoning and leave the DAG after a delay. More... | |
void | rpl_dag_periodic (unsigned seconds) |
A function called periodically. 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... | |
rpl_instance_t * | rpl_get_default_instance (void) |
Returns pointer to the default instance (for compatibility with legagy RPL code) More... | |
rpl_dag_t * | rpl_get_any_dag (void) |
Returns pointer to any DAG (for compatibility with legagy RPL code) More... | |
void | rpl_refresh_routes (const char *str) |
Triggers a route fresh via DTSN increment. 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_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_process_dio (uip_ipaddr_t *from, rpl_dio_t *dio) |
Processes incoming DIO. More... | |
void | rpl_process_dis (uip_ipaddr_t *from, int is_multicast) |
Processes incoming DIS. More... | |
void | rpl_process_dao (uip_ipaddr_t *from, rpl_dao_t *dao) |
Processes incoming DAO. 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_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... | |
void | rpl_dag_init (void) |
Initializes rpl-dag module. | |
Logic for Directed Acyclic Graphs in RPL.
Definition in file rpl-dag.c.