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.

164 lines
7.8 KiB

  1. /*++
  2. Copyright (c) 1998 Microsoft Corporation
  3. Module Name:
  4. routing\ip\mcastmib\mibentry.c
  5. Abstract:
  6. IP Multicast MIB structures
  7. Revision history:
  8. Dave Thaler 4/17/98 Created
  9. --*/
  10. #include "precomp.h"
  11. static UINT ids_multicast[] = {1,3,6,1,3,60,1,1};
  12. static UINT ids_ipMRouteEnable[] = {1,0};
  13. static UINT ids_ipMRouteTable[] = {2};
  14. static UINT ids_ipMRouteEntry[] = {2,1};
  15. static UINT ids_ipMRouteGroup[] = {2,1,1};
  16. static UINT ids_ipMRouteSource[] = {2,1,2};
  17. static UINT ids_ipMRouteSourceMask[] = {2,1,3};
  18. static UINT ids_ipMRouteUpstreamNeighbor[] = {2,1,4};
  19. static UINT ids_ipMRouteInIfIndex[] = {2,1,5};
  20. static UINT ids_ipMRouteUpTime[] = {2,1,6};
  21. static UINT ids_ipMRouteExpiryTime[] = {2,1,7};
  22. static UINT ids_ipMRoutePkts[] = {2,1,8};
  23. static UINT ids_ipMRouteDifferentInIfPackets[] = {2,1,9};
  24. static UINT ids_ipMRouteOctets[] = {2,1,10};
  25. static UINT ids_ipMRouteProtocol[] = {2,1,11};
  26. static UINT ids_ipMRouteRtProto[] = {2,1,12};
  27. static UINT ids_ipMRouteRtAddress[] = {2,1,13};
  28. static UINT ids_ipMRouteRtMask[] = {2,1,14};
  29. static UINT ids_ipMRouteNextHopTable[] = {3};
  30. static UINT ids_ipMRouteNextHopEntry[] = {3,1};
  31. static UINT ids_ipMRouteNextHopGroup[] = {3,1,1};
  32. static UINT ids_ipMRouteNextHopSource[] = {3,1,2};
  33. static UINT ids_ipMRouteNextHopSourceMask[] = {3,1,3};
  34. static UINT ids_ipMRouteNextHopIfIndex[] = {3,1,4};
  35. static UINT ids_ipMRouteNextHopAddress[] = {3,1,5};
  36. static UINT ids_ipMRouteNextHopState[] = {3,1,6};
  37. static UINT ids_ipMRouteNextHopUpTime[] = {3,1,7};
  38. static UINT ids_ipMRouteNextHopExpiryTime[] = {3,1,8};
  39. #ifdef CLOSEST_MEMBER_HOPS
  40. static UINT ids_ipMRouteNextHopClosestMemberHops[] = {3,1,9};
  41. #endif
  42. static UINT ids_ipMRouteNextHopProtocol[] = {3,1,10};
  43. static UINT ids_ipMRouteNextHopPkts[] = {3,1,11};
  44. static UINT ids_ipMRouteInterfaceTable[] = {4};
  45. static UINT ids_ipMRouteInterfaceEntry[] = {4,1};
  46. static UINT ids_ipMRouteInterfaceIfIndex[] = {4,1,1};
  47. static UINT ids_ipMRouteInterfaceTtl[] = {4,1,2};
  48. static UINT ids_ipMRouteInterfaceProtocol[] = {4,1,3};
  49. static UINT ids_ipMRouteInterfaceRateLimit[] = {4,1,4};
  50. static UINT ids_ipMRouteInterfaceInMcastOctets[] = {4,1,5};
  51. static UINT ids_ipMRouteInterfaceOutMcastOctets[] = {4,1,6};
  52. static UINT ids_ipMRouteBoundaryTable[] = {5};
  53. static UINT ids_ipMRouteBoundaryEntry[] = {5,1};
  54. static UINT ids_ipMRouteBoundaryIfIndex[] = {5,1,1};
  55. static UINT ids_ipMRouteBoundaryAddress[] = {5,1,2};
  56. static UINT ids_ipMRouteBoundaryAddressMask[] = {5,1,3};
  57. static UINT ids_ipMRouteBoundaryStatus[] = {5,1,4};
  58. static UINT ids_ipMRouteScopeTable[] = {6};
  59. static UINT ids_ipMRouteScopeEntry[] = {6,1};
  60. static UINT ids_ipMRouteScopeAddress[] = {6,1,1};
  61. static UINT ids_ipMRouteScopeAddressMask[] = {6,1,2};
  62. static UINT ids_ipMRouteScopeName[] = {6,1,3};
  63. static UINT ids_ipMRouteScopeStatus[] = {6,1,4};
  64. ///////////////////////////////////////////////////////////////////////////////
  65. // //
  66. // Mib entry list //
  67. // //
  68. ///////////////////////////////////////////////////////////////////////////////
  69. SnmpMibEntry mib_multicast[] = {
  70. MIB_INTEGER(ipMRouteEnable),
  71. MIB_TABLE_ROOT(ipMRouteTable),
  72. MIB_TABLE_ENTRY(ipMRouteEntry),
  73. MIB_IPADDRESS_NA(ipMRouteGroup),
  74. MIB_IPADDRESS_NA(ipMRouteSource),
  75. MIB_IPADDRESS_NA(ipMRouteSourceMask),
  76. MIB_IPADDRESS(ipMRouteUpstreamNeighbor),
  77. MIB_INTEGER(ipMRouteInIfIndex),
  78. MIB_TIMETICKS(ipMRouteUpTime),
  79. MIB_TIMETICKS(ipMRouteExpiryTime),
  80. MIB_COUNTER(ipMRoutePkts),
  81. MIB_COUNTER(ipMRouteDifferentInIfPackets),
  82. MIB_COUNTER(ipMRouteOctets),
  83. MIB_INTEGER(ipMRouteProtocol),
  84. MIB_INTEGER(ipMRouteRtProto),
  85. MIB_IPADDRESS(ipMRouteRtAddress),
  86. MIB_IPADDRESS(ipMRouteRtMask),
  87. MIB_TABLE_ROOT(ipMRouteNextHopTable),
  88. MIB_TABLE_ENTRY(ipMRouteNextHopEntry),
  89. MIB_IPADDRESS_NA(ipMRouteNextHopGroup),
  90. MIB_IPADDRESS_NA(ipMRouteNextHopSource),
  91. MIB_IPADDRESS_NA(ipMRouteNextHopSourceMask),
  92. MIB_INTEGER_NA(ipMRouteNextHopIfIndex),
  93. MIB_IPADDRESS_NA(ipMRouteNextHopAddress),
  94. MIB_INTEGER(ipMRouteNextHopState),
  95. MIB_TIMETICKS(ipMRouteNextHopUpTime),
  96. MIB_TIMETICKS(ipMRouteNextHopExpiryTime),
  97. #ifdef CLOSEST_MEMBER_HOPS
  98. MIB_INTEGER(ipMRouteNextHopClosestMemberHops),
  99. #endif
  100. MIB_INTEGER(ipMRouteNextHopProtocol),
  101. MIB_COUNTER(ipMRouteNextHopPkts),
  102. MIB_TABLE_ROOT(ipMRouteInterfaceTable),
  103. MIB_TABLE_ENTRY(ipMRouteInterfaceEntry),
  104. MIB_INTEGER_NA(ipMRouteInterfaceIfIndex),
  105. MIB_INTEGER(ipMRouteInterfaceTtl),
  106. MIB_INTEGER(ipMRouteInterfaceProtocol),
  107. MIB_INTEGER(ipMRouteInterfaceRateLimit),
  108. MIB_COUNTER(ipMRouteInterfaceInMcastOctets),
  109. MIB_COUNTER(ipMRouteInterfaceOutMcastOctets),
  110. MIB_TABLE_ROOT(ipMRouteBoundaryTable),
  111. MIB_TABLE_ENTRY(ipMRouteBoundaryEntry),
  112. MIB_INTEGER_AC(ipMRouteBoundaryIfIndex),
  113. MIB_IPADDRESS_AC(ipMRouteBoundaryAddress),
  114. MIB_IPADDRESS_AC(ipMRouteBoundaryAddressMask),
  115. MIB_INTEGER_RW(ipMRouteBoundaryStatus),
  116. MIB_TABLE_ROOT(ipMRouteScopeTable),
  117. MIB_TABLE_ENTRY(ipMRouteScopeEntry),
  118. MIB_IPADDRESS_AC(ipMRouteScopeAddress),
  119. MIB_IPADDRESS_AC(ipMRouteScopeAddressMask),
  120. MIB_DISPSTRING_RW_L(ipMRouteScopeName,0,255),
  121. MIB_INTEGER_RW(ipMRouteScopeStatus),
  122. MIB_END()
  123. };
  124. ///////////////////////////////////////////////////////////////////////////////
  125. // //
  126. // Mib entry list //
  127. // //
  128. ///////////////////////////////////////////////////////////////////////////////
  129. SnmpMibTable tbl_multicast[] = {
  130. MIB_TABLE(multicast,ipMRouteEntry, NULL),
  131. MIB_TABLE(multicast,ipMRouteNextHopEntry, NULL),
  132. MIB_TABLE(multicast,ipMRouteInterfaceEntry,NULL),
  133. MIB_TABLE(multicast,ipMRouteBoundaryEntry, NULL),
  134. MIB_TABLE(multicast,ipMRouteScopeEntry, NULL)
  135. };
  136. ///////////////////////////////////////////////////////////////////////////////
  137. // //
  138. // Mib view //
  139. // //
  140. ///////////////////////////////////////////////////////////////////////////////
  141. SnmpMibView v_multicast = MIB_VIEW(multicast);