Nanostack Border Router is a generic mbed border router implementation that provides the 6LoWPAN ND or Thread border router initialization logic.
Diff: source/thread_br_conn_handler.c
- Revision:
- 82:3d9e3b7b3dcf
- Parent:
- 55:01540dd2f111
--- a/source/thread_br_conn_handler.c Thu Nov 22 11:15:40 2018 +0000 +++ b/source/thread_br_conn_handler.c Fri Nov 23 14:45:35 2018 +0000 @@ -18,7 +18,7 @@ #define TRACE_GROUP "TBRH" typedef struct { - + int8_t thread_interface_id; int8_t eth_interface_id; bool eth_connection_ready; @@ -29,10 +29,10 @@ void thread_br_conn_handler_init(void) { - thread_br_handler.thread_interface_id = -1; + thread_br_handler.thread_interface_id = -1; thread_br_handler.thread_connection_ready = 0; - thread_br_handler.eth_interface_id = -1; + thread_br_handler.eth_interface_id = -1; thread_br_handler.eth_connection_ready = 0; } @@ -54,9 +54,8 @@ { thread_br_handler.thread_interface_id = interfaceId; thread_bbr_extension_mesh_interface_updated_ntf(thread_br_handler.thread_interface_id); - if (thread_br_handler.thread_interface_id > -1 && - thread_br_handler.eth_interface_id > -1) { - thread_bbr_start(thread_br_handler.thread_interface_id, thread_br_handler.eth_interface_id); + if (thread_br_handler.thread_interface_id > -1 && thread_br_handler.eth_interface_id > -1) { + thread_bbr_start(thread_br_handler.thread_interface_id, thread_br_handler.eth_interface_id); } } @@ -79,9 +78,8 @@ { thread_br_handler.eth_interface_id = interfaceId; thread_bbr_extension_bb_interface_updated_ntf(thread_br_handler.eth_interface_id); - if (thread_br_handler.thread_interface_id > -1 && - thread_br_handler.eth_interface_id > -1) { - thread_bbr_start(thread_br_handler.thread_interface_id, thread_br_handler.eth_interface_id); + if (thread_br_handler.thread_interface_id > -1 && thread_br_handler.eth_interface_id > -1) { + thread_bbr_start(thread_br_handler.thread_interface_id, thread_br_handler.eth_interface_id); } }