51
51
#include "6LoWPAN/Thread/thread_common.h"
52
52
#include "6LoWPAN/Thread/thread_bootstrap.h"
53
53
#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"
56
55
#include "6LoWPAN/Thread/thread_tmfcop_lib.h"
57
56
#include "6LoWPAN/Thread/thread_management_internal.h"
58
57
#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)
696
695
//If there is a default router present in any prefix other than us we do not forward multicast
697
696
//This prevents multicasts to different interfaces where Thread Mesh is forwarder
698
697
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 );
700
699
701
700
thread_bbr_routing_enable (this , forward_multicast );
702
701
} else {
@@ -794,7 +793,7 @@ void thread_bbr_network_data_update_notify(protocol_interface_info_entry_t *cur)
794
793
{
795
794
(void )cur ;
796
795
thread_mdns_network_data_update_notify ();
797
- thread_extension_bbr_route_update (cur );
796
+ thread_bbr_commercial_route_update (cur );
798
797
}
799
798
#endif /* HAVE_THREAD_BORDER_ROUTER*/
800
799
@@ -980,10 +979,7 @@ void thread_bbr_seconds_timer(int8_t interface_id, uint32_t seconds)
980
979
thread_bbr_status_check (this , seconds );
981
980
}
982
981
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 );
987
983
988
984
#endif
989
985
}
@@ -1150,7 +1146,7 @@ int thread_bbr_start(int8_t interface_id, int8_t backbone_interface_id)
1150
1146
THREAD_BBR_IPV6_NEIGHBOUR_CACHE_LONG_TERM ,
1151
1147
THREAD_BBR_IPV6_NEIGHBOUR_CACHE_LIFETIME );
1152
1148
1153
- thread_extension_bbr_init (interface_id , backbone_interface_id );
1149
+ thread_bbr_commercial_init (interface_id , backbone_interface_id );
1154
1150
1155
1151
return 0 ;
1156
1152
#else
@@ -1165,7 +1161,7 @@ int thread_bbr_timeout_set(int8_t interface_id, uint32_t timeout_a, uint32_t tim
1165
1161
(void ) timeout_b ;
1166
1162
(void ) delay ;
1167
1163
#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 );
1169
1165
return 0 ;
1170
1166
#else
1171
1167
return -1 ;
@@ -1178,7 +1174,7 @@ int thread_bbr_prefix_set(int8_t interface_id, uint8_t *prefix)
1178
1174
(void ) interface_id ;
1179
1175
(void ) prefix ;
1180
1176
#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 );
1182
1178
#else
1183
1179
return -1 ;
1184
1180
#endif // HAVE_THREAD_BORDER_ROUTER
@@ -1189,7 +1185,7 @@ int thread_bbr_sequence_number_set(int8_t interface_id, uint8_t sequence_number)
1189
1185
(void ) interface_id ;
1190
1186
(void ) sequence_number ;
1191
1187
#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 );
1193
1189
#else
1194
1190
return -1 ;
1195
1191
#endif // HAVE_THREAD_BORDER_ROUTER
@@ -1201,7 +1197,7 @@ int thread_bbr_validation_interface_address_set(int8_t interface_id, const uint8
1201
1197
(void ) addr_ptr ;
1202
1198
(void ) port ;
1203
1199
#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 );
1205
1201
#else
1206
1202
return -1 ;
1207
1203
#endif // HAVE_THREAD_BORDER_ROUTER
@@ -1217,7 +1213,7 @@ void thread_bbr_stop(int8_t interface_id)
1217
1213
if (!this ) {
1218
1214
return ;
1219
1215
}
1220
- thread_extension_bbr_delete (interface_id );
1216
+ thread_bbr_commercial_delete (interface_id );
1221
1217
thread_bbr_network_data_remove (this );
1222
1218
thread_bbr_routing_disable (this );
1223
1219
thread_border_router_publish (interface_id );
0 commit comments