Skip to content

Commit

Permalink
Removed link local address verifycation and dead code.
Browse files Browse the repository at this point in the history
Change-Id: Ic9d53279f16f3685fb3abaa0f772d5016062f0eb
  • Loading branch information
Juha Heiskanen committed Jun 13, 2019
1 parent 77076d1 commit ac191c3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion source/RPL/rpl_control.c
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ void rpl_control_address_register_done(struct buffer *buf, uint8_t status)
ns_list_foreach(if_address_entry_t, addr, &buf->interface->ip_addresses) {

/* Optimize, ll addresses are not registered anyway.. */
if (addr_is_ipv6_link_local(addr->address) || !addr->addr_reg_pend) {
if (!addr->addr_reg_pend) {
continue;
}

Expand Down
2 changes: 1 addition & 1 deletion source/RPL/rpl_downward.c
Original file line number Diff line number Diff line change
Expand Up @@ -656,7 +656,7 @@ static bool rpl_instance_dao_address_reg_pending_check(rpl_instance_t *instance)
ns_list_foreach(if_address_entry_t, addr, &cur->ip_addresses) {

/* Optimize, ll addresses are not registered anyway.. */
if (!addr_is_ipv6_link_local(addr->address) && addr->addr_reg_pend) {
if (addr->addr_reg_pend) {
return true;
}
}
Expand Down

0 comments on commit ac191c3

Please sign in to comment.