Skip to content

Commit 6a6fb0c

Browse files
author
Mika Tervonen
committed
Removed old configuration options from Border router API
Updated trace levels Removed extra memset
1 parent a051865 commit 6a6fb0c

File tree

3 files changed

+12
-13
lines changed

3 files changed

+12
-13
lines changed

nanostack/ws_bbr_api.h

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -49,21 +49,21 @@ int ws_bbr_start(int8_t interface_id, int8_t backbone_interface_id);
4949
* Border router configuration options
5050
*/
5151
#define BBR_ULA_C 0x0001 /**< Static ULA prefix created automatically */
52-
#define BBR_GUA_C 0x0002 /**< Routable prefix is learned from the backbone */
53-
#define BBR_GUA_ROUTE 0x0004 /**< More specific route is added for GUA prefix */
54-
#define BBR_GUA_SLAAC 0x0008 /**< Use SLAAC addressing in routable prefix */
55-
#define BBR_GUA_WAIT 0x0010 /**< Wait backbone availability before starting RPL dodag */
56-
#define BBR_BB_WAIT 0x0020 /**< Wait backbone availability before starting Wi-SUN network */
52+
#define BBR_GUA_ROUTE 0x0002 /**< More specific route is added for GUA prefix */
53+
#define BBR_BB_WAIT 0x0004 /**< Wait backbone availability before starting Wi-SUN network */
54+
55+
/*Deprecated configuration values */
56+
#define BBR_GUA_C 0x0000 /**< Routable prefix is learned from the backbone */
57+
#define BBR_GUA_SLAAC 0x0000 /**< Use SLAAC addressing in routable prefix */
58+
#define BBR_GUA_WAIT 0x0000 /**< Wait backbone availability before startingRPL dodag */
59+
5760
/**
5861
* Configure border router features.
5962
*
6063
* \param interface_id interface ID of the Wi-SUN network
6164
* \param options Options configured to Border router
62-
* BBR_ULA_C Configure Mesh local ULA prefix with SLAAC address (default)
63-
* BBR_GUA_C Configure GUA/ULA prefix from backbone to RPL (default)
64-
* BBR_GUA_ROUTE Add more specific route for GUA (default)
65-
* BBR_GUA_SLAAC Use SLAAC address generation in GUA prefix
66-
* BBR_GUA_WAIT Start RPL root only when GUA is available
65+
* BBR_ULA_C Configure Mesh local ULA prefix with SLAAC address
66+
* BBR_GUA_ROUTE Add more specific route for GUA
6767
* BBR_BB_WAIT Start Wi-SUN network only when backbone is ready
6868
*
6969
* By default Wi-SUN network is started and is treated as separate interface even if backbone is not available.

source/6LoWPAN/ws/ws_bbr_api.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ static void ws_bbr_rpl_status_check(protocol_interface_info_entry_t *cur)
306306

307307
if (!protocol_6lowpan_rpl_root_dodag) {
308308
// Failed to start
309-
tr_info("BBR failed to start");
309+
tr_err("BBR failed to start");
310310
return;
311311
}
312312

@@ -315,7 +315,7 @@ static void ws_bbr_rpl_status_check(protocol_interface_info_entry_t *cur)
315315
*/
316316
if (protocol_interface_address_compare(current_dodag_id) != 0) {
317317
//DODAGID is lost need to restart
318-
tr_err("DODAGID lost restart RPL");
318+
tr_warn("DODAGID lost restart RPL");
319319
memset(current_dodag_id, 0, 16);
320320
ws_bbr_rpl_root_stop();
321321
return;

source/6LoWPAN/ws/ws_management_api.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@ int ws_management_network_name_set(
7272
// Network name is the same no further actions required.
7373
return 0;
7474
}
75-
memset(cur->ws_info->network_name, 0, 33);
7675
strncpy(cur->ws_info->network_name, network_name_ptr, 32);
7776
// if settings change reset_restart for the settings needed
7877
if (cur->lowpan_info & INTERFACE_NWK_ACTIVE) {

0 commit comments

Comments
 (0)