Leaked source code of windows server 2003
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.

318 lines
17 KiB

  1. /*++
  2. Copyright (c) 1996 Microsoft Corporation
  3. Module Name:
  4. mibentry.c
  5. Abstract:
  6. Sample subagent mib structures.
  7. Note:
  8. This file is an example of the output to be produced from the
  9. code generation utility.
  10. --*/
  11. #include "precomp.h"
  12. #pragma hdrstop
  13. ///////////////////////////////////////////////////////////////////////////////
  14. // //
  15. // root oid //
  16. // //
  17. ///////////////////////////////////////////////////////////////////////////////
  18. static UINT ids_msiprip2[] = {1,3,6,1,4,1,311,1,11};
  19. ///////////////////////////////////////////////////////////////////////////////
  20. // //
  21. // global group (1.3.6.1.4.1.311.1.11.1) //
  22. // //
  23. ///////////////////////////////////////////////////////////////////////////////
  24. static UINT ids_global[] = {1,0};
  25. static UINT ids_globalSystemRouteChanges[] = {1,1,0};
  26. static UINT ids_globalTotalResponseSends[] = {1,2,0};
  27. static UINT ids_globalLoggingLevel[] = {1,3,0};
  28. static UINT ids_globalMaxRecQueueSize[] = {1,4,0};
  29. static UINT ids_globalMaxSendQueueSize[] = {1,5,0};
  30. static UINT ids_globalMinTriggeredUpdateInterval[] = {1,6,0};
  31. static UINT ids_globalPeerFilterMode[] = {1,7,0};
  32. static UINT ids_globalPeerFilterCount[] = {1,8,0};
  33. static UINT ids_globalPeerFilterTable[] = {1,9,0};
  34. ///////////////////////////////////////////////////////////////////////////////
  35. // //
  36. // globalPeerFilterEntry table (1.3.6.1.4.1.311.1.11.1.9.1) //
  37. // //
  38. ///////////////////////////////////////////////////////////////////////////////
  39. static UINT ids_globalPeerFilterEntry[] = {1,9,1};
  40. static UINT ids_globalPFAddr[] = {1,9,1,1};
  41. static UINT ids_globalPFTag[] = {1,9,1,2};
  42. ///////////////////////////////////////////////////////////////////////////////
  43. // //
  44. // interface group (1.3.6.1.4.1.311.1.11.2) //
  45. // //
  46. ///////////////////////////////////////////////////////////////////////////////
  47. static UINT ids_interface[] = {2,0};
  48. static UINT ids_ifStatsTable[] = {2,1,0};
  49. static UINT ids_ifConfigTable[] = {2,2,0};
  50. static UINT ids_ifUnicastPeersTable[] = {2,3,0};
  51. static UINT ids_ifAcceptRouteFilterTable[] = {2,4,0};
  52. static UINT ids_ifAnnounceRouteFilterTable[] = {2,5,0};
  53. static UINT ids_ifBindingTable[] = {2,6,0};
  54. static UINT ids_ifAddressTable[] = {2,7,0};
  55. ///////////////////////////////////////////////////////////////////////////////
  56. // //
  57. // ifStatsEntry table (1.3.6.1.4.1.311.1.11.2.1.1) //
  58. // //
  59. ///////////////////////////////////////////////////////////////////////////////
  60. static UINT ids_ifStatsEntry[] = {2,1,1};
  61. static UINT ids_ifSEIndex[] = {2,1,1,1};
  62. static UINT ids_ifSEState[] = {2,1,1,2};
  63. static UINT ids_ifSESendFailures[] = {2,1,1,3};
  64. static UINT ids_ifSEReceiveFailures[] = {2,1,1,4};
  65. static UINT ids_ifSERequestSends[] = {2,1,1,5};
  66. static UINT ids_ifSERequestReceiveds[] = {2,1,1,6};
  67. static UINT ids_ifSEResponseSends[] = {2,1,1,7};
  68. static UINT ids_ifSEResponseReceiveds[] = {2,1,1,8};
  69. static UINT ids_ifSEBadResponsePacketReceiveds[] = {2,1,1,9};
  70. static UINT ids_ifSEBadResponseEntriesReceiveds[] = {2,1,1,10};
  71. static UINT ids_ifSETriggeredUpdateSends[] = {2,1,1,11};
  72. ///////////////////////////////////////////////////////////////////////////////
  73. // //
  74. // ifConfigEntry table (1.3.6.1.4.1.311.1.11.2.2.1) //
  75. // //
  76. ///////////////////////////////////////////////////////////////////////////////
  77. static UINT ids_ifConfigEntry[] = {2,2,1};
  78. static UINT ids_ifCEIndex[] = {2,2,1,1};
  79. static UINT ids_ifCEState[] = {2,2,1,2};
  80. static UINT ids_ifCEMetric[] = {2,2,1,3};
  81. static UINT ids_ifCEUpdateMode[] = {2,2,1,4};
  82. static UINT ids_ifCEAcceptMode[] = {2,2,1,5};
  83. static UINT ids_ifCEAnnounceMode[] = {2,2,1,6};
  84. static UINT ids_ifCEProtocolFlags[] = {2,2,1,7};
  85. static UINT ids_ifCERouteExpirationInterval[] = {2,2,1,8};
  86. static UINT ids_ifCERouteRemovalInterval[] = {2,2,1,9};
  87. static UINT ids_ifCEFullUpdateInterval[] = {2,2,1,10};
  88. static UINT ids_ifCEAuthenticationType[] = {2,2,1,11};
  89. static UINT ids_ifCEAuthenticationKey[] = {2,2,1,12};
  90. static UINT ids_ifCERouteTag[] = {2,2,1,13};
  91. static UINT ids_ifCEUnicastPeerMode[] = {2,2,1,14};
  92. static UINT ids_ifCEAcceptFilterMode[] = {2,2,1,15};
  93. static UINT ids_ifCEAnnounceFilterMode[] = {2,2,1,16};
  94. static UINT ids_ifCEUnicastPeerCount[] = {2,2,1,17};
  95. static UINT ids_ifCEAcceptFilterCount[] = {2,2,1,18};
  96. static UINT ids_ifCEAnnounceFilterCount[] = {2,2,1,19};
  97. ///////////////////////////////////////////////////////////////////////////////
  98. // //
  99. // ifUnicastPeersEntry table (1.3.6.1.4.1.311.1.11.2.3.1) //
  100. // //
  101. ///////////////////////////////////////////////////////////////////////////////
  102. static UINT ids_ifUnicastPeersEntry[] = {2,3,1};
  103. static UINT ids_ifUPIfIndex[] = {2,3,1,1};
  104. static UINT ids_ifUPAddress[] = {2,3,1,2};
  105. static UINT ids_ifUPTag[] = {2,3,1,3};
  106. ///////////////////////////////////////////////////////////////////////////////
  107. // //
  108. // ifAcceptRouteFilterEntry table (1.3.6.1.4.1.311.1.11.2.4.1) //
  109. // //
  110. ///////////////////////////////////////////////////////////////////////////////
  111. static UINT ids_ifAcceptRouteFilterEntry[] = {2,4,1};
  112. static UINT ids_ifAcceptRFIfIndex[] = {2,4,1,1};
  113. static UINT ids_ifAcceptRFLoAddress[] = {2,4,1,2};
  114. static UINT ids_ifAcceptRFHiAddress[] = {2,4,1,3};
  115. static UINT ids_ifAcceptRFTag[] = {2,4,1,4};
  116. ///////////////////////////////////////////////////////////////////////////////
  117. // //
  118. // ifAnnounceRouteFilterEntry table (1.3.6.1.4.1.311.1.11.2.5.1) //
  119. // //
  120. ///////////////////////////////////////////////////////////////////////////////
  121. static UINT ids_ifAnnounceRouteFilterEntry[] = {2,5,1};
  122. static UINT ids_ifAnnounceRFIfIndex[] = {2,5,1,1};
  123. static UINT ids_ifAnnounceRFLoAddress[] = {2,5,1,2};
  124. static UINT ids_ifAnnounceRFHiAddress[] = {2,5,1,3};
  125. static UINT ids_ifAnnounceRFTag[] = {2,5,1,4};
  126. ///////////////////////////////////////////////////////////////////////////////
  127. // //
  128. // ifBindingEntry table (1.3.6.1.4.1.311.1.11.2.6.1) //
  129. // //
  130. ///////////////////////////////////////////////////////////////////////////////
  131. static UINT ids_ifBindingEntry[] = {2,6,1};
  132. static UINT ids_ifBindingIndex[] = {2,6,1,1};
  133. static UINT ids_ifBindingState[] = {2,6,1,2};
  134. static UINT ids_ifBindingCounts[] = {2,6,1,3};
  135. ///////////////////////////////////////////////////////////////////////////////
  136. // //
  137. // ifAddressEntry table (1.3.6.1.4.1.311.1.11.2.7.1) //
  138. // //
  139. ///////////////////////////////////////////////////////////////////////////////
  140. static UINT ids_ifAddressEntry[] = {2,7,1};
  141. static UINT ids_ifAEIfIndex[] = {2,7,1,1};
  142. static UINT ids_ifAEAddress[] = {2,7,1,2};
  143. static UINT ids_ifAEMask[] = {2,7,1,3};
  144. ///////////////////////////////////////////////////////////////////////////////
  145. // //
  146. // peer group (1.3.6.1.4.1.311.1.11.3) //
  147. // //
  148. ///////////////////////////////////////////////////////////////////////////////
  149. static UINT ids_peer[] = {3,0};
  150. static UINT ids_ifPeerStatsTable[] = {3,1,0};
  151. ///////////////////////////////////////////////////////////////////////////////
  152. // //
  153. // ifPeerStatsEntry table (1.3.6.1.4.1.311.1.11.3.1.1) //
  154. // //
  155. ///////////////////////////////////////////////////////////////////////////////
  156. static UINT ids_ifPeerStatsEntry[] = {3,1,1};
  157. static UINT ids_ifPSAddress[] = {3,1,1,1};
  158. static UINT ids_ifPSLastPeerRouteTag[] = {3,1,1,2};
  159. static UINT ids_ifPSLastPeerUpdateTickCount[] = {3,1,1,3};
  160. static UINT ids_ifPSLastPeerUpdateVersion[] = {3,1,1,4};
  161. static UINT ids_ifPSPeerBadResponsePackets[] = {3,1,1,5};
  162. static UINT ids_ifPSPeerBadResponseEntries[] = {3,1,1,6};
  163. ///////////////////////////////////////////////////////////////////////////////
  164. // //
  165. // Mib entry list //
  166. // //
  167. ///////////////////////////////////////////////////////////////////////////////
  168. SnmpMibEntry mib_msiprip2[] = {
  169. MIB_GROUP(global),
  170. MIB_COUNTER(globalSystemRouteChanges),
  171. MIB_COUNTER(globalTotalResponseSends),
  172. MIB_INTEGER_RW(globalLoggingLevel),
  173. MIB_INTEGER_RW(globalMaxRecQueueSize),
  174. MIB_INTEGER_RW(globalMaxSendQueueSize),
  175. MIB_TIMETICKS_RW(globalMinTriggeredUpdateInterval),
  176. MIB_INTEGER_RW(globalPeerFilterMode),
  177. MIB_INTEGER(globalPeerFilterCount),
  178. MIB_TABLE_ROOT(globalPeerFilterTable),
  179. MIB_TABLE_ENTRY(globalPeerFilterEntry),
  180. MIB_IPADDRESS_RW(globalPFAddr),
  181. MIB_INTEGER(globalPFTag),
  182. MIB_GROUP(interface),
  183. MIB_TABLE_ROOT(ifStatsTable),
  184. MIB_TABLE_ENTRY(ifStatsEntry),
  185. MIB_INTEGER(ifSEIndex),
  186. MIB_INTEGER(ifSEState),
  187. MIB_COUNTER(ifSESendFailures),
  188. MIB_COUNTER(ifSEReceiveFailures),
  189. MIB_COUNTER(ifSERequestSends),
  190. MIB_COUNTER(ifSERequestReceiveds),
  191. MIB_COUNTER(ifSEResponseSends),
  192. MIB_COUNTER(ifSEResponseReceiveds),
  193. MIB_COUNTER(ifSEBadResponsePacketReceiveds),
  194. MIB_COUNTER(ifSEBadResponseEntriesReceiveds),
  195. MIB_COUNTER(ifSETriggeredUpdateSends),
  196. MIB_TABLE_ROOT(ifConfigTable),
  197. MIB_TABLE_ENTRY(ifConfigEntry),
  198. MIB_INTEGER(ifCEIndex),
  199. MIB_INTEGER(ifCEState),
  200. MIB_INTEGER_RW(ifCEMetric),
  201. MIB_INTEGER_RW(ifCEUpdateMode),
  202. MIB_INTEGER_RW(ifCEAcceptMode),
  203. MIB_INTEGER_RW(ifCEAnnounceMode),
  204. MIB_INTEGER_RW(ifCEProtocolFlags),
  205. MIB_TIMETICKS_RW(ifCERouteExpirationInterval),
  206. MIB_TIMETICKS_RW(ifCERouteRemovalInterval),
  207. MIB_TIMETICKS_RW(ifCEFullUpdateInterval),
  208. MIB_INTEGER_RW(ifCEAuthenticationType),
  209. MIB_OCTETSTRING_RW_L(ifCEAuthenticationKey,0,16),
  210. MIB_INTEGER_RW(ifCERouteTag),
  211. MIB_INTEGER_RW(ifCEUnicastPeerMode),
  212. MIB_INTEGER_RW(ifCEAcceptFilterMode),
  213. MIB_INTEGER_RW(ifCEAnnounceFilterMode),
  214. MIB_INTEGER(ifCEUnicastPeerCount),
  215. MIB_INTEGER(ifCEAcceptFilterCount),
  216. MIB_INTEGER(ifCEAnnounceFilterCount),
  217. MIB_TABLE_ROOT(ifUnicastPeersTable),
  218. MIB_TABLE_ENTRY(ifUnicastPeersEntry),
  219. MIB_INTEGER(ifUPIfIndex),
  220. MIB_IPADDRESS_RW(ifUPAddress),
  221. MIB_INTEGER(ifUPTag),
  222. MIB_TABLE_ROOT(ifAcceptRouteFilterTable),
  223. MIB_TABLE_ENTRY(ifAcceptRouteFilterEntry),
  224. MIB_INTEGER(ifAcceptRFIfIndex),
  225. MIB_IPADDRESS_RW(ifAcceptRFLoAddress),
  226. MIB_IPADDRESS_RW(ifAcceptRFHiAddress),
  227. MIB_INTEGER(ifAcceptRFTag),
  228. MIB_TABLE_ROOT(ifAnnounceRouteFilterTable),
  229. MIB_TABLE_ENTRY(ifAnnounceRouteFilterEntry),
  230. MIB_INTEGER(ifAnnounceRFIfIndex),
  231. MIB_IPADDRESS_RW(ifAnnounceRFLoAddress),
  232. MIB_IPADDRESS_RW(ifAnnounceRFHiAddress),
  233. MIB_INTEGER(ifAnnounceRFTag),
  234. MIB_TABLE_ROOT(ifBindingTable),
  235. MIB_TABLE_ENTRY(ifBindingEntry),
  236. MIB_INTEGER(ifBindingIndex),
  237. MIB_INTEGER(ifBindingState),
  238. MIB_COUNTER(ifBindingCounts),
  239. MIB_TABLE_ROOT(ifAddressTable),
  240. MIB_TABLE_ENTRY(ifAddressEntry),
  241. MIB_INTEGER(ifAEIfIndex),
  242. MIB_IPADDRESS(ifAEAddress),
  243. MIB_IPADDRESS(ifAEMask),
  244. MIB_GROUP(peer),
  245. MIB_TABLE_ROOT(ifPeerStatsTable),
  246. MIB_TABLE_ENTRY(ifPeerStatsEntry),
  247. MIB_IPADDRESS(ifPSAddress),
  248. MIB_INTEGER(ifPSLastPeerRouteTag),
  249. MIB_TIMETICKS(ifPSLastPeerUpdateTickCount),
  250. MIB_INTEGER_L(ifPSLastPeerUpdateVersion,0,255),
  251. MIB_COUNTER(ifPSPeerBadResponsePackets),
  252. MIB_COUNTER(ifPSPeerBadResponseEntries),
  253. MIB_END()
  254. };
  255. ///////////////////////////////////////////////////////////////////////////////
  256. // //
  257. // Mib entry list //
  258. // //
  259. ///////////////////////////////////////////////////////////////////////////////
  260. SnmpMibTable tbl_msiprip2[] = {
  261. MIB_TABLE(msiprip2,globalPeerFilterEntry,NULL),
  262. MIB_TABLE(msiprip2,ifStatsEntry,NULL),
  263. MIB_TABLE(msiprip2,ifConfigEntry,NULL),
  264. MIB_TABLE(msiprip2,ifUnicastPeersEntry,NULL),
  265. MIB_TABLE(msiprip2,ifAcceptRouteFilterEntry,NULL),
  266. MIB_TABLE(msiprip2,ifAnnounceRouteFilterEntry,NULL),
  267. MIB_TABLE(msiprip2,ifBindingEntry,NULL),
  268. MIB_TABLE(msiprip2,ifAddressEntry,NULL),
  269. MIB_TABLE(msiprip2,ifPeerStatsEntry,NULL)
  270. };
  271. ///////////////////////////////////////////////////////////////////////////////
  272. // //
  273. // Mib view //
  274. // //
  275. ///////////////////////////////////////////////////////////////////////////////
  276. SnmpMibView v_msiprip2 = MIB_VIEW(msiprip2);