Skip to content

Commit 74c6024

Browse files
DavidLin1577Arto Kinnunen
authored andcommitted
Fix function spelling mistake in border_router.c
lowpan_contex_get_by_id -> lowpan_context_get_by_id
1 parent 89830ec commit 74c6024

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

source/BorderRouter/border_router.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ int8_t arm_nwk_6lowpan_border_router_context_update(int8_t interface_id, uint8_t
201201
if (cur->border_router_setup->nd_nwk) {
202202
nd_router_setup_t *routerSetup = cur->border_router_setup->nd_border_router_configure;
203203

204-
if (!lowpan_contex_get_by_id(&routerSetup->context_list, (c_id_flags & LOWPAN_CONTEXT_CID_MASK))) {
204+
if (!lowpan_context_get_by_id(&routerSetup->context_list, (c_id_flags & LOWPAN_CONTEXT_CID_MASK))) {
205205
if (ns_list_count(&routerSetup->context_list) >= ND_MAX_PROXY_CONTEXT_COUNT) {
206206
return -1;
207207
}
@@ -245,7 +245,7 @@ int8_t arm_nwk_6lowpan_border_router_nd_context_load(int8_t interface_id, uint8_
245245
contex_data += 2;
246246
//Now Pointer Indicate to prefix
247247
//Check first is current ID at list
248-
if (!lowpan_contex_get_by_id(&nd_router_setup->context_list, (c_id & LOWPAN_CONTEXT_CID_MASK))) {
248+
if (!lowpan_context_get_by_id(&nd_router_setup->context_list, (c_id & LOWPAN_CONTEXT_CID_MASK))) {
249249
if (ns_list_count(&nd_router_setup->context_list) >= ND_MAX_PROXY_CONTEXT_COUNT) {
250250
tr_debug("All Contexts are allocated");
251251
return -1;
@@ -305,7 +305,7 @@ int8_t arm_nwk_6lowpan_border_router_context_remove_by_id(int8_t interface_id, u
305305

306306
nd_router_configuration = cur_interface->border_router_setup->nd_border_router_configure;
307307

308-
entry = lowpan_contex_get_by_id(&nd_router_configuration->context_list, c_id);
308+
entry = lowpan_context_get_by_id(&nd_router_configuration->context_list, c_id);
309309
if (entry) {
310310
ns_list_remove(&nd_router_configuration->context_list, entry);
311311
ns_dyn_mem_free(entry);
@@ -333,7 +333,7 @@ int8_t arm_nwk_6lowpan_border_router_context_parameter_update(int8_t interface_i
333333

334334
nd_router_configuration = cur_interface->border_router_setup->nd_border_router_configure;
335335

336-
entry = lowpan_contex_get_by_id(&nd_router_configuration->context_list, c_id);
336+
entry = lowpan_context_get_by_id(&nd_router_configuration->context_list, c_id);
337337
if (entry) {
338338
uint8_t cid_flag = entry->cid;
339339
entry->compression = compress_mode;

0 commit comments

Comments
 (0)