Skip to content

Commit be18109

Browse files
author
Juha Heiskanen
committed
Fixed missing address re registration.
Address re registration was totally missing and here we fix this major bug. Change-Id: I3880ea9587cd2e4177f038f83c79019fdce1d54d
1 parent 7d8dab4 commit be18109

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

source/6LoWPAN/ws/ws_bootstrap.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,14 @@ static void ws_bootstrap_address_notification_cb(struct protocol_interface_info_
163163
break;
164164
}
165165
}
166+
} else if (reason == ADDR_CALLBACK_TIMER) {
167+
tr_debug("Address Re registration %s", trace_ipv6(addr->address));
168+
169+
if (!interface->ws_info->address_registration_event_active) {
170+
interface->ws_info->address_registration_event_active = true;
171+
tr_info("Register ARO");
172+
ws_bootsrap_event_trig(WS_ADDRESS_ADDED, interface->bootStrapId, ARM_LIB_LOW_PRIORITY_EVENT, NULL);
173+
}
166174
} else {
167175
tr_debug("Address notification addr: %s reason: %d", trace_ipv6(addr->address), reason);
168176
}

source/Core/ns_address_internal.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -865,6 +865,7 @@ void addr_fast_timer(protocol_interface_info_entry_t *cur, uint_fast16_t ticks)
865865
}
866866
#endif
867867
} else {
868+
addr->addr_reg_done = 0;
868869
addr_cb(cur, addr, ADDR_CALLBACK_TIMER);
869870
}
870871

0 commit comments

Comments
 (0)