Skip to content

Commit 4d8dc0d

Browse files
author
Mika Tervonen
committed
remove border router from pan size calculation
According to specification border router is not counted to the PAN size
1 parent fb3363e commit 4d8dc0d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

source/6LoWPAN/ws/ws_bbr_api.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -507,6 +507,10 @@ uint16_t ws_bbr_pan_size(protocol_interface_info_entry_t *cur)
507507
}
508508

509509
rpl_control_get_instance_dao_target_count(cur->rpl_domain, RPL_INSTANCE_ID, NULL, prefix_ptr, &result);
510+
if (result > 0) {
511+
// remove the Border router from the PAN size
512+
result--;
513+
}
510514
return result;
511515
}
512516

0 commit comments

Comments
 (0)