summaryrefslogtreecommitdiff
path: root/stun
diff options
context:
space:
mode:
authorAndrey Skryabin <andrey.skryabin@nordigy.ru>2018-11-06 15:34:10 +0300
committerOlivier CrĂȘte <olivier.crete@collabora.com>2019-05-08 17:09:31 -0400
commit1faae8c83336eccb0fb3ddc7dd894bd36996d2fa (patch)
tree1744115a908a2b9dcf0d358bd2d3754ab9cbb7fa /stun
parent62cbfbd552debcf477056dfadac52156b5ff6565 (diff)
downloadlibnice-1faae8c83336eccb0fb3ddc7dd894bd36996d2fa.tar.gz
conncheck: NOMINATION STUN attribute support
Attribute is proposed here: https://tools.ietf.org/html/draft-thatcher-ice-renomination-00 WebRTC supports this attribute: controlling side provides attribute value increased by one each time selected pair is changed: https://chromium.googlesource.com/external/webrtc/+/3c7d599750405bc734e1d5adbf1b54265b725a9d/p2p/base/p2ptransportchannel.cc#1821
Diffstat (limited to 'stun')
-rw-r--r--stun/stunmessage.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/stun/stunmessage.h b/stun/stunmessage.h
index 26ee12d..0ac9977 100644
--- a/stun/stunmessage.h
+++ b/stun/stunmessage.h
@@ -230,6 +230,8 @@ typedef enum
* attribute as defined by [MS-ICE2]
* @STUN_ATTRIBUTE_MS_IMPLEMENTATION_VERSION: The IMPLEMENTATION-VERSION
* optional attribute as defined by [MS-ICE2]
+ * @STUN_ATTRIBUTE_NOMINATION: The NOMINATION attribute as defined by
+ * draft-thatcher-ice-renomination-00 and deployed in Google Chrome
*
* Known STUN attribute types as defined by various RFCs and drafts
*/
@@ -309,8 +311,10 @@ typedef enum
/* 0x8051-0x8053 */ /* reserved */
STUN_ATTRIBUTE_CANDIDATE_IDENTIFIER=0x8054, /* MS-ICE2 */
/* 0x8055-0x806F */ /* reserved */
- STUN_ATTRIBUTE_MS_IMPLEMENTATION_VERSION=0x8070 /* MS-ICE2 */
- /* 0x8071-0xFFFF */ /* reserved */
+ STUN_ATTRIBUTE_MS_IMPLEMENTATION_VERSION=0x8070, /* MS-ICE2 */
+ /* 0x8071-0xC000 */ /* reserved */
+ STUN_ATTRIBUTE_NOMINATION=0xC001 /* https://tools.ietf.org/html/draft-thatcher-ice-renomination-00 */
+ /* 0xC002-0xFFFF */ /* reserved */
} StunAttribute;