Skip to content
Snippets Groups Projects
Commit f8408308 authored by Cenk Gündoğan's avatar Cenk Gündoğan
Browse files

rpl: remove call to rpl_get_my_preferred_parent() in rpl_send_DAO, because of...

rpl: remove call to rpl_get_my_preferred_parent() in rpl_send_DAO, because of dependency to rpl_get_my_dodag()
parent 442e7b10
No related branches found
No related tags found
No related merge requests found
...@@ -436,7 +436,7 @@ void rpl_send_DAO(rpl_dodag_t *my_dodag, ipv6_addr_t *destination, uint8_t lifet ...@@ -436,7 +436,7 @@ void rpl_send_DAO(rpl_dodag_t *my_dodag, ipv6_addr_t *destination, uint8_t lifet
#if RPL_DEFAULT_MOP == RPL_MOP_NON_STORING_MODE #if RPL_DEFAULT_MOP == RPL_MOP_NON_STORING_MODE
rpl_send_opt_transit_buf->length = RPL_OPT_TRANSIT_LEN; rpl_send_opt_transit_buf->length = RPL_OPT_TRANSIT_LEN;
memcpy(&rpl_send_opt_transit_buf->parent, rpl_get_my_preferred_parent(), sizeof(ipv6_addr_t)); memcpy(&rpl_send_opt_transit_buf->parent, &my_dodag->my_preferred_parent->addr, sizeof(ipv6_addr_t));
opt_len += RPL_OPT_TRANSIT_LEN_WITH_OPT_LEN; opt_len += RPL_OPT_TRANSIT_LEN_WITH_OPT_LEN;
#else #else
rpl_send_opt_transit_buf->length = (RPL_OPT_TRANSIT_LEN - sizeof(ipv6_addr_t)); rpl_send_opt_transit_buf->length = (RPL_OPT_TRANSIT_LEN - sizeof(ipv6_addr_t));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment