Browse Source

Update attribute values according to RFC 8656 (#1748)

Source https://datatracker.ietf.org/doc/html/rfc8656#section-18
Now conforms to RFC specification

- ADDITIONAL_ADDRESS_FAMILY (0x8000) - was (0x8032)
- ADDRESS_ERROR_CODE (0x8001) - was (0x8033)

Fixes #1740
Pavel Punsky 1 month ago
parent
commit
0749cd7efd
2 changed files with 5 additions and 5 deletions
  1. 5 0
      src/client/ns_turn_msg_defs.h
  2. 0 5
      src/client/ns_turn_msg_defs_experimental.h

+ 5 - 0
src/client/ns_turn_msg_defs.h

@@ -136,6 +136,11 @@
 #define STUN_ATTRIBUTE_CONNECTION_ID (0x002A)
 /* <<== RFC 6062 */
 
+/* RFC 8656 ==>> */
+#define STUN_ATTRIBUTE_ADDITIONAL_ADDRESS_FAMILY (0x8000)
+#define STUN_ATTRIBUTE_ADDRESS_ERROR_CODE (0x8001)
+/* <<== RFC 8656 */
+
 #define STUN_VALID_CHANNEL(chn) ((chn) >= 0x4000 && (chn) <= 0x7FFF)
 
 ///////// extra values //////////////////

+ 0 - 5
src/client/ns_turn_msg_defs_experimental.h

@@ -53,9 +53,4 @@
 
 /* <<== Bandwidth */
 
-////////////// SSODA ///////////////////
-
-#define STUN_ATTRIBUTE_ADDITIONAL_ADDRESS_FAMILY (0x8032)
-#define STUN_ATTRIBUTE_ADDRESS_ERROR_CODE (0x8033)
-
 #endif //__LIB_TURN_MSG_DEFS_NEW__