Commit 5178d25
committed
[mle] derive address registration limit for children from runtime pool
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
compile-time limit, discarding any addresses beyond that limit even
when the runtime pools are larger.1 parent 5c90231 commit 5178d25
4 files changed
Lines changed: 41 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
61 | | - | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
62 | 65 | | |
63 | 66 | | |
64 | 67 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
89 | 93 | | |
90 | 94 | | |
91 | 95 | | |
| |||
| 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 | + | |
| 3654 | + | |
| 3655 | + | |
| 3656 | + | |
| 3657 | + | |
| 3658 | + | |
| 3659 | + | |
3643 | 3660 | | |
3644 | 3661 | | |
3645 | 3662 | | |
| |||
3680 | 3697 | | |
3681 | 3698 | | |
3682 | 3699 | | |
3683 | | - | |
| 3700 | + | |
3684 | 3701 | | |
3685 | 3702 | | |
3686 | 3703 | | |
| |||
3710 | 3727 | | |
3711 | 3728 | | |
3712 | 3729 | | |
3713 | | - | |
| 3730 | + | |
3714 | 3731 | | |
3715 | 3732 | | |
3716 | 3733 | | |
| |||
0 commit comments