Commit 3701e48
committed
[routing-manager] defer OMR prefix removal with a randomized delay
When `OmrPrefixManager` yields to a more-favored peer prefix, `RemoveLocalFromNetData()` is called immediately, producing back-to-back Network Data version bumps.
According to the OMR section in Thread spec, cooperative (preference-based) removal should use a randomized delay, and not an immediate withdrawal.
This change adds `kToRemove` to `LocalPrefixState` completing the delayed-removal path in openthread#12753.1 parent 06e210f commit 3701e48
2 files changed
Lines changed: 49 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
995 | 995 | | |
996 | 996 | | |
997 | 997 | | |
| 998 | + | |
| 999 | + | |
| 1000 | + | |
| 1001 | + | |
| 1002 | + | |
998 | 1003 | | |
999 | 1004 | | |
1000 | 1005 | | |
| |||
1013 | 1018 | | |
1014 | 1019 | | |
1015 | 1020 | | |
1016 | | - | |
| 1021 | + | |
| 1022 | + | |
| 1023 | + | |
| 1024 | + | |
| 1025 | + | |
| 1026 | + | |
| 1027 | + | |
| 1028 | + | |
| 1029 | + | |
| 1030 | + | |
| 1031 | + | |
| 1032 | + | |
| 1033 | + | |
| 1034 | + | |
| 1035 | + | |
| 1036 | + | |
| 1037 | + | |
| 1038 | + | |
| 1039 | + | |
| 1040 | + | |
| 1041 | + | |
| 1042 | + | |
| 1043 | + | |
1017 | 1044 | | |
1018 | 1045 | | |
1019 | 1046 | | |
1020 | 1047 | | |
1021 | 1048 | | |
1022 | 1049 | | |
1023 | 1050 | | |
1024 | | - | |
1025 | | - | |
1026 | | - | |
1027 | | - | |
1028 | | - | |
| 1051 | + | |
| 1052 | + | |
| 1053 | + | |
| 1054 | + | |
| 1055 | + | |
| 1056 | + | |
| 1057 | + | |
| 1058 | + | |
1029 | 1059 | | |
1030 | 1060 | | |
1031 | 1061 | | |
| |||
1113 | 1143 | | |
1114 | 1144 | | |
1115 | 1145 | | |
| 1146 | + | |
| 1147 | + | |
1116 | 1148 | | |
1117 | 1149 | | |
1118 | 1150 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
643 | 643 | | |
644 | 644 | | |
645 | 645 | | |
646 | | - | |
647 | | - | |
648 | | - | |
649 | | - | |
650 | | - | |
651 | | - | |
| 646 | + | |
| 647 | + | |
| 648 | + | |
| 649 | + | |
| 650 | + | |
| 651 | + | |
| 652 | + | |
| 653 | + | |
| 654 | + | |
| 655 | + | |
652 | 656 | | |
653 | 657 | | |
654 | 658 | | |
| |||
664 | 668 | | |
665 | 669 | | |
666 | 670 | | |
| 671 | + | |
667 | 672 | | |
668 | 673 | | |
669 | 674 | | |
| |||
0 commit comments