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
a0dc0a5a
Commit
a0dc0a5a
authored
Aug 15, 2008
by
Olivier Crête
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use replace unclear STUN_USAGE_TURN_REQUEST_PORT_BOTH with EVEN_AND_RESERVE
parent
cb501e57
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
7 deletions
+5
-7
stun/usages/turn.c
stun/usages/turn.c
+1
-2
stun/usages/turn.h
stun/usages/turn.h
+4
-5
No files found.
stun/usages/turn.c
View file @
a0dc0a5a
...
@@ -98,8 +98,7 @@ size_t stun_usage_turn_create (StunAgent *agent, StunMessage *msg,
...
@@ -98,8 +98,7 @@ size_t stun_usage_turn_create (StunAgent *agent, StunMessage *msg,
uint32_t
req
=
0
;
uint32_t
req
=
0
;
if
((
request_props
&
STUN_USAGE_TURN_REQUEST_PORT_BOTH
)
==
if
(
request_props
&
STUN_USAGE_TURN_REQUEST_PORT_EVEN_AND_RESERVE
)
{
STUN_USAGE_TURN_REQUEST_PORT_BOTH
){
req
|=
REQUESTED_PROPS_R
;
req
|=
REQUESTED_PROPS_R
;
req
|=
REQUESTED_PROPS_E
;
req
|=
REQUESTED_PROPS_E
;
}
else
if
(
request_props
&
STUN_USAGE_TURN_REQUEST_PORT_EVEN
)
{
}
else
if
(
request_props
&
STUN_USAGE_TURN_REQUEST_PORT_EVEN
)
{
...
...
stun/usages/turn.h
View file @
a0dc0a5a
...
@@ -51,11 +51,10 @@ extern "C" {
...
@@ -51,11 +51,10 @@ extern "C" {
# endif
# endif
#define STUN_USAGE_TURN_REQUEST_PORT_NORMAL 0
#define STUN_USAGE_TURN_REQUEST_PORT_NORMAL (0)
#define STUN_USAGE_TURN_REQUEST_PORT_ODD 1
#define STUN_USAGE_TURN_REQUEST_PORT_EVEN (1)
#define STUN_USAGE_TURN_REQUEST_PORT_EVEN 2
#define STUN_USAGE_TURN_REQUEST_PORT_EVEN_AND_RESERVE (1<<1)
#define STUN_USAGE_TURN_REQUEST_PORT_BOTH 3
#define STUN_USAGE_TURN_REQUEST_PORT_PRESERVING (1<<2)
#define STUN_USAGE_TURN_REQUEST_PORT_PRESERVING 8
typedef
enum
{
typedef
enum
{
STUN_USAGE_TURN_COMPATIBILITY_TD9
,
STUN_USAGE_TURN_COMPATIBILITY_TD9
,
...
...
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