Commit 378d658
committed
[mle] derive address registration limit from runtime pool sizes
When `OPENTHREAD_CONFIG_IP6_INIT_EXT_ADDR_POOL_ENABLE` is set, the
external unicast and multicast address pool sizes are determined at
runtime by the caller of `otIp6Init()`, not at compile time. The
existing compile-time constant `kMaxIpAddressesToRegister`
(from `OPENTHREAD_CONFIG_MLE_IP_ADDRS_TO_REGISTER`) is therefore
not meaningful in this mode: a library compiled without knowledge of
the pool sizes will silently cap MLE Address Registration TLVs at the
default of 4, discarding any addresses beyond that limit even when the
runtime pools are larger.1 parent e336e7a commit 378d658
4 files changed
Lines changed: 33 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
61 | | - | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
62 | 64 | | |
63 | 65 | | |
64 | 66 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
89 | 92 | | |
90 | 93 | | |
91 | 94 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
355 | 355 | | |
356 | 356 | | |
357 | 357 | | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
358 | 372 | | |
359 | 373 | | |
360 | 374 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3640 | 3640 | | |
3641 | 3641 | | |
3642 | 3642 | | |
| 3643 | + | |
| 3644 | + | |
| 3645 | + | |
| 3646 | + | |
| 3647 | + | |
| 3648 | + | |
| 3649 | + | |
| 3650 | + | |
| 3651 | + | |
| 3652 | + | |
| 3653 | + | |
3643 | 3654 | | |
3644 | 3655 | | |
3645 | 3656 | | |
| |||
3680 | 3691 | | |
3681 | 3692 | | |
3682 | 3693 | | |
3683 | | - | |
| 3694 | + | |
3684 | 3695 | | |
3685 | 3696 | | |
3686 | 3697 | | |
| |||
3710 | 3721 | | |
3711 | 3722 | | |
3712 | 3723 | | |
3713 | | - | |
| 3724 | + | |
3714 | 3725 | | |
3715 | 3726 | | |
3716 | 3727 | | |
| |||
0 commit comments