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.

142 lines
6.5 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 <snmp.h>
  12. #include <snmpexts.h>
  13. #include "mibfuncs.h"
  14. #include "mibentry.h"
  15. ///////////////////////////////////////////////////////////////////////////////
  16. // //
  17. // root oid //
  18. // //
  19. ///////////////////////////////////////////////////////////////////////////////
  20. static UINT ids_igmp[] = {1,3,6,1,3,59,1,1};
  21. ///////////////////////////////////////////////////////////////////////////////
  22. // //
  23. // igmp group (1,3,6,1,3,59,1,1) //
  24. // //
  25. ///////////////////////////////////////////////////////////////////////////////
  26. static UINT ids_igmpInterfaceTable[] = {1};
  27. static UINT ids_igmpCacheTable[] = {2};
  28. ///////////////////////////////////////////////////////////////////////////////
  29. // //
  30. // igmpInterfaceEntry table (1,3,6,1,3,59,1,1,1,1) //
  31. // //
  32. ///////////////////////////////////////////////////////////////////////////////
  33. static UINT ids_igmpInterfaceEntry[] = {1,1};
  34. static UINT ids_igmpInterfaceIfIndex[] = {1,1,1};
  35. static UINT ids_igmpInterfaceQueryInterval[] = {1,1,2};
  36. static UINT ids_igmpInterfaceStatus[] = {1,1,3};
  37. static UINT ids_igmpInterfaceVersion[] = {1,1,4};
  38. static UINT ids_igmpInterfaceQuerier[] = {1,1,5};
  39. static UINT ids_igmpInterfaceQueryMaxResponseTime[] = {1,1,6};
  40. static UINT ids_igmpInterfaceVersion1QuerierTimer[] = {1,1,9};
  41. static UINT ids_igmpInterfaceWrongVersionQueries[] = {1,1,10};
  42. static UINT ids_igmpInterfaceJoins[] = {1,1,11};
  43. static UINT ids_igmpInterfaceGroups[] = {1,1,13};
  44. static UINT ids_igmpInterfaceRobustness[] = {1,1,14};
  45. static UINT ids_igmpInterfaceLastMembQueryInterval[] = {1,1,15};
  46. static UINT ids_igmpInterfaceProxyIfIndex[] = {1,1,16};
  47. static UINT ids_igmpInterfaceQuerierUpTime[] = {1,1,17};
  48. static UINT ids_igmpInterfaceQuerierExpiryTime[] = {1,1,18};
  49. ///////////////////////////////////////////////////////////////////////////////
  50. // //
  51. // igmpCacheEntry table (1,3,6,1,3,59,1,1,2,1) //
  52. // //
  53. ///////////////////////////////////////////////////////////////////////////////
  54. static UINT ids_igmpCacheEntry[] = {2,1};
  55. static UINT ids_igmpCacheAddress[] = {2,1,1};
  56. static UINT ids_igmpCacheIfIndex[] = {2,1,2};
  57. static UINT ids_igmpCacheSelf[] = {2,1,3};
  58. static UINT ids_igmpCacheLastReporter[] = {2,1,4};
  59. static UINT ids_igmpCacheUpTime[] = {2,1,5};
  60. static UINT ids_igmpCacheExpiryTime[] = {2,1,6};
  61. static UINT ids_igmpCacheStatus[] = {2,1,7};
  62. static UINT ids_igmpCacheVersion1HostTimer[] = {2,1,8};
  63. ///////////////////////////////////////////////////////////////////////////////
  64. // //
  65. // Mib entry list //
  66. // //
  67. ///////////////////////////////////////////////////////////////////////////////
  68. SnmpMibEntry mib_igmp[] = {
  69. MIB_TABLE_ROOT(igmpInterfaceTable),
  70. MIB_TABLE_ENTRY(igmpInterfaceEntry),
  71. MIB_INTEGER_NA(igmpInterfaceIfIndex),
  72. MIB_INTEGER_RW(igmpInterfaceQueryInterval),
  73. MIB_INTEGER_RW(igmpInterfaceStatus),
  74. MIB_INTEGER_RW(igmpInterfaceVersion),
  75. MIB_IPADDRESS(igmpInterfaceQuerier),
  76. MIB_INTEGER_RW(igmpInterfaceQueryMaxResponseTime),
  77. MIB_INTEGER(igmpInterfaceVersion1QuerierTimer),
  78. MIB_COUNTER(igmpInterfaceWrongVersionQueries),
  79. MIB_COUNTER(igmpInterfaceJoins),
  80. MIB_GAUGE(igmpInterfaceGroups),
  81. MIB_INTEGER_RW(igmpInterfaceRobustness),
  82. MIB_INTEGER_RW(igmpInterfaceLastMembQueryInterval),
  83. MIB_INTEGER_RW(igmpInterfaceProxyIfIndex),
  84. MIB_INTEGER(igmpInterfaceQuerierUpTime),
  85. MIB_INTEGER(igmpInterfaceQuerierExpiryTime),
  86. MIB_TABLE_ROOT(igmpCacheTable),
  87. MIB_TABLE_ENTRY(igmpCacheEntry),
  88. MIB_IPADDRESS_NA(igmpCacheAddress),
  89. MIB_INTEGER_NA(igmpCacheIfIndex),
  90. MIB_INTEGER_RW(igmpCacheSelf),
  91. MIB_IPADDRESS(igmpCacheLastReporter),
  92. MIB_TIMETICKS(igmpCacheUpTime),
  93. MIB_TIMETICKS(igmpCacheExpiryTime),
  94. MIB_INTEGER_RW(igmpCacheStatus),
  95. MIB_INTEGER(igmpCacheVersion1HostTimer),
  96. MIB_END()
  97. };
  98. ///////////////////////////////////////////////////////////////////////////////
  99. // //
  100. // Mib entry list //
  101. // //
  102. ///////////////////////////////////////////////////////////////////////////////
  103. SnmpMibTable tbl_igmp[] = {
  104. MIB_TABLE(igmp,igmpInterfaceEntry,NULL),
  105. MIB_TABLE(igmp,igmpCacheEntry,NULL)
  106. };
  107. ///////////////////////////////////////////////////////////////////////////////
  108. // //
  109. // Mib view //
  110. // //
  111. ///////////////////////////////////////////////////////////////////////////////
  112. SnmpMibView v_igmp = MIB_VIEW(igmp);