From 7c6c482e46fc80a1abf54257001ed45e406db215 Mon Sep 17 00:00:00 2001 From: Mika Tervonen Date: Tue, 22 May 2018 19:27:11 +0300 Subject: [PATCH] Added target EID tlv to Dua response This is a change in specification that was missed --- source/6LoWPAN/Thread/thread_extension_bbr.c | 1 + 1 file changed, 1 insertion(+) diff --git a/source/6LoWPAN/Thread/thread_extension_bbr.c b/source/6LoWPAN/Thread/thread_extension_bbr.c index 3d8046855fc..295029539eb 100644 --- a/source/6LoWPAN/Thread/thread_extension_bbr.c +++ b/source/6LoWPAN/Thread/thread_extension_bbr.c @@ -872,6 +872,7 @@ static int thread_extension_bbr_dua_cb(int8_t service_id, uint8_t source_address ptr = payload; ptr = thread_tmfcop_tlv_data_write_uint8(ptr, TMFCOP_TLV_STATUS, bbr_status); + ptr = thread_meshcop_tlv_data_write(ptr, TMFCOP_TLV_TARGET_EID, 16, addr_data_ptr); coap_service_response_send(this->coap_service_id, COAP_REQUEST_OPTIONS_NONE, request_ptr, response_code, COAP_CT_OCTET_STREAM, payload, ptr - payload); return 0; }