Commit a357b17f authored by Fabrice Bellet's avatar Fabrice Bellet Committed by Philip Withnall

conncheck: display controlling mode of stun requests

This patch makes the debug log more explicit about the agent
controlling role for each stun request sent. It helps to debug
role conflict resolution.
Reviewed-by: default avatarPhilip Withnall <philip.withnall@collabora.co.uk>
Differential Revision: https://phabricator.freedesktop.org/D877
parent b986d6e5
...@@ -1938,7 +1938,7 @@ int conn_check_send (NiceAgent *agent, CandidateCheckPair *pair) ...@@ -1938,7 +1938,7 @@ int conn_check_send (NiceAgent *agent, CandidateCheckPair *pair)
nice_address_to_string (&pair->remote->addr, tmpbuf2); nice_address_to_string (&pair->remote->addr, tmpbuf2);
nice_debug ("Agent %p : STUN-CC REQ [%s]:%u --> [%s]:%u, socket=%u, " nice_debug ("Agent %p : STUN-CC REQ [%s]:%u --> [%s]:%u, socket=%u, "
"pair=%s (c-id:%u), tie=%llu, username='%.*s' (%" G_GSIZE_FORMAT "), " "pair=%s (c-id:%u), tie=%llu, username='%.*s' (%" G_GSIZE_FORMAT "), "
"password='%.*s' (%" G_GSIZE_FORMAT "), priority=%u.", agent, "password='%.*s' (%" G_GSIZE_FORMAT "), prio=%u, cont=%d.", agent,
tmpbuf1, nice_address_get_port (&pair->local->addr), tmpbuf1, nice_address_get_port (&pair->local->addr),
tmpbuf2, nice_address_get_port (&pair->remote->addr), tmpbuf2, nice_address_get_port (&pair->remote->addr),
pair->sockptr->fileno ? g_socket_get_fd(pair->sockptr->fileno) : -1, pair->sockptr->fileno ? g_socket_get_fd(pair->sockptr->fileno) : -1,
...@@ -1946,7 +1946,7 @@ int conn_check_send (NiceAgent *agent, CandidateCheckPair *pair) ...@@ -1946,7 +1946,7 @@ int conn_check_send (NiceAgent *agent, CandidateCheckPair *pair)
(unsigned long long)agent->tie_breaker, (unsigned long long)agent->tie_breaker,
(int) uname_len, uname, uname_len, (int) uname_len, uname, uname_len,
(int) password_len, password, password_len, (int) password_len, password, password_len,
priority); priority, controlling);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment