Skip to content

Commit 073f7e8

Browse files
entry keep alive flag set to true if entry already exists. (#1675)
1 parent 1584759 commit 073f7e8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

source/6LoWPAN/Thread/thread_extension_bbr.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -776,13 +776,13 @@ static int thread_extension_bbr_dua_cb(int8_t service_id, uint8_t source_address
776776

777777
tr_debug("DUA.req addr:%s ml_eid:%s", trace_array(addr_data_ptr, addr_len), trace_array(ml_eid_ptr, ml_eid_len));
778778

779-
entry_keep_alive = true;
779+
entry_keep_alive = false;
780780
// TODO add ml_eid to structure saved in info pointer to detect duplicates
781781
if (thread_bbr_nd_entry_find(this->interface_id, addr_data_ptr) == 0) {
782-
entry_keep_alive = false;
782+
entry_keep_alive = true;
783783
}
784784

785-
if (thread_bbr_nd_entry_add(this->interface_id, addr_data_ptr, 0xFFFFFFFF, NULL, ml_eid_ptr) == -1) {
785+
if (thread_bbr_nd_entry_add(this->interface_id, addr_data_ptr, 0xFFFFFFFF, NULL, ml_eid_ptr) != 0) {
786786
bbr_status = THREAD_BBR_STATUS_RESOURCE_SHORTAGE;
787787
goto send_response;
788788
}

0 commit comments

Comments
 (0)