Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

134 lines
4.1 KiB

  1. RFC1155-SMI DEFINITIONS ::= BEGIN
  2. --
  3. -- Microsoft extracted from RFC1155 and made no changes.
  4. --
  5. EXPORTS -- EVERYTHING
  6. internet, directory, mgmt,
  7. experimental, private, enterprises,
  8. OBJECT-TYPE, ObjectName, ObjectSyntax, SimpleSyntax,
  9. ApplicationSyntax, NetworkAddress, IpAddress,
  10. Counter, Gauge, TimeTicks, Opaque;
  11. -- the path to the root
  12. internet OBJECT IDENTIFIER ::= { iso org(3) dod(6) 1 }
  13. directory OBJECT IDENTIFIER ::= { internet 1 }
  14. mgmt OBJECT IDENTIFIER ::= { internet 2 }
  15. experimental OBJECT IDENTIFIER ::= { internet 3 }
  16. private OBJECT IDENTIFIER ::= { internet 4 }
  17. enterprises OBJECT IDENTIFIER ::= { private 1 }
  18. -- definition of object types
  19. OBJECT-TYPE MACRO ::=
  20. BEGIN
  21. TYPE NOTATION ::= "SYNTAX" type (TYPE ObjectSyntax)
  22. "ACCESS" Access
  23. "STATUS" Status
  24. VALUE NOTATION ::= value (VALUE ObjectName)
  25. Access ::= "read-only"
  26. | "read-write"
  27. | "write-only"
  28. | "not-accessible"
  29. Status ::= "mandatory"
  30. | "optional"
  31. | "obsolete"
  32. END
  33. -- names of objects in the MIB
  34. ObjectName ::=
  35. OBJECT IDENTIFIER
  36. -- syntax of objects in the MIB
  37. ObjectSyntax ::=
  38. CHOICE {
  39. simple
  40. SimpleSyntax,
  41. -- note that simple SEQUENCEs are not directly
  42. -- mentioned here to keep things simple (i.e.,
  43. -- prevent mis-use). However, application-wide
  44. -- types which are IMPLICITly encoded simple
  45. -- SEQUENCEs may appear in the following CHOICE
  46. application-wide
  47. ApplicationSyntax
  48. }
  49. SimpleSyntax ::=
  50. CHOICE {
  51. number
  52. INTEGER,
  53. string
  54. OCTET STRING,
  55. object
  56. OBJECT IDENTIFIER,
  57. empty
  58. NULL
  59. }
  60. ApplicationSyntax ::=
  61. CHOICE {
  62. address
  63. NetworkAddress,
  64. counter
  65. Counter,
  66. gauge
  67. Gauge,
  68. ticks
  69. TimeTicks,
  70. arbitrary
  71. Opaque
  72. -- other application-wide types, as they are
  73. -- defined, will be added here
  74. }
  75. -- application-wide types
  76. NetworkAddress ::=
  77. CHOICE {
  78. internet
  79. IpAddress
  80. }
  81. IpAddress ::=
  82. [APPLICATION 0] -- in network-byte order
  83. IMPLICIT OCTET STRING (SIZE (4))
  84. Counter ::=
  85. [APPLICATION 1]
  86. IMPLICIT INTEGER (0..4294967295)
  87. Gauge ::=
  88. [APPLICATION 2]
  89. IMPLICIT INTEGER (0..4294967295)
  90. TimeTicks ::=
  91. [APPLICATION 3]
  92. IMPLICIT INTEGER (0..4294967295)
  93. Opaque ::=
  94. [APPLICATION 4] -- arbitrary ASN.1 value,
  95. IMPLICIT OCTET STRING -- "double-wrapped"
  96. END