Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
libnice
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cpp-libs
libnice
Commits
b9985474
Commit
b9985474
authored
Jun 27, 2019
by
Fabrice Bellet
Committed by
Olivier Crête
Jun 27, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
conncheck: add transport information to debug
parent
099ff65c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
7 deletions
+31
-7
agent/conncheck.c
agent/conncheck.c
+31
-7
No files found.
agent/conncheck.c
View file @
b9985474
...
@@ -191,6 +191,22 @@ priv_candidate_type_to_string (NiceCandidateType type)
...
@@ -191,6 +191,22 @@ priv_candidate_type_to_string (NiceCandidateType type)
}
}
}
}
static
const
gchar
*
priv_candidate_transport_to_string
(
NiceCandidateTransport
type
)
{
switch
(
type
)
{
case
NICE_CANDIDATE_TRANSPORT_UDP
:
return
"udp"
;
case
NICE_CANDIDATE_TRANSPORT_TCP_ACTIVE
:
return
"tcp-act"
;
case
NICE_CANDIDATE_TRANSPORT_TCP_PASSIVE
:
return
"tcp-pass"
;
case
NICE_CANDIDATE_TRANSPORT_TCP_SO
:
return
"tcp-so"
;
default:
g_assert_not_reached
();
}
}
/*
/*
* Dump the conncheck lists of the agent
* Dump the conncheck lists of the agent
*/
*/
...
@@ -2034,9 +2050,12 @@ static CandidateCheckPair *priv_add_new_check_pair (NiceAgent *agent,
...
@@ -2034,9 +2050,12 @@ static CandidateCheckPair *priv_add_new_check_pair (NiceAgent *agent,
stream
->
conncheck_list
=
g_slist_insert_sorted
(
stream
->
conncheck_list
,
pair
,
stream
->
conncheck_list
=
g_slist_insert_sorted
(
stream
->
conncheck_list
,
pair
,
(
GCompareFunc
)
conn_check_compare
);
(
GCompareFunc
)
conn_check_compare
);
nice_debug
(
"Agent %p : added a new pair %p with foundation '%s' to "
nice_debug
(
"Agent %p : added a new pair %p with foundation '%s' and "
"stream %u component %u."
,
agent
,
pair
,
pair
->
foundation
,
stream_id
,
"transport %s:%s to stream %u component %u"
,
component
->
id
);
agent
,
pair
,
pair
->
foundation
,
priv_candidate_transport_to_string
(
pair
->
local
->
transport
),
priv_candidate_transport_to_string
(
pair
->
remote
->
transport
),
stream_id
,
component
->
id
);
/* implement the hard upper limit for number of
/* implement the hard upper limit for number of
checks (see sect 5.7.3 ICE ID-19): */
checks (see sect 5.7.3 ICE ID-19): */
...
@@ -2952,8 +2971,12 @@ static CandidateCheckPair *priv_add_peer_reflexive_pair (NiceAgent *agent, guint
...
@@ -2952,8 +2971,12 @@ static CandidateCheckPair *priv_add_peer_reflexive_pair (NiceAgent *agent, guint
pair
->
nominated
=
parent_pair
->
nominated
;
pair
->
nominated
=
parent_pair
->
nominated
;
pair
->
prflx_priority
=
ensure_unique_priority
(
stream
,
component
,
pair
->
prflx_priority
=
ensure_unique_priority
(
stream
,
component
,
peer_reflexive_candidate_priority
(
agent
,
local_cand
));
peer_reflexive_candidate_priority
(
agent
,
local_cand
));
nice_debug
(
"Agent %p : added a new peer-discovered pair with "
nice_debug
(
"Agent %p : added a new peer-discovered pair %p with "
"foundation '%s'."
,
agent
,
pair
->
foundation
);
"foundation '%s' and transport %s:%s to stream %u component %u"
,
agent
,
pair
,
pair
->
foundation
,
priv_candidate_transport_to_string
(
pair
->
local
->
transport
),
priv_candidate_transport_to_string
(
pair
->
remote
->
transport
),
stream_id
,
component
->
id
);
stream
->
conncheck_list
=
g_slist_insert_sorted
(
stream
->
conncheck_list
,
pair
,
stream
->
conncheck_list
=
g_slist_insert_sorted
(
stream
->
conncheck_list
,
pair
,
(
GCompareFunc
)
conn_check_compare
);
(
GCompareFunc
)
conn_check_compare
);
...
@@ -3072,8 +3095,9 @@ static CandidateCheckPair *priv_process_response_check_for_reflexive(NiceAgent *
...
@@ -3072,8 +3095,9 @@ static CandidateCheckPair *priv_process_response_check_for_reflexive(NiceAgent *
sockptr
,
sockptr
,
local_candidate
,
local_candidate
,
remote_candidate
);
remote_candidate
);
nice_debug
(
"Agent %p : added a new peer-reflexive local candidate %p"
,
nice_debug
(
"Agent %p : added a new peer-reflexive local candidate %p "
agent
,
local_cand
);
"with transport %s"
,
agent
,
local_cand
,
priv_candidate_transport_to_string
(
local_cand
->
transport
));
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment