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
7f9ee426
Commit
7f9ee426
authored
Sep 10, 2008
by
Youness Alaoui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ice usage should not check for alternate server
parent
6f631ec6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
22 deletions
+0
-22
stun/usages/ice.c
stun/usages/ice.c
+0
-20
stun/usages/ice.h
stun/usages/ice.h
+0
-2
No files found.
stun/usages/ice.c
View file @
7f9ee426
...
...
@@ -96,7 +96,6 @@ stun_usage_ice_conncheck_create (StunAgent *agent, StunMessage *msg,
StunUsageIceReturn
stun_usage_ice_conncheck_process
(
StunMessage
*
msg
,
struct
sockaddr
*
addr
,
socklen_t
*
addrlen
,
struct
sockaddr
*
alternate_server
,
socklen_t
*
alternate_server_len
,
StunUsageIceCompatibility
compatibility
)
{
int
val
,
code
=
-
1
;
...
...
@@ -123,25 +122,6 @@ StunUsageIceReturn stun_usage_ice_conncheck_process (StunMessage *msg,
* is authenticated, for security reasons. */
stun_debug
(
" STUN error message received (code: %d)
\n
"
,
code
);
/* ALTERNATE-SERVER mechanism */
if
((
code
/
100
)
==
3
)
{
if
(
alternate_server
&&
alternate_server_len
)
{
if
(
stun_message_find_addr
(
msg
,
STUN_ATTRIBUTE_ALTERNATE_SERVER
,
alternate_server
,
alternate_server_len
))
{
stun_debug
(
" Unexpectedly missing ALTERNATE-SERVER attribute
\n
"
);
return
STUN_USAGE_ICE_RETURN_ERROR
;
}
}
else
{
if
(
!
stun_message_has_attribute
(
msg
,
STUN_ATTRIBUTE_ALTERNATE_SERVER
))
{
stun_debug
(
" Unexpectedly missing ALTERNATE-SERVER attribute
\n
"
);
return
STUN_USAGE_ICE_RETURN_ERROR
;
}
}
stun_debug
(
"Found alternate server
\n
"
);
return
STUN_USAGE_ICE_RETURN_ALTERNATE_SERVER
;
}
return
STUN_USAGE_ICE_RETURN_ERROR
;
}
...
...
stun/usages/ice.h
View file @
7f9ee426
...
...
@@ -57,7 +57,6 @@ typedef enum {
STUN_USAGE_ICE_RETURN_SUCCESS
,
STUN_USAGE_ICE_RETURN_ERROR
,
STUN_USAGE_ICE_RETURN_RETRY
,
STUN_USAGE_ICE_RETURN_ALTERNATE_SERVER
,
STUN_USAGE_ICE_RETURN_ROLE_CONFLICT
,
}
StunUsageIceReturn
;
...
...
@@ -74,7 +73,6 @@ stun_usage_ice_conncheck_create (StunAgent *agent, StunMessage *msg,
StunUsageIceReturn
stun_usage_ice_conncheck_process
(
StunMessage
*
msg
,
struct
sockaddr
*
addr
,
socklen_t
*
addrlen
,
struct
sockaddr
*
alternate_server
,
socklen_t
*
alternate_server_len
,
StunUsageIceCompatibility
compatibility
);
/**
...
...
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