agent: prevent external role change while conncheck is running
authorFabrice Bellet <fabrice@bellet.info>
Tue, 21 Nov 2017 14:12:45 +0000 (15:12 +0100)
committerOlivier CrĂȘte <olivier.crete@collabora.com>
Mon, 27 Nov 2017 20:27:13 +0000 (15:27 -0500)
commit02216a6766caccb652387d5ee19686149eedbc93
treee8e0bd033a1718fc070b5936ea186c5efb16a153
parentfbdccf0c2787ebdc65fe13ac64bd25c829ea7972
agent: prevent external role change while conncheck is running

With this patch, we stash the controlling mode property change, and
apply it safely, when it won't interfere with an ongoing conncheck
running. According to RFC5245, sect 5.2. "Determining Role", the role
is determined for a session, and persists unless an ICE is restarted.

Differential Revision: https://phabricator.freedesktop.org/D1887
agent/agent-priv.h
agent/agent.c
tests/test-restart.c