conncheck: toggle the retransmit flag when pruning pending checks
authorFabrice Bellet <fabrice@bellet.info>
Wed, 8 Apr 2020 15:24:05 +0000 (17:24 +0200)
committerOlivier CrĂȘte <olivier.crete@collabora.com>
Wed, 6 May 2020 01:12:20 +0000 (21:12 -0400)
commit1e9edb69af3148d2b58349749c9af8b27b1fc100
treec487721cf90276207b074a967f7b7d92de5103e1
parentfcd6bc8688a27e64a90899767853142e1dda4067
conncheck: toggle the retransmit flag when pruning pending checks

The function conn_check_update_retransmit_flag() that was introduced to
reenable the retransmit flag on pairs with higher priority than the
nominated one can be merged in priv_prune_pending_checks(), and its
invocation replaced by conn_check_update_check_list_state_for_ready().

The function priv_prune_pending_checks() can also be tweaked to use
the component selected pair priority, instead of getting it from
the checklist. This function is called when at least one nominated pair
exists, so selected_pair is this nominated pair.
agent/agent.c
agent/conncheck.c
agent/conncheck.h