API for RPL objective functions (OF)
More...
#include <core/net/rpl/rpl.h>
API for RPL objective functions (OF)
Definition at line 166 of file rpl.h.
rpl_rank_t(* rpl_of::calculate_rank)(rpl_parent_t *, rpl_rank_t) |
Calculates a rank value using the parent rank and a base rank.
If "parent" is NULL, the objective function selects a default increment that is adds to the "base_rank". Otherwise, the OF uses information known about "parent" to select an increment to the "base_rank".
Definition at line 192 of file rpl.h.
void(* rpl_of::neighbor_link_callback)(rpl_parent_t *, int, int) |
Receives link-layer neighbor information.
The parameter "known" is set either to 0 or 1. The "etx" parameter specifies the current ETX(estimated transmissions) for the neighbor.
Definition at line 177 of file rpl.h.
void(* rpl_of::reset)(struct rpl_dag *) |
Resets the objective function state for a specific DAG.
This function is called when doing a global repair on the DAG.
Definition at line 171 of file rpl.h.
Updates the metric container for outgoing DIOs in a certain DAG.
If the objective function of the DAG does not use metric containers, the function should set the object type to RPL_DAG_MC_NONE.
Definition at line 198 of file rpl.h.