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.

141 lines
6.1 KiB

  1. /*++
  2. Copyright (c) 1998 Microsoft Corporation
  3. Module Name:
  4. mibentry.h
  5. Abstract:
  6. IP Multicast MIB structures.
  7. Revision History:
  8. Dave Thaler 4/17/98 Created
  9. --*/
  10. #ifndef _MIBENTRY_H_
  11. #define _MIBENTRY_H_
  12. ///////////////////////////////////////////////////////////////////////////////
  13. // //
  14. // Mib entry indices //
  15. // //
  16. ///////////////////////////////////////////////////////////////////////////////
  17. #define mi_ipMRouteEnable 0
  18. #define mi_ipMRouteTable mi_ipMRouteEnable+1
  19. #define mi_ipMRouteEntry mi_ipMRouteTable+1
  20. #define mi_ipMRouteGroup mi_ipMRouteEntry+1
  21. #define mi_ipMRouteSource mi_ipMRouteGroup+1
  22. #define mi_ipMRouteSourceMask mi_ipMRouteSource+1
  23. #define mi_ipMRouteUpstreamNeighbor mi_ipMRouteSourceMask+1
  24. #define mi_ipMRouteInIfIndex mi_ipMRouteUpstreamNeighbor+1
  25. #define mi_ipMRouteUpTime mi_ipMRouteInIfIndex+1
  26. #define mi_ipMRouteExpiryTime mi_ipMRouteUpTime+1
  27. #define mi_ipMRoutePkts mi_ipMRouteExpiryTime+1
  28. #define mi_ipMRouteDifferentInIfPackets mi_ipMRoutePkts+1
  29. #define mi_ipMRouteOctets mi_ipMRouteDifferentInIfPackets+1
  30. #define mi_ipMRouteProtocol mi_ipMRouteOctets+1
  31. #define mi_ipMRouteRtProto mi_ipMRouteProtocol+1
  32. #define mi_ipMRouteRtAddress mi_ipMRouteRtProto+1
  33. #define mi_ipMRouteRtMask mi_ipMRouteRtAddress+1
  34. #define mi_ipMRouteNextHopTable mi_ipMRouteRtMask+1
  35. #define mi_ipMRouteNextHopEntry mi_ipMRouteNextHopTable+1
  36. #define mi_ipMRouteNextHopGroup mi_ipMRouteNextHopEntry+1
  37. #define mi_ipMRouteNextHopSource mi_ipMRouteNextHopGroup+1
  38. #define mi_ipMRouteNextHopSourceMask mi_ipMRouteNextHopSource+1
  39. #define mi_ipMRouteNextHopIfIndex mi_ipMRouteNextHopSourceMask+1
  40. #define mi_ipMRouteNextHopAddress mi_ipMRouteNextHopIfIndex+1
  41. #define mi_ipMRouteNextHopState mi_ipMRouteNextHopAddress+1
  42. #define mi_ipMRouteNextHopUpTime mi_ipMRouteNextHopState+1
  43. #define mi_ipMRouteNextHopExpiryTime mi_ipMRouteNextHopUpTime+1
  44. #ifdef CLOSEST_MEMBER_HOPS
  45. #define mi_ipMRouteNextHopClosestMemberHops mi_ipMRouteNextHopExpiryTime+1
  46. #define mi_ipMRouteNextHopProtocol mi_ipMRouteNextHopClosestMemberHops+1
  47. #else
  48. #define mi_ipMRouteNextHopProtocol mi_ipMRouteNextHopExpiryTime+1
  49. #endif
  50. #define mi_ipMRouteNextHopPkts mi_ipMRouteNextHopProtocol+1
  51. #define mi_ipMRouteInterfaceTable mi_ipMRouteNextHopPkts+1
  52. //#define mi_ipMRouteInterfaceTable mi_ipMRouteProtocol+1
  53. #define mi_ipMRouteInterfaceEntry mi_ipMRouteInterfaceTable+1
  54. #define mi_ipMRouteInterfaceIfIndex mi_ipMRouteInterfaceEntry+1
  55. #define mi_ipMRouteInterfaceTtl mi_ipMRouteInterfaceIfIndex+1
  56. #define mi_ipMRouteInterfaceProtocol mi_ipMRouteInterfaceTtl+1
  57. #define mi_ipMRouteInterfaceRateLimit mi_ipMRouteInterfaceProtocol+1
  58. #define mi_ipMRouteInterfaceInMcastOctets mi_ipMRouteInterfaceRateLimit+1
  59. #define mi_ipMRouteInterfaceOutMcastOctets mi_ipMRouteInterfaceInMcastOctets+1
  60. #define mi_ipMRouteBoundaryTable mi_ipMRouteInterfaceOutMcastOctets+1
  61. #define mi_ipMRouteBoundaryEntry mi_ipMRouteBoundaryTable+1
  62. #define mi_ipMRouteBoundaryIfIndex mi_ipMRouteBoundaryEntry+1
  63. #define mi_ipMRouteBoundaryAddress mi_ipMRouteBoundaryIfIndex+1
  64. #define mi_ipMRouteBoundaryAddressMask mi_ipMRouteBoundaryAddress+1
  65. #define mi_ipMRouteBoundaryStatus mi_ipMRouteBoundaryAddressMask+1
  66. #define mi_ipMRouteScopeTable mi_ipMRouteBoundaryStatus+1
  67. #define mi_ipMRouteScopeEntry mi_ipMRouteScopeTable+1
  68. #define mi_ipMRouteScopeAddress mi_ipMRouteScopeEntry+1
  69. #define mi_ipMRouteScopeAddressMask mi_ipMRouteScopeAddress+1
  70. #define mi_ipMRouteScopeName mi_ipMRouteScopeAddressMask+1
  71. #define mi_ipMRouteScopeStatus mi_ipMRouteScopeName+1
  72. //
  73. // Now we have to set up defines to tell the Master agent the number of
  74. // cols in each table and the number of cols that are indices for these table.
  75. // The Agent expects the indices to be contiguous and in the beginning
  76. //
  77. //
  78. // ipMRouteTable
  79. //
  80. #define ne_ipMRouteEntry 14
  81. #define ni_ipMRouteEntry 3
  82. //
  83. // ipMRouteNextHopTable
  84. //
  85. #ifdef CLOSEST_MEMBER_HOPS
  86. #define ne_ipMRouteNextHopEntry 11
  87. #else
  88. #define ne_ipMRouteNextHopEntry 10
  89. #endif
  90. #define ni_ipMRouteNextHopEntry 5
  91. //
  92. // ipMRouteInterfaceTable
  93. //
  94. #define ne_ipMRouteInterfaceEntry 6
  95. #define ni_ipMRouteInterfaceEntry 1
  96. //
  97. // ipMRouteBoundaryTable
  98. //
  99. #define ne_ipMRouteBoundaryEntry 4
  100. #define ni_ipMRouteBoundaryEntry 3
  101. //
  102. // ipMRouteScopeTable
  103. //
  104. #define ne_ipMRouteScopeEntry 4
  105. #define ni_ipMRouteScopeEntry 2
  106. ///////////////////////////////////////////////////////////////////////////////
  107. // //
  108. // Declaration of supported view //
  109. // //
  110. ///////////////////////////////////////////////////////////////////////////////
  111. extern SnmpMibView v_multicast;
  112. #endif // _MIBENTRY_H_