diff options
author | Jakub Adam <jakub.adam@ktknet.cz> | 2015-09-11 11:57:54 +0100 |
---|---|---|
committer | Philip Withnall <philip.withnall@collabora.co.uk> | 2015-09-11 11:57:54 +0100 |
commit | fae0f9d37c6e34f34c92dee85384c29e565bdbce (patch) | |
tree | b2dec6aceefbf9a3c25e67e728a0f683b90e3212 | |
parent | 02852728ef347f5cb4c9227848b266c72b5fe38b (diff) | |
download | libnice-fae0f9d37c6e34f34c92dee85384c29e565bdbce.tar.gz |
conncheck: rename priv_process_response_check_for_peer_reflexive()
Renamed the function to priv_process_response_check_for_reflexive()
because it now checks also for server reflexive candidates.
Updated the documentation to indicate that the function never returns
NULL.
Maniphest Tasks: https://phabricator.freedesktop.org/T115
Differential Revision: https://phabricator.freedesktop.org/D243
Reviewed-by: Philip Withnall <philip.withnall@collabora.co.uk>
-rw-r--r-- | agent/conncheck.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/agent/conncheck.c b/agent/conncheck.c index 643113e..332ecbe 100644 --- a/agent/conncheck.c +++ b/agent/conncheck.c @@ -2285,9 +2285,9 @@ static void priv_check_for_role_conflict (NiceAgent *agent, gboolean control) * @param socketptr socket used to send the reply * @param mapped_sockaddr mapped address in the response * - * @return pointer to a new pair if one was created, otherwise NULL + * @return pointer to a candidate pair, found in conncheck list or newly created */ -static CandidateCheckPair *priv_process_response_check_for_peer_reflexive(NiceAgent *agent, Stream *stream, Component *component, CandidateCheckPair *p, NiceSocket *sockptr, struct sockaddr *mapped_sockaddr, NiceCandidate *local_candidate, NiceCandidate *remote_candidate) +static CandidateCheckPair *priv_process_response_check_for_reflexive(NiceAgent *agent, Stream *stream, Component *component, CandidateCheckPair *p, NiceSocket *sockptr, struct sockaddr *mapped_sockaddr, NiceCandidate *local_candidate, NiceCandidate *remote_candidate) { CandidateCheckPair *new_pair = NULL; NiceAddress mapped; @@ -2426,7 +2426,7 @@ static gboolean priv_map_reply_to_conn_check_request (NiceAgent *agent, Stream * " conncheck %p SUCCEEDED.", agent, p); priv_conn_check_unfreeze_related (agent, stream, p); } else { - ok_pair = priv_process_response_check_for_peer_reflexive (agent, + ok_pair = priv_process_response_check_for_reflexive (agent, stream, component, p, sockptr, &sockaddr.addr, local_candidate, remote_candidate); } |