@@ -206,6 +206,7 @@ static duplicate_dua_tr_t *thread_border_router_dup_tr_find(int8_t interface_id,
206
206
static void thread_border_router_bb_ans_send (thread_pbbr_t * this , uint8_t * destination_addr_ptr , uint8_t * target_eid_ptr , uint8_t * ml_eid_ptr , uint32_t last_transaction_time , uint8_t * network_name_ptr , uint16_t * rloc_ptr )
207
207
{
208
208
uint8_t * payload_ptr , * ptr ;
209
+ sn_coap_msg_type_e coap_msg_type = COAP_MSG_TYPE_CONFIRMABLE ;
209
210
210
211
tr_debug ("Thread BBR BB_ANS.ntf send" );
211
212
@@ -223,9 +224,12 @@ static void thread_border_router_bb_ans_send(thread_pbbr_t *this, uint8_t *desti
223
224
ptr = thread_meshcop_tlv_data_write_uint16 (ptr , TMFCOP_TLV_RLOC16 , * rloc_ptr );
224
225
}
225
226
226
- /* UDP Encapsulation TLV */
227
+ if (addr_is_ipv6_multicast (destination_addr_ptr )) {
228
+ coap_msg_type = COAP_MSG_TYPE_NON_CONFIRMABLE ;
229
+ }
230
+
227
231
coap_service_request_send (this -> br_bb_service_id , COAP_REQUEST_OPTIONS_NONE , destination_addr_ptr , this -> pbbr_port ,
228
- COAP_MSG_TYPE_NON_CONFIRMABLE , COAP_MSG_CODE_REQUEST_POST , THREAD_URI_BBR_BB_ANS_NTF , COAP_CT_OCTET_STREAM , payload_ptr , ptr - payload_ptr , NULL );
232
+ coap_msg_type , COAP_MSG_CODE_REQUEST_POST , THREAD_URI_BBR_BB_ANS_NTF , COAP_CT_OCTET_STREAM , payload_ptr , ptr - payload_ptr , NULL );
229
233
230
234
ns_dyn_mem_free (payload_ptr );
231
235
0 commit comments