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
1a0950ce
Commit
1a0950ce
authored
Aug 05, 2008
by
Youness Alaoui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adding TURN specific enums and constants
parent
4c8e1f40
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
stun/constants.h
stun/constants.h
+1
-0
stun/stunmessage.h
stun/stunmessage.h
+6
-2
No files found.
stun/constants.h
View file @
1a0950ce
...
...
@@ -71,6 +71,7 @@
#define STUN_AGENT_MAX_UNKNOWN_ATTRIBUTES 256
#define STUN_MAGIC_COOKIE 0x2112A442
#define TURN_MAGIC_COOKIE 0x72c64bc6
#ifndef TRUE
#define TRUE (1 == 1)
...
...
stun/stunmessage.h
View file @
1a0950ce
...
...
@@ -59,6 +59,7 @@ typedef enum
STUN_OLD_SHARED_SECRET
=
0x002
,
/* old RFC3489 */
STUN_ALLOCATE
=
0x003
,
/* TURN-04 */
STUN_SET_ACTIVE_DST
=
0x004
,
/* TURN-04 */
STUN_SEND
=
0x004
,
/* TURN-09 */
STUN_CONNECT
=
0x005
,
/* TURN-04 */
STUN_IND_SEND
=
0x006
,
/* TURN-04 */
STUN_IND_DATA
=
0x007
,
/* TURN-04 */
...
...
@@ -87,9 +88,9 @@ typedef enum
/* 0x000C */
/* reserved */
STUN_ATTRIBUTE_LIFETIME
=
0x000D
,
/* TURN-04 */
/* 0x000E */
/* reserved */
/* 0x000F */
/* reserved
*/
STUN_ATTRIBUTE_MAGIC_COOKIE
=
0x000F
,
/* STUN/TURN magic cookie
*/
STUN_ATTRIBUTE_BANDWIDTH
=
0x0010
,
/* TURN-04 */
/* 0x0011 */
/* reserved
*/
STUN_ATTRIBUTE_DESTINATION_ADDRESS
=
0x0011
,
/* TURN jingle
*/
STUN_ATTRIBUTE_REMOTE_ADDRESS
=
0x0012
,
/* TURN-04 */
STUN_ATTRIBUTE_DATA
=
0x0013
,
/* TURN-04 */
STUN_ATTRIBUTE_REALM
=
0x0014
,
/* RFC3489bis-11 */
...
...
@@ -107,6 +108,7 @@ typedef enum
STUN_ATTRIBUTE_XOR_MAPPED_ADDRESS
=
0x0020
,
/* RFC3489bis-11 */
STUN_ATTRIBUTE_TIMER_VAL
=
0x0021
,
/* TURN-04 */
STUN_ATTRIBUTE_REQUESTED_IP
=
0x0022
,
/* TURN-04 */
STUN_ATTRIBUTE_RESERVATION_TOKEN
=
0x0022
,
/* TURN-09 */
STUN_ATTRIBUTE_CONNECT_STAT
=
0x0023
,
/* TURN-04 */
STUN_ATTRIBUTE_PRIORITY
=
0x0024
,
/* ICE-18 */
STUN_ATTRIBUTE_USE_CANDIDATE
=
0x0025
,
/* ICE-18 */
...
...
@@ -145,6 +147,7 @@ static const uint16_t STUN_ALL_KNOWN_ATTRIBUTES[] =
STUN_ATTRIBUTE_UNKNOWN_ATTRIBUTES
,
STUN_ATTRIBUTE_OLD_REFLECTED_FROM
,
STUN_ATTRIBUTE_LIFETIME
,
STUN_ATTRIBUTE_MAGIC_COOKIE
,
STUN_ATTRIBUTE_BANDWIDTH
,
STUN_ATTRIBUTE_REMOTE_ADDRESS
,
STUN_ATTRIBUTE_DATA
,
...
...
@@ -157,6 +160,7 @@ static const uint16_t STUN_ALL_KNOWN_ATTRIBUTES[] =
STUN_ATTRIBUTE_XOR_MAPPED_ADDRESS
,
STUN_ATTRIBUTE_TIMER_VAL
,
STUN_ATTRIBUTE_REQUESTED_IP
,
STUN_ATTRIBUTE_RESERVATION_TOKEN
,
STUN_ATTRIBUTE_CONNECT_STAT
,
STUN_ATTRIBUTE_PRIORITY
,
STUN_ATTRIBUTE_USE_CANDIDATE
,
...
...
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