From 274abdd408143dcd62524760ab64d55bd25dccf4 Mon Sep 17 00:00:00 2001 From: Deepak Venugopal Date: Tue, 12 Mar 2019 15:54:44 +0200 Subject: [PATCH] address registration and coap port updates (#2009) address registration on behalf of MTD updated. Default backbone coap port updated. --- source/6LoWPAN/Thread/thread_extension.c | 4 ++++ source/6LoWPAN/Thread/thread_extension_bbr.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/source/6LoWPAN/Thread/thread_extension.c b/source/6LoWPAN/Thread/thread_extension.c index 4afe7813b22..4d704a60fcf 100644 --- a/source/6LoWPAN/Thread/thread_extension.c +++ b/source/6LoWPAN/Thread/thread_extension.c @@ -535,6 +535,10 @@ void thread_extension_address_registration(struct protocol_interface_info_entry uint8_t seq; uint32_t delay_timer; + if (!thread_extension_version_check(interface->thread_info->version)) { + return; + } + if (!thread_extension_is_domain_prefix(interface, addr)) { return; } diff --git a/source/6LoWPAN/Thread/thread_extension_bbr.c b/source/6LoWPAN/Thread/thread_extension_bbr.c index 70b73e5a472..a878df04192 100644 --- a/source/6LoWPAN/Thread/thread_extension_bbr.c +++ b/source/6LoWPAN/Thread/thread_extension_bbr.c @@ -104,7 +104,7 @@ static NS_LIST_DEFINE(duplicate_dua_tr_list, duplicate_dua_tr_t, link); #define THREAD_BBR_MLR_REGISTRATION_TIMEOUT 600 //<* Default MLR timeout in seconds #define THREAD_BBR_DUA_REGISTRATION_TIMEOUT 3600 #define THREAD_BBR_DUA_REGISTRATION_DELAY 5000 // 5 seconds in ms -#define THREAD_BBR_BACKBONE_PORT 5683 //<* Backbone border router +#define THREAD_BBR_BACKBONE_PORT 61631 //<* Backbone border router #define THREAD_BBR_DUA_DAD_QUERY_TIMEOUT 1 // wait period for Duplicate Address Detection #define THREAD_BBR_DUA_DAD_REPEATS 2 // multicast repeated as part of DUA