Contiki-NG
|
Logic for DAG neighbors in RPL. More...
#include "contiki.h"
#include "net/routing/rpl-lite/rpl.h"
#include "net/link-stats.h"
#include "net/nbr-table.h"
#include "net/ipv6/uiplib.h"
#include "sys/log.h"
Go to the source code of this file.
Functions | |
int | rpl_neighbor_snprint (char *buf, int buflen, rpl_nbr_t *nbr) |
Print a textual description of RPL neighbor into a string. More... | |
void | rpl_neighbor_print_list (const char *str) |
Prints a summary of all RPL neighbors and their properties. More... | |
int | rpl_neighbor_count (void) |
Returns the number of nodes in the RPL neighbor table. More... | |
rpl_nbr_t * | rpl_neighbor_get_from_lladdr (uip_lladdr_t *addr) |
Returns a neighbor from its link-layer address. More... | |
int | rpl_neighbor_is_acceptable_parent (rpl_nbr_t *nbr) |
Tells whether a nbr is acceptable as per the OF's definition. More... | |
uint16_t | rpl_neighbor_get_link_metric (rpl_nbr_t *nbr) |
Returns a neighbor's link metric. More... | |
rpl_rank_t | rpl_neighbor_rank_via_nbr (rpl_nbr_t *nbr) |
Returns our rank if selecting a given parent as preferred parent. More... | |
const linkaddr_t * | rpl_neighbor_get_lladdr (rpl_nbr_t *nbr) |
Returns a neighbors's link-layer address. More... | |
uip_ipaddr_t * | rpl_neighbor_get_ipaddr (rpl_nbr_t *nbr) |
Returns a neighbor's (link-local) IPv6 address. More... | |
const struct link_stats * | rpl_neighbor_get_link_stats (rpl_nbr_t *nbr) |
Returns a neighbor's link statistics. More... | |
int | rpl_neighbor_is_fresh (rpl_nbr_t *nbr) |
Tells wether we have fresh link information towards a given neighbor. More... | |
int | rpl_neighbor_is_reachable (rpl_nbr_t *nbr) |
Tells wether we a given neighbor is reachable. More... | |
int | rpl_neighbor_is_parent (rpl_nbr_t *nbr) |
Tells whether a neighbor is in the parent set. More... | |
void | rpl_neighbor_set_preferred_parent (rpl_nbr_t *nbr) |
Set current RPL preferred parent and update DS6 default route accordingly. More... | |
void | rpl_neighbor_remove_all (void) |
Empty the RPL neighbor table. | |
rpl_nbr_t * | rpl_neighbor_get_from_ipaddr (uip_ipaddr_t *addr) |
Returns a neighbor from its link-local IPv6 address. More... | |
rpl_nbr_t * | rpl_neighbor_select_best (void) |
Returns the best candidate for preferred parent. More... | |
void | rpl_neighbor_init (void) |
Initialize rpl-dag-neighbor module. | |
Logic for DAG neighbors in RPL.
Definition in file rpl-neighbor.c.