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.

245 lines
5.0 KiB

  1. //=============================================================================
  2. // Copyright (c) 1997 Microsoft Corporation
  3. //
  4. // File: mib.h
  5. //
  6. // Abstract:
  7. // This module contains declarations related to mibs.
  8. //
  9. // Author: K.S.Lokesh (lokeshs@) 11-1-97
  10. //
  11. // Revision History:
  12. //=============================================================================
  13. #ifndef _MIB_H_
  14. #define _MIB_H_
  15. #define MIB_PROXY_GROUP_INFO IGMP_MIB_GROUP_INFO
  16. #define PMIB_PROXY_GROUP_INFO PIGMP_MIB_GROUP_INFO
  17. #define MIB_PROXY_GROUP_INFO_V3 MIB_GROUP_INFO_V3
  18. #define PMIB_PROXY_GROUP_INFO_V3 PMIB_GROUP_INFO_V3
  19. #define GETMODE_EXACT 0
  20. #define GETMODE_FIRST 1
  21. #define GETMODE_NEXT 2
  22. //
  23. // EXTERNAL PROTOTYPES
  24. //
  25. DWORD
  26. WT_MibDisplay (
  27. PVOID pContext
  28. );
  29. DWORD
  30. APIENTRY
  31. MibCreate(
  32. IN DWORD dwInputSize,
  33. IN PVOID pInputData
  34. );
  35. DWORD
  36. APIENTRY
  37. MibDelete(
  38. IN DWORD dwInputSize,
  39. IN PVOID pInputData
  40. );
  41. DWORD
  42. APIENTRY
  43. MibGet(
  44. IN DWORD dwInputSize,
  45. IN PVOID pInputData,
  46. IN OUT PDWORD pdwOutputSize,
  47. OUT PVOID pOutputData
  48. );
  49. DWORD
  50. APIENTRY
  51. MibSet(
  52. IN DWORD dwInputSize,
  53. IN PVOID pInputData
  54. );
  55. DWORD
  56. APIENTRY
  57. MibGetFirst(
  58. IN DWORD dwInputSize,
  59. IN PVOID pInputData,
  60. IN OUT PDWORD pdwOutputSize,
  61. OUT PVOID pOutputData
  62. );
  63. DWORD
  64. APIENTRY
  65. MibGetNext(
  66. IN DWORD dwInputSize,
  67. IN PVOID pInputData,
  68. IN OUT PDWORD pdwOutputSize,
  69. OUT PVOID pOutputData
  70. );
  71. //
  72. // Local prototype
  73. //
  74. DWORD
  75. MibGetInternal(
  76. PIGMP_MIB_GET_INPUT_DATA pQuery,
  77. PIGMP_MIB_GET_OUTPUT_DATA pResponse,
  78. PDWORD pdwOutputSize,
  79. DWORD dwGetMode
  80. );
  81. PIF_TABLE_ENTRY
  82. GetIfByListIndex(
  83. DWORD IfIndex,
  84. DWORD dwGetMode,
  85. PDWORD pdwErr
  86. );
  87. VOID
  88. WF_MibDisplay(
  89. PVOID pContext
  90. );
  91. VOID
  92. PrintGlobalStats(
  93. HANDLE hConsole,
  94. PCOORD pc,
  95. PIGMP_MIB_GET_INPUT_DATA pQuery,
  96. PIGMP_MIB_GET_OUTPUT_DATA pResponse
  97. );
  98. VOID
  99. PrintGlobalConfig(
  100. HANDLE hConsole,
  101. PCOORD pc,
  102. PIGMP_MIB_GET_INPUT_DATA pQuery,
  103. PIGMP_MIB_GET_OUTPUT_DATA pResponse
  104. );
  105. VOID
  106. PrintIfConfig(
  107. HANDLE hConsole,
  108. PCOORD pc,
  109. PIGMP_MIB_GET_INPUT_DATA pQuery,
  110. PIGMP_MIB_GET_OUTPUT_DATA pResponse
  111. );
  112. VOID
  113. PrintIfStats(
  114. HANDLE hConsole,
  115. PCOORD pc,
  116. PIGMP_MIB_GET_INPUT_DATA pQuery,
  117. PIGMP_MIB_GET_OUTPUT_DATA pResponse
  118. );
  119. VOID
  120. PrintIfBinding(
  121. HANDLE hConsole,
  122. PCOORD pc,
  123. PIGMP_MIB_GET_INPUT_DATA pQuery,
  124. PIGMP_MIB_GET_OUTPUT_DATA pResponse
  125. );
  126. VOID
  127. PrintIfGroupsList(
  128. HANDLE hConsole,
  129. PCOORD pc,
  130. PIGMP_MIB_GET_INPUT_DATA pQuery,
  131. PIGMP_MIB_GET_OUTPUT_DATA pResponse
  132. );
  133. VOID
  134. PrintGroupIfsList(
  135. HANDLE hConsole,
  136. PCOORD pc,
  137. PIGMP_MIB_GET_INPUT_DATA pQuery,
  138. PIGMP_MIB_GET_OUTPUT_DATA pResponse
  139. );
  140. VOID
  141. PrintProxyIfIndex(
  142. HANDLE hConsole,
  143. PCOORD pc,
  144. PIGMP_MIB_GET_INPUT_DATA pQuery,
  145. PIGMP_MIB_GET_OUTPUT_DATA pResponse
  146. );
  147. PGROUP_TABLE_ENTRY
  148. GetGroupByAddr (
  149. DWORD Group,
  150. DWORD dwGetMode,
  151. PDWORD pdwErr
  152. );
  153. DWORD
  154. GetIfOrRasForEnum(
  155. PIGMP_MIB_GET_INPUT_DATA pQuery,
  156. PIGMP_MIB_GET_OUTPUT_DATA pResponse,
  157. DWORD dwGetMode,
  158. PIF_TABLE_ENTRY *ppite,
  159. PRAS_TABLE *pprt,
  160. PRAS_TABLE_ENTRY *pprte,
  161. BOOL *bRasIfLock,
  162. DWORD Flags
  163. );
  164. DWORD
  165. MibGetInternalIfStats (
  166. PIGMP_MIB_GET_INPUT_DATA pQuery,
  167. PIGMP_MIB_GET_OUTPUT_DATA pResponse,
  168. PDWORD pdwOutputSize,
  169. DWORD dwGetMode,
  170. DWORD dwBufferSize
  171. );
  172. DWORD
  173. MibGetInternalIfConfig (
  174. PIGMP_MIB_GET_INPUT_DATA pQuery,
  175. PIGMP_MIB_GET_OUTPUT_DATA pResponse,
  176. PDWORD pdwOutputSize,
  177. DWORD dwGetMode,
  178. DWORD dwBufferSize
  179. );
  180. DWORD
  181. MibGetInternalIfBindings (
  182. PIGMP_MIB_GET_INPUT_DATA pQuery,
  183. PIGMP_MIB_GET_OUTPUT_DATA pResponse,
  184. PDWORD pdwOutputSize,
  185. DWORD dwGetMode,
  186. DWORD dwBufferSize
  187. );
  188. DWORD
  189. MibGetInternalIfGroupsInfo (
  190. PIGMP_MIB_GET_INPUT_DATA pQuery,
  191. PIGMP_MIB_GET_OUTPUT_DATA pResponse,
  192. PDWORD pdwOutputSize,
  193. DWORD dwGetMode,
  194. DWORD dwBufferSize
  195. );
  196. DWORD
  197. MibGetInternalGroupIfsInfo (
  198. PIGMP_MIB_GET_INPUT_DATA pQuery,
  199. PIGMP_MIB_GET_OUTPUT_DATA pResponse,
  200. PDWORD pdwOutputSize,
  201. DWORD dwGetMode,
  202. DWORD dwBufferSize
  203. );
  204. DWORD
  205. ListLength(
  206. PLIST_ENTRY pHead
  207. );
  208. #endif //_MIB_H_