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
2356cd66
Commit
2356cd66
authored
Oct 08, 2008
by
Youness Alaoui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix 80char limit and remove an implemented TODO
parent
5869965e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
6 deletions
+9
-6
agent/discovery.c
agent/discovery.c
+1
-1
socket/udp-turn.c
socket/udp-turn.c
+8
-5
No files found.
agent/discovery.c
View file @
2356cd66
...
@@ -800,7 +800,7 @@ static gboolean priv_discovery_tick_unlocked (gpointer pointer)
...
@@ -800,7 +800,7 @@ static gboolean priv_discovery_tick_unlocked (gpointer pointer)
stun_debug
(
"STUN transaction retransmitted (timeout %dms).
\n
"
,
stun_debug
(
"STUN transaction retransmitted (timeout %dms).
\n
"
,
timeout
);
timeout
);
/*
TODO
retransmit */
/* retransmit */
nice_socket_send
(
cand
->
nicesock
,
&
cand
->
server
,
nice_socket_send
(
cand
->
nicesock
,
&
cand
->
server
,
stun_message_length
(
&
cand
->
stun_message
),
stun_message_length
(
&
cand
->
stun_message
),
(
gchar
*
)
cand
->
stun_buffer
);
(
gchar
*
)
cand
->
stun_buffer
);
...
...
socket/udp-turn.c
View file @
2356cd66
...
@@ -349,7 +349,8 @@ nice_udp_turn_socket_parse_recv (
...
@@ -349,7 +349,8 @@ nice_udp_turn_socket_parse_recv (
if
(
valid
==
STUN_VALIDATION_SUCCESS
)
{
if
(
valid
==
STUN_VALIDATION_SUCCESS
)
{
if
(
priv
->
compatibility
!=
NICE_UDP_TURN_SOCKET_COMPATIBILITY_DRAFT9
)
{
if
(
priv
->
compatibility
!=
NICE_UDP_TURN_SOCKET_COMPATIBILITY_DRAFT9
)
{
uint32_t
cookie
;
uint32_t
cookie
;
if
(
stun_message_find32
(
&
msg
,
STUN_ATTRIBUTE_MAGIC_COOKIE
,
&
cookie
)
!=
0
)
if
(
stun_message_find32
(
&
msg
,
STUN_ATTRIBUTE_MAGIC_COOKIE
,
&
cookie
)
!=
0
)
goto
recv
;
goto
recv
;
if
(
cookie
!=
TURN_MAGIC_COOKIE
)
if
(
cookie
!=
TURN_MAGIC_COOKIE
)
goto
recv
;
goto
recv
;
...
@@ -358,9 +359,9 @@ nice_udp_turn_socket_parse_recv (
...
@@ -358,9 +359,9 @@ nice_udp_turn_socket_parse_recv (
if
(
stun_message_get_method
(
&
msg
)
==
STUN_SEND
)
{
if
(
stun_message_get_method
(
&
msg
)
==
STUN_SEND
)
{
if
(
stun_message_get_class
(
&
msg
)
==
STUN_RESPONSE
&&
if
(
stun_message_get_class
(
&
msg
)
==
STUN_RESPONSE
&&
priv
->
compatibility
==
NICE_UDP_TURN_SOCKET_COMPATIBILITY_GOOGLE
)
{
priv
->
compatibility
==
NICE_UDP_TURN_SOCKET_COMPATIBILITY_GOOGLE
)
{
uint32_t
opt
ion
s
=
0
;
uint32_t
opts
=
0
;
if
(
stun_message_find32
(
&
msg
,
STUN_ATTRIBUTE_OPTIONS
,
&
opt
ion
s
)
==
0
&&
if
(
stun_message_find32
(
&
msg
,
STUN_ATTRIBUTE_OPTIONS
,
&
opts
)
==
0
&&
opt
ion
s
&
0x1
)
opts
&
0x1
)
goto
msn_google_lock
;
goto
msn_google_lock
;
}
}
return
0
;
return
0
;
...
@@ -403,7 +404,9 @@ nice_udp_turn_socket_parse_recv (
...
@@ -403,7 +404,9 @@ nice_udp_turn_socket_parse_recv (
goto
recv
;
goto
recv
;
}
}
data
=
(
uint8_t
*
)
stun_message_find
(
&
msg
,
STUN_ATTRIBUTE_DATA
,
&
data_len
);
data
=
(
uint8_t
*
)
stun_message_find
(
&
msg
,
STUN_ATTRIBUTE_DATA
,
&
data_len
);
if
(
data
==
NULL
)
if
(
data
==
NULL
)
goto
recv
;
goto
recv
;
...
...
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