Commit dbc0d58a authored by Kai Vehmanen's avatar Kai Vehmanen
Browse files

Updated STUN constants to match the latest drafts.

darcs-hash:20070716095403-77cd4-1d254f95f2a6ebef62ce33816c58d15e53175de5.gz
parent 94158c14
......@@ -90,43 +90,44 @@ typedef enum
/* Message methods */
typedef enum
{
STUN_BINDING=0x001,
STUN_SHARED_SECRET=0x002,
STUN_ALLOCATE=0x003
STUN_BINDING=0x001, /* RFC3489bis-07 */
STUN_OLD_SHARED_SECRET=0x002, /* old RFC3489 */
STUN_ALLOCATE=0x003 /* ?? TURN */
} stun_method_t;
/* Attribute types */
typedef enum
{
/* Mandatory attributes */
STUN_MAPPED_ADDRESS=0x0001,
STUN_OLD_RESPONSE_ADDRESS=0x0002,
STUN_OLD_CHANGE_REQUEST=0x0003,
STUN_OLD_SOURCE_ADDRESS=0x0004,
STUN_OLD_CHANGED_ADDRESS=0x0005,
STUN_USERNAME=0x0006,
STUN_PASSWORD=0x0007,
STUN_MESSAGE_INTEGRITY=0x0008,
STUN_ERROR_CODE=0x0009,
STUN_UNKNOWN_ATTRIBUTES=0x000A,
STUN_OLD_REFLECTED_FROM=0x000B,
STUN_REALM=0x0014,
STUN_NONCE=0x0015,
STUN_XOR_MAPPED_ADDRESS=0x0020,
STUN_PRIORITY=0x0024, /* ICE-15 */
STUN_USE_CANDIDATE=0x0025, /* ICE-15 */
STUN_MAPPED_ADDRESS=0x0001, /* RFC3489bis-07 */
STUN_OLD_RESPONSE_ADDRESS=0x0002, /* old RFC3489 */
STUN_OLD_CHANGE_REQUEST=0x0003, /* old RFC3489 */
STUN_OLD_SOURCE_ADDRESS=0x0004, /* old RFC3489 */
STUN_OLD_CHANGED_ADDRESS=0x0005, /* old RFC3489 */
STUN_USERNAME=0x0006, /* RFC3489bis-07 */
STUN_OLD_PASSWORD=0x0007, /* old RFC3489 */
STUN_MESSAGE_INTEGRITY=0x0008, /* RFC3489bis-07 */
STUN_ERROR_CODE=0x0009, /* RFC3489bis-07 */
STUN_UNKNOWN_ATTRIBUTES=0x000A, /* RFC3489bis-07 */
STUN_OLD_REFLECTED_FROM=0x000B, /* old RFC3489 */
STUN_REALM=0x0014, /* RFC3489bis-07 */
STUN_NONCE=0x0015, /* RFC3489bis-07 */
STUN_REQUESTED_ADDRESS_TYPE=0x0017, /* TURN-IPv6-03 */
STUN_XOR_MAPPED_ADDRESS=0x0020, /* RFC3489bis-07 */
STUN_PRIORITY=0x0024, /* ICE-15 */
STUN_USE_CANDIDATE=0x0025, /* ICE-15 */
/* Optional attributes */
STUN_SERVER=0x8022,
STUN_ALTERNATE_SERVER=0x8023,
STUN_REFRESH_INTERVAL=0x8024,
STUN_SERVER=0x8022, /* RFC3489bis-07 */
STUN_ALTERNATE_SERVER=0x8023, /* RFC3489bis-07 */
STUN_REFRESH_INTERVAL=0x8024, /* RFC3489bis-07 */
STUN_FINGERPRINT=0x8028,
STUN_ICE_CONTROLLED=0x8029, /* ICE-15 */
STUN_ICE_CONTROLLING=0x802A /* ICE-15 */
STUN_FINGERPRINT=0x8028, /* RFC3489bis-07 */
STUN_ICE_CONTROLLED=0x8029, /* ICE-15 */
STUN_ICE_CONTROLLING=0x802A /* ICE-15 */
} stun_attr_type_t;
......
......@@ -617,7 +617,7 @@ bool stun_is_unknown (uint16_t type)
case STUN_OLD_SOURCE_ADDRESS:
case STUN_OLD_CHANGED_ADDRESS:
case STUN_USERNAME:
case STUN_PASSWORD:
case STUN_OLD_PASSWORD:
case STUN_MESSAGE_INTEGRITY:
case STUN_ERROR_CODE:
case STUN_UNKNOWN_ATTRIBUTES:
......
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