AttributeType.cs 1.0 KB

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