Merge pull request #17685 from ykholod/master-17413

babel: Clean babel config on babel daemon stop
This commit is contained in:
Jafar Al-Gharaibeh 2024-12-20 13:57:47 -06:00 committed by GitHub
commit ef4e2297ad
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -304,6 +304,12 @@ void babel_clean_routing_process(void)
flush_all_routes();
babel_interface_close_all();
/* Clean babel config */
diversity_kind = DIVERSITY_NONE;
diversity_factor = BABEL_DEFAULT_DIVERSITY_FACTOR;
resend_delay = BABEL_DEFAULT_RESEND_DELAY;
change_smoothing_half_life(BABEL_DEFAULT_SMOOTHING_HALF_LIFE);
/* cancel events */
event_cancel(&babel_routing_process->t_read);
event_cancel(&babel_routing_process->t_update);