Commit b0918b6e authored by Youness Alaoui's avatar Youness Alaoui
Browse files

Add the jingle and turn-09 methods and comprehension attributes

parent 9d8812fb
......@@ -62,9 +62,11 @@ typedef enum
STUN_REFRESH=0x004, /* TURN-09 */
STUN_SEND=0x004, /* TURN-09 */
STUN_CONNECT=0x005, /* TURN-04 */
STUN_OLD_SET_ACTIVE_DST=0x006, /* TURN-00 */
STUN_IND_SEND=0x006, /* TURN-04 */
STUN_IND_DATA=0x007, /* TURN-04 */
STUN_IND_CONNECT_STATUS=0x008 /* TURN-04 */
STUN_IND_CONNECT_STATUS=0x008, /* TURN-04 */
STUN_CHANNELBIND= 0x009 /* TURN-09 */
} stun_method_t;
/**
......@@ -86,7 +88,7 @@ typedef enum
STUN_ATTRIBUTE_ERROR_CODE=0x0009, /* RFC3489bis-11 */
STUN_ATTRIBUTE_UNKNOWN_ATTRIBUTES=0x000A, /* RFC3489bis-11 */
STUN_ATTRIBUTE_OLD_REFLECTED_FROM=0x000B, /* old RFC3489 */
/* 0x000C */ /* reserved */
STUN_ATTRIBUTE_CHANNEL_NUMBER=0x000C, /* TURN-09 */
STUN_ATTRIBUTE_LIFETIME=0x000D, /* TURN-04 */
/* 0x000E */ /* reserved */
STUN_ATTRIBUTE_MAGIC_COOKIE=0x000F, /* STUN/TURN magic cookie */
......@@ -123,6 +125,7 @@ typedef enum
/* Optional attributes */
/* 0x8000-0x8021 */ /* reserved */
STUN_ATTRIBUTE_OPTIONS=0x8001, /* libjingle */
STUN_ATTRIBUTE_SOFTWARE=0x8022, /* RFC3489bis-17 */
STUN_ATTRIBUTE_ALTERNATE_SERVER=0x8023, /* RFC3489bis-11 */
STUN_ATTRIBUTE_REFRESH_INTERVAL=0x8024, /* wing-nat-control-04 */
......@@ -149,10 +152,13 @@ static const uint16_t STUN_ALL_KNOWN_ATTRIBUTES[] =
STUN_ATTRIBUTE_ERROR_CODE,
STUN_ATTRIBUTE_UNKNOWN_ATTRIBUTES,
STUN_ATTRIBUTE_OLD_REFLECTED_FROM,
STUN_ATTRIBUTE_CHANNEL_NUMBER,
STUN_ATTRIBUTE_LIFETIME,
STUN_ATTRIBUTE_MAGIC_COOKIE,
STUN_ATTRIBUTE_BANDWIDTH,
STUN_ATTRIBUTE_DESTINATION_ADDRESS,
STUN_ATTRIBUTE_REMOTE_ADDRESS,
STUN_ATTRIBUTE_PEER_ADDRESS,
STUN_ATTRIBUTE_DATA,
STUN_ATTRIBUTE_REALM,
STUN_ATTRIBUTE_NONCE,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment