AttributeType.cs 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. namespace STUN.Message.Enums
  2. {
  3. /// <summary>
  4. /// STUN Attribute Registry
  5. /// </summary>
  6. /// <remarks>
  7. /// https://tools.ietf.org/html/rfc3489#section-11.2
  8. /// https://tools.ietf.org/html/rfc5389#section-18.2
  9. /// https://tools.ietf.org/html/rfc5780#section-9.1
  10. /// https://tools.ietf.org/html/rfc8489#section-18.3
  11. /// </remarks>
  12. public enum AttributeType : ushort
  13. {
  14. Useless = 0x0000,
  15. MappedAddress = 0x0001,
  16. ResponseAddress = 0x0002,
  17. ChangeRequest = 0x0003,
  18. SourceAddress = 0x0004,
  19. ChangedAddress = 0x0005,
  20. Username = 0x0006,
  21. Password = 0x0007,
  22. MessageIntegrity = 0x0008,
  23. ErrorCode = 0x0009,
  24. UnknownAttribute = 0x000A,
  25. ReflectedFrom = 0x000B,
  26. Realm = 0x0014,
  27. Nonce = 0x0015,
  28. MessageIntegritySha256 = 0x001C,
  29. PasswordAlgorithm = 0x001D,
  30. UserHash = 0x001E,
  31. XorMappedAddress = 0x0020,
  32. Padding = 0x0026,
  33. ResponsePort = 0x0027,
  34. PasswordAlgorithms = 0x8002,
  35. AlternateDomain = 0x8003,
  36. Software = 0x8022,
  37. AlternateServer = 0x8023,
  38. CacheTimeout = 0x8027,
  39. Fingerprint = 0x8028,
  40. ResponseOrigin = 0x802B,
  41. OtherAddress = 0x802C,
  42. }
  43. }