5151#include "6LoWPAN/Thread/thread_common.h"
5252#include "6LoWPAN/Thread/thread_bootstrap.h"
5353#include "6LoWPAN/Thread/thread_joiner_application.h"
54- #include "6LoWPAN/Thread/thread_extension.h"
55- #include "6LoWPAN/Thread/thread_extension_bbr.h"
54+ #include "6LoWPAN/Thread/thread_bbr_commercial.h"
5655#include "6LoWPAN/Thread/thread_tmfcop_lib.h"
5756#include "6LoWPAN/Thread/thread_management_internal.h"
5857#include "6LoWPAN/Thread/thread_network_data_lib.h"
@@ -696,7 +695,7 @@ static void thread_bbr_status_check(thread_bbr_t *this, uint32_t seconds)
696695 //If there is a default router present in any prefix other than us we do not forward multicast
697696 //This prevents multicasts to different interfaces where Thread Mesh is forwarder
698697 bool forward_multicast = !thread_bbr_default_route_exists (cur , NULL );
699- thread_extension_bbr_mcast_fwd_check (cur -> id , & forward_multicast );
698+ thread_bbr_commercial_mcast_fwd_check (cur -> id , & forward_multicast );
700699
701700 thread_bbr_routing_enable (this , forward_multicast );
702701 } else {
@@ -794,7 +793,7 @@ void thread_bbr_network_data_update_notify(protocol_interface_info_entry_t *cur)
794793{
795794 (void )cur ;
796795 thread_mdns_network_data_update_notify ();
797- thread_extension_bbr_route_update (cur );
796+ thread_bbr_commercial_route_update (cur );
798797}
799798#endif /* HAVE_THREAD_BORDER_ROUTER*/
800799
@@ -980,10 +979,7 @@ void thread_bbr_seconds_timer(int8_t interface_id, uint32_t seconds)
980979 thread_bbr_status_check (this , seconds );
981980 }
982981
983- if (!thread_extension_version_check (thread_version )) {
984- return ;
985- }
986- thread_extension_bbr_seconds_timer (interface_id , seconds );
982+ thread_bbr_commercial_seconds_timer (interface_id , seconds );
987983
988984#endif
989985}
@@ -1150,7 +1146,7 @@ int thread_bbr_start(int8_t interface_id, int8_t backbone_interface_id)
11501146 THREAD_BBR_IPV6_NEIGHBOUR_CACHE_LONG_TERM ,
11511147 THREAD_BBR_IPV6_NEIGHBOUR_CACHE_LIFETIME );
11521148
1153- thread_extension_bbr_init (interface_id , backbone_interface_id );
1149+ thread_bbr_commercial_init (interface_id , backbone_interface_id );
11541150
11551151 return 0 ;
11561152#else
@@ -1165,7 +1161,7 @@ int thread_bbr_timeout_set(int8_t interface_id, uint32_t timeout_a, uint32_t tim
11651161 (void ) timeout_b ;
11661162 (void ) delay ;
11671163#ifdef HAVE_THREAD_BORDER_ROUTER
1168- thread_extension_bbr_timeout_set (interface_id , timeout_a , timeout_b , delay );
1164+ thread_bbr_commercial_timeout_set (interface_id , timeout_a , timeout_b , delay );
11691165 return 0 ;
11701166#else
11711167 return -1 ;
@@ -1178,7 +1174,7 @@ int thread_bbr_prefix_set(int8_t interface_id, uint8_t *prefix)
11781174 (void ) interface_id ;
11791175 (void ) prefix ;
11801176#ifdef HAVE_THREAD_BORDER_ROUTER
1181- return thread_extension_bbr_prefix_set (interface_id , prefix );
1177+ return thread_bbr_commercial_prefix_set (interface_id , prefix );
11821178#else
11831179 return -1 ;
11841180#endif // HAVE_THREAD_BORDER_ROUTER
@@ -1189,7 +1185,7 @@ int thread_bbr_sequence_number_set(int8_t interface_id, uint8_t sequence_number)
11891185 (void ) interface_id ;
11901186 (void ) sequence_number ;
11911187#ifdef HAVE_THREAD_BORDER_ROUTER
1192- return thread_extension_bbr_sequence_number_set (interface_id , sequence_number );
1188+ return thread_bbr_commercial_sequence_number_set (interface_id , sequence_number );
11931189#else
11941190 return -1 ;
11951191#endif // HAVE_THREAD_BORDER_ROUTER
@@ -1201,7 +1197,7 @@ int thread_bbr_validation_interface_address_set(int8_t interface_id, const uint8
12011197 (void ) addr_ptr ;
12021198 (void ) port ;
12031199#ifdef HAVE_THREAD_BORDER_ROUTER
1204- return thread_extension_bbr_address_set (interface_id , addr_ptr , port );
1200+ return thread_bbr_commercial_address_set (interface_id , addr_ptr , port );
12051201#else
12061202 return -1 ;
12071203#endif // HAVE_THREAD_BORDER_ROUTER
@@ -1217,7 +1213,7 @@ void thread_bbr_stop(int8_t interface_id)
12171213 if (!this ) {
12181214 return ;
12191215 }
1220- thread_extension_bbr_delete (interface_id );
1216+ thread_bbr_commercial_delete (interface_id );
12211217 thread_bbr_network_data_remove (this );
12221218 thread_bbr_routing_disable (this );
12231219 thread_border_router_publish (interface_id );
0 commit comments