Remove references to the now unused dag->parents list
This commit is contained in:
parent
4e6fe7dda6
commit
9039b0ecd8
@ -796,9 +796,7 @@ rpl_move_parent(rpl_dag_t *dag_src, rpl_dag_t *dag_dst, rpl_parent_t *parent)
|
||||
PRINT6ADDR(rpl_get_parent_ipaddr(parent));
|
||||
PRINTF("\n");
|
||||
|
||||
list_remove(dag_src->parents, parent);
|
||||
parent->dag = dag_dst;
|
||||
list_add(dag_dst->parents, parent);
|
||||
}
|
||||
/*---------------------------------------------------------------------------*/
|
||||
rpl_dag_t *
|
||||
|
@ -45,9 +45,6 @@
|
||||
#include "net/uip-ds6.h"
|
||||
#include "sys/ctimer.h"
|
||||
|
||||
/*---------------------------------------------------------------------------*/
|
||||
/* The amount of parents that this node has in a particular DAG. */
|
||||
#define RPL_PARENT_COUNT(dag) list_length((dag)->parents)
|
||||
/*---------------------------------------------------------------------------*/
|
||||
typedef uint16_t rpl_rank_t;
|
||||
typedef uint16_t rpl_ocp_t;
|
||||
@ -142,7 +139,6 @@ struct rpl_dag {
|
||||
rpl_parent_t *preferred_parent;
|
||||
rpl_rank_t rank;
|
||||
struct rpl_instance *instance;
|
||||
LIST_STRUCT(parents);
|
||||
rpl_prefix_t prefix_info;
|
||||
};
|
||||
typedef struct rpl_dag rpl_dag_t;
|
||||
|
Loading…
Reference in New Issue
Block a user