Contiki-NG
Loading...
Searching...
No Matches
rpl_of Struct Reference

API for RPL objective functions (OF) More...

#include <os/net/routing/rpl-lite/rpl-types.h>

Detailed Description

API for RPL objective functions (OF)

  • reset(dag) Resets the objective function state for a specific DAG. This function is called when doing a global repair on the DAG.
  • nbr_link_metric(n) Returns the link metric of a neighbor
  • nbr_has_usable_link(n) Returns 1 iff the neighbor has a usable link as defined by the OF
  • nbr_is_acceptable_parent(n) Returns 1 iff the neighbor has a usable rank/link as defined by the OF
  • nbr_path_cost(n) Returns the path cost of a neighbor
  • rank_via_nbr(n) Returns our rank if we select a given neighbor as preferred parent
  • best_parent(n1, n2) Compares two neighbors and returns the best one, according to the OF.
  • update_metric_container() Updated the DAG metric container from the current OF state

Definition at line 204 of file rpl.h.