Skip to content

Commit 678eaf8

Browse files
author
Mika Tervonen
committed
Moved Thread 1.2 code to to correct place
1 parent f39d07e commit 678eaf8

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+2180
-2483
lines changed

nanostack/thread_meshcop_lib.h

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,39 @@
148148
/** Energy List TLV. */
149149
#define MESHCOP_TLV_ENERGY_LIST 57
150150

151+
/** Thread 1.2 */
152+
153+
/** Timeout TLV. */
154+
#define MESHCOP_TLV_TIMEOUT 58
155+
156+
/** Thread domain name TLV. */
157+
#define MESHCOP_TLV_DOMAIN_NAME 59
158+
159+
/** Domain prefix TLV TLV.*/
160+
#define MESHCOP_TLV_DOMAIN_PREFIX 60
161+
162+
/** AE Steering Data TLV. */
163+
#define MESHCOP_TLV_AE_STEERING_DATA 61
164+
165+
/** NMKP Steering Data TLV. */
166+
#define MESHCOP_TLV_NMKP_STEERING_DATA 62
167+
168+
/** Commissioner Token TLV. */
169+
#define MESHCOP_TLV_COMM_TOKEN 63
170+
171+
/** Commissioner Signature TLV. */
172+
#define MESHCOP_TLV_COMM_SIGNATURE 64
173+
174+
/** NMKP Steering Data TLV. */
175+
#define MESHCOP_TLV_AE_PORT 65
176+
177+
/** NMKP Steering Data TLV. */
178+
#define MESHCOP_TLV_NMKP_PORT 66
179+
180+
/** Registrar IPV6 address. */
181+
#define MESHCOP_TLV_REGISTRAR_IPV6_ADDRESS 68
182+
183+
151184
/** Discovery Request TLV. */
152185
#define MESHCOP_TLV_DISCOVERY_REQUEST 128
153186
/** Discovery response TLV. */

source/6LoWPAN/Thread/thread_address_registration_client.c

Lines changed: 0 additions & 130 deletions
This file was deleted.

source/6LoWPAN/Thread/thread_address_registration_client.h

Lines changed: 0 additions & 54 deletions
This file was deleted.

source/6LoWPAN/Thread/thread_bbr_api.c

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,7 @@
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

Comments
 (0)