API for RPL objective functions (OF)
More...
#include <os/net/routing/rpl-lite/rpl-types.h>
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 201 of file rpl.h.