Skip to content

Commit

Permalink
rpl: remove call to rpl_get_my_preferred_parent() in rpl_send_DAO, be…
Browse files Browse the repository at this point in the history
…cause of dependency to rpl_get_my_dodag()
  • Loading branch information
cgundogan authored and OlegHahm committed Mar 31, 2015
1 parent 6e5147e commit 7d66b83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sys/net/routing/rpl/rpl_control_messages.c
Expand Up @@ -440,7 +440,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
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;
#else
rpl_send_opt_transit_buf->length = (RPL_OPT_TRANSIT_LEN - sizeof(ipv6_addr_t));
Expand Down

0 comments on commit 7d66b83

Please sign in to comment.