Commit c65cd7c
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 c65cd7c
2 files changed
Lines changed: 51 additions & 9 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 | + | |
| 1059 | + | |
| 1060 | + | |
| 1061 | + | |
| 1062 | + | |
1029 | 1063 | | |
1030 | 1064 | | |
1031 | 1065 | | |
| |||
1113 | 1147 | | |
1114 | 1148 | | |
1115 | 1149 | | |
| 1150 | + | |
| 1151 | + | |
1116 | 1152 | | |
1117 | 1153 | | |
1118 | 1154 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
643 | 643 | | |
644 | 644 | | |
645 | 645 | | |
646 | | - | |
647 | | - | |
648 | | - | |
| 646 | + | |
| 647 | + | |
| 648 | + | |
| 649 | + | |
| 650 | + | |
| 651 | + | |
| 652 | + | |
| 653 | + | |
649 | 654 | | |
650 | 655 | | |
651 | 656 | | |
| |||
664 | 669 | | |
665 | 670 | | |
666 | 671 | | |
| 672 | + | |
667 | 673 | | |
668 | 674 | | |
669 | 675 | | |
| |||
0 commit comments