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
6329509b
Commit
6329509b
authored
Jun 02, 2016
by
Olivier Crête
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
agent: Parse TURN packet on the right socket
https://phabricator.freedesktop.org/T99
parent
2f0daa03
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
agent/agent.c
agent/agent.c
+5
-1
No files found.
agent/agent.c
View file @
6329509b
...
@@ -3622,12 +3622,14 @@ agent_recv_message_unlocked (
...
@@ -3622,12 +3622,14 @@ agent_recv_message_unlocked (
is_turn
=
TRUE
;
is_turn
=
TRUE
;
if
(
!
is_turn
&&
component
->
turn_candidate
&&
if
(
!
is_turn
&&
component
->
turn_candidate
&&
nice_socket_is_based_on
(
component
->
turn_candidate
->
sockptr
,
nicesock
)
&&
nice_address_equal
(
message
->
from
,
nice_address_equal
(
message
->
from
,
&
component
->
turn_candidate
->
turn
->
server
))
{
&
component
->
turn_candidate
->
turn
->
server
))
{
is_turn
=
TRUE
;
is_turn
=
TRUE
;
retval
=
nice_udp_turn_socket_parse_recv_message
(
retval
=
nice_udp_turn_socket_parse_recv_message
(
component
->
turn_candidate
->
sockptr
,
&
nicesock
,
message
);
component
->
turn_candidate
->
sockptr
,
&
nicesock
,
message
);
}
}
for
(
item
=
component
->
turn_servers
;
item
&&
!
is_turn
;
for
(
item
=
component
->
turn_servers
;
item
&&
!
is_turn
;
item
=
g_list_next
(
item
))
{
item
=
g_list_next
(
item
))
{
TurnServer
*
turn
=
item
->
data
;
TurnServer
*
turn
=
item
->
data
;
...
@@ -3644,7 +3646,9 @@ agent_recv_message_unlocked (
...
@@ -3644,7 +3646,9 @@ agent_recv_message_unlocked (
NiceCandidate
*
cand
=
i
->
data
;
NiceCandidate
*
cand
=
i
->
data
;
if
(
cand
->
type
==
NICE_CANDIDATE_TYPE_RELAYED
&&
if
(
cand
->
type
==
NICE_CANDIDATE_TYPE_RELAYED
&&
cand
->
stream_id
==
stream
->
id
)
{
cand
->
turn
==
turn
&&
cand
->
stream_id
==
stream
->
id
&&
nice_socket_is_based_on
(
cand
->
sockptr
,
nicesock
))
{
retval
=
nice_udp_turn_socket_parse_recv_message
(
cand
->
sockptr
,
&
nicesock
,
retval
=
nice_udp_turn_socket_parse_recv_message
(
cand
->
sockptr
,
&
nicesock
,
message
);
message
);
break
;
break
;
...
...
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