Skip to content

Commit 759ab05

Browse files
delete route set and link set entries for a router ID (ARMmbed#1540)
delete route set and link set entries for a router ID when that router ID is removed from the ID mask
1 parent 23a1265 commit 759ab05

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

source/6LoWPAN/Thread/thread_routing.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -457,6 +457,8 @@ void thread_routing_update_id_set(protocol_interface_info_entry_t *cur, uint8_t
457457
set_fast_route_entry(thread, i, FAST_ROUTE_INVALID_ID, THREAD_COST_INFINITE);
458458
tr_info("Remove router (ID: %d)", i);
459459
thread_nd_flush_neighbour_cache_for_short_addr(cur, thread_router_addr_from_id(i), true);
460+
thread_routing_remove_link(cur, thread_router_addr_from_id(i));
461+
thread_delete_route_entry_by_id(thread, i);
460462
}
461463
}
462464
}

0 commit comments

Comments
 (0)