Objective function representation. More...
#include <net/gnrc/rpl/structs.h>
Data Fields | |
uint16_t | ocp |
objective code point | |
uint16_t(* | calc_rank )(gnrc_rpl_parent_t *parent, uint16_t base_rank) |
calculate the rank | |
gnrc_rpl_parent_t *(* | which_parent )(gnrc_rpl_parent_t *, gnrc_rpl_parent_t *) |
retrieve the better parent | |
int(* | parent_cmp )(gnrc_rpl_parent_t *parent1, gnrc_rpl_parent_t *parent2) |
Compare two gnrc_rpl_parent_t. More... | |
gnrc_rpl_dodag_t *(* | which_dodag )(gnrc_rpl_dodag_t *, gnrc_rpl_dodag_t *) |
compare for dodags | |
void(* | reset )(gnrc_rpl_dodag_t *) |
resets the OF | |
void(* | parent_state_callback )(gnrc_rpl_parent_t *, int, int) |
retrieves the state of a parent | |
void(* | init )(void) |
OF specific init function. | |
void(* | process_dio )(void) |
DIO processing callback (acc. More... | |
int(* gnrc_rpl_of_t::parent_cmp) (gnrc_rpl_parent_t *parent1, gnrc_rpl_parent_t *parent2) |
Compare two gnrc_rpl_parent_t.
Compares two parents based on the rank calculated by the objective function. This function is used to determine the parent list order. The parents are ordered from the preferred parent to the least preferred parent.
[in] | parent1 | First parent to compare. |
[in] | parent2 | Second parent to compare. |
void(* gnrc_rpl_of_t::process_dio) (void) |