Skip to content

Commit 3e8df0a

Browse files
added neighbor advertisement sending after dad complete. (ARMmbed#1713)
1 parent a46a363 commit 3e8df0a

File tree

3 files changed

+11
-2
lines changed

3 files changed

+11
-2
lines changed

source/6LoWPAN/Thread/thread_bbr_api.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -943,7 +943,7 @@ void thread_bbr_seconds_timer(int8_t interface_id, uint32_t seconds)
943943
#endif // HAVE_THREAD_ROUTER
944944

945945
#ifdef HAVE_THREAD_BORDER_ROUTER
946-
static int thread_bbr_na_send(int8_t interface_id, const uint8_t target[static 16])
946+
int thread_bbr_na_send(int8_t interface_id, const uint8_t target[static 16])
947947
{
948948
protocol_interface_info_entry_t *cur = protocol_stack_interface_info_get_by_id(interface_id);
949949
if (!cur) {

source/6LoWPAN/Thread/thread_bbr_api_internal.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,13 @@ int thread_bbr_nd_entry_add(int8_t interface_id, const uint8_t *addr_data_ptr, u
111111
*/
112112
int thread_bbr_dua_entry_add (int8_t interface_id, const uint8_t *addr_data_ptr, uint32_t lifetime, const uint8_t *mleid_ptr);
113113

114+
/**
115+
* \brief Send na
116+
*
117+
* \param interface_id addr_data_ptr lifetime info mleid_ptr
118+
*/
119+
int thread_bbr_na_send(int8_t interface_id, const uint8_t target[static 16]);
120+
114121
/**
115122
* \brief Find if bbr has dua entry
116123
*
@@ -125,6 +132,7 @@ struct ipv6_route *thread_bbr_dua_entry_find(int8_t interface_id, const uint8_t
125132
#define thread_bbr_nd_entry_add(interface_id, addr_data_ptr, lifetime, info) (0)
126133
#define thread_bbr_dua_entry_add(interface_id, addr_data_ptr, lifetime, mleid_ptr) (0)
127134
#define thread_bbr_dua_entry_find(interface_id, addr_data_ptr) (NULL)
135+
#define thread_bbr_na_send(interface_id, target) (0)
128136
#endif //HAVE_THREAD_BORDER_ROUTER
129137

130138

source/6LoWPAN/Thread/thread_extension_bbr.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -486,7 +486,7 @@ static void thread_pbbr_pro_bb_ntf_process(protocol_interface_info_entry_t *cur,
486486
(void) network_name_ptr;
487487
(void) network_name_len;
488488
thread_pbbr_dua_info_t *mleid_dua_map;
489-
thread_pbbr_t *this = thread_border_router_find_by_service(cur->id);
489+
thread_pbbr_t *this = thread_bbr_find_by_interface(cur->id);
490490
if (!this) {
491491
return;
492492
}
@@ -1134,6 +1134,7 @@ static void thread_extension_bbr_dad_process(protocol_interface_info_entry_t *cu
11341134
// dad completed
11351135
// send PRO_BB.ntf and delete dad entry
11361136
thread_border_router_bb_ans_send(this, this->pbbr_multicast_address, cur_dup_tr->target_eid, cur_dup_tr->ml_eid, 0, thread_joiner_application_network_name_get(cur->id), NULL);
1137+
thread_bbr_na_send(this->backbone_interface_id, cur_dup_tr->target_eid);
11371138
thread_border_router_dup_tr_delete(cur_dup_tr);
11381139
}
11391140
}

0 commit comments

Comments
 (0)