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.

459 lines
19 KiB

  1. /*++
  2. Copyright (c) 1996 Microsoft Corporation
  3. Module Name:
  4. mipxf.h
  5. Abstract:
  6. Header for ms-ipx instrumentation callbacks and associated data structures
  7. Author:
  8. Vadim Eydelman (vadime) 30-May-1996
  9. Revision History:
  10. --*/
  11. #ifndef _SNMP_MIPXF_
  12. #define _SNMP_MIPXF_
  13. ///////////////////////////////////////////////////////////////////////////////
  14. // //
  15. // mipxBase group (1.3.6.1.4.1.311.1.8.1) //
  16. // //
  17. ///////////////////////////////////////////////////////////////////////////////
  18. UINT
  19. get_mipxBase(
  20. UINT actionId,
  21. AsnAny * objectArray,
  22. UINT * errorIndex
  23. );
  24. typedef struct _buf_mipxBase {
  25. AsnAny mipxBaseOperState;
  26. AsnAny mipxBasePrimaryNetNumber;
  27. AsnAny mipxBaseNode;
  28. AsnAny mipxBaseSysName;
  29. AsnAny mipxBaseMaxPathSplits;
  30. AsnAny mipxBaseIfCount;
  31. AsnAny mipxBaseDestCount;
  32. AsnAny mipxBaseServCount;
  33. BYTE PrimaryNetVal[4];
  34. BYTE NodeVal[6];
  35. BYTE SysNameVal[48];
  36. } buf_mipxBase;
  37. #define gf_mipxBaseOperState get_mipxBase
  38. #define gf_mipxBasePrimaryNetNumber get_mipxBase
  39. #define gf_mipxBaseNode get_mipxBase
  40. #define gf_mipxBaseSysName get_mipxBase
  41. #define gf_mipxBaseMaxPathSplits get_mipxBase
  42. #define gf_mipxBaseIfCount get_mipxBase
  43. #define gf_mipxBaseDestCount get_mipxBase
  44. #define gf_mipxBaseServCount get_mipxBase
  45. #define gb_mipxBaseOperState buf_mipxBase
  46. #define gb_mipxBasePrimaryNetNumber buf_mipxBase
  47. #define gb_mipxBaseNode buf_mipxBase
  48. #define gb_mipxBaseSysName buf_mipxBase
  49. #define gb_mipxBaseMaxPathSplits buf_mipxBase
  50. #define gb_mipxBaseIfCount buf_mipxBase
  51. #define gb_mipxBaseDestCount buf_mipxBase
  52. #define gb_mipxBaseServCount buf_mipxBase
  53. ///////////////////////////////////////////////////////////////////////////////
  54. // //
  55. // mipxInterface group (1.3.6.1.4.1.311.1.8.2) //
  56. // //
  57. ///////////////////////////////////////////////////////////////////////////////
  58. ///////////////////////////////////////////////////////////////////////////////
  59. // //
  60. // mipxIfEntry table (1.3.6.1.4.1.311.1.8.2.1.1) //
  61. // //
  62. ///////////////////////////////////////////////////////////////////////////////
  63. UINT
  64. get_mipxIfEntry(
  65. UINT actionId,
  66. AsnAny * objectArray,
  67. UINT * errorIndex
  68. );
  69. typedef struct _buf_mipxIfEntry {
  70. AsnAny mipxIfIndex;
  71. AsnAny mipxIfAdminState;
  72. AsnAny mipxIfOperState;
  73. AsnAny mipxIfAdapterIndex;
  74. AsnAny mipxIfName;
  75. AsnAny mipxIfType;
  76. AsnAny mipxIfLocalMaxPacketSize;
  77. AsnAny mipxIfMediaType;
  78. AsnAny mipxIfNetNumber;
  79. AsnAny mipxIfMacAddress;
  80. AsnAny mipxIfDelay;
  81. AsnAny mipxIfThroughput;
  82. AsnAny mipxIfIpxWanEnable;
  83. AsnAny mipxIfNetbiosAccept;
  84. AsnAny mipxIfNetbiosDeliver;
  85. AsnAny mipxIfInHdrErrors;
  86. AsnAny mipxIfInFilterDrops;
  87. AsnAny mipxIfInNoRoutes;
  88. AsnAny mipxIfInDiscards;
  89. AsnAny mipxIfInDelivers;
  90. AsnAny mipxIfOutFilterDrops;
  91. AsnAny mipxIfOutDiscards;
  92. AsnAny mipxIfOutDelivers;
  93. AsnAny mipxIfInNetbiosPackets;
  94. AsnAny mipxIfOutNetbiosPackets;
  95. BYTE NameVal[48];
  96. BYTE NetNumberVal[4];
  97. BYTE MacAddressVal[6];
  98. } buf_mipxIfEntry;
  99. #define gf_mipxIfIndex get_mipxIfEntry
  100. #define gf_mipxIfAdminState get_mipxIfEntry
  101. #define gf_mipxIfOperState get_mipxIfEntry
  102. #define gf_mipxIfAdapterIndex get_mipxIfEntry
  103. #define gf_mipxIfName get_mipxIfEntry
  104. #define gf_mipxIfType get_mipxIfEntry
  105. #define gf_mipxIfLocalMaxPacketSize get_mipxIfEntry
  106. #define gf_mipxIfMediaType get_mipxIfEntry
  107. #define gf_mipxIfNetNumber get_mipxIfEntry
  108. #define gf_mipxIfMacAddress get_mipxIfEntry
  109. #define gf_mipxIfDelay get_mipxIfEntry
  110. #define gf_mipxIfThroughput get_mipxIfEntry
  111. #define gf_mipxIfIpxWanEnable get_mipxIfEntry
  112. #define gf_mipxIfNetbiosAccept get_mipxIfEntry
  113. #define gf_mipxIfNetbiosDeliver get_mipxIfEntry
  114. #define gf_mipxIfInHdrErrors get_mipxIfEntry
  115. #define gf_mipxIfInFilterDrops get_mipxIfEntry
  116. #define gf_mipxIfInNoRoutes get_mipxIfEntry
  117. #define gf_mipxIfInDiscards get_mipxIfEntry
  118. #define gf_mipxIfInDelivers get_mipxIfEntry
  119. #define gf_mipxIfOutFilterDrops get_mipxIfEntry
  120. #define gf_mipxIfOutDiscards get_mipxIfEntry
  121. #define gf_mipxIfOutDelivers get_mipxIfEntry
  122. #define gf_mipxIfInNetbiosPackets get_mipxIfEntry
  123. #define gf_mipxIfOutNetbiosPackets get_mipxIfEntry
  124. #define gb_mipxIfIndex buf_mipxIfEntry
  125. #define gb_mipxIfAdminState buf_mipxIfEntry
  126. #define gb_mipxIfOperState buf_mipxIfEntry
  127. #define gb_mipxIfAdapterIndex buf_mipxIfEntry
  128. #define gb_mipxIfName buf_mipxIfEntry
  129. #define gb_mipxIfType buf_mipxIfEntry
  130. #define gb_mipxIfLocalMaxPacketSize buf_mipxIfEntry
  131. #define gb_mipxIfMediaType buf_mipxIfEntry
  132. #define gb_mipxIfNetNumber buf_mipxIfEntry
  133. #define gb_mipxIfMacAddress buf_mipxIfEntry
  134. #define gb_mipxIfDelay buf_mipxIfEntry
  135. #define gb_mipxIfThroughput buf_mipxIfEntry
  136. #define gb_mipxIfIpxWanEnable buf_mipxIfEntry
  137. #define gb_mipxIfNetbiosAccept buf_mipxIfEntry
  138. #define gb_mipxIfNetbiosDeliver buf_mipxIfEntry
  139. #define gb_mipxIfInHdrErrors buf_mipxIfEntry
  140. #define gb_mipxIfInFilterDrops buf_mipxIfEntry
  141. #define gb_mipxIfInNoRoutes buf_mipxIfEntry
  142. #define gb_mipxIfInDiscards buf_mipxIfEntry
  143. #define gb_mipxIfInDelivers buf_mipxIfEntry
  144. #define gb_mipxIfOutFilterDrops buf_mipxIfEntry
  145. #define gb_mipxIfOutDiscards buf_mipxIfEntry
  146. #define gb_mipxIfOutDelivers buf_mipxIfEntry
  147. #define gb_mipxIfInNetbiosPackets buf_mipxIfEntry
  148. #define gb_mipxIfOutNetbiosPackets buf_mipxIfEntry
  149. UINT
  150. set_mipxIfEntry(
  151. UINT actionId,
  152. AsnAny * objectArray,
  153. UINT * errorIndex
  154. );
  155. typedef struct _sav_mipxIfEntry {
  156. AsnAny mipxIfIndex;
  157. AsnAny mipxIfAdminState;
  158. AsnAny mipxIfNetNumber;
  159. AsnAny mipxIfMacAddress;
  160. AsnAny mipxIfIpxWanEnable;
  161. AsnAny mipxIfNetbiosAccept;
  162. AsnAny mipxIfNetbiosDeliver;
  163. IPX_MIB_SET_INPUT_DATA MibSetInputData;
  164. } sav_mipxIfEntry;
  165. #define sf_mipxIfIndex set_mipxIfEntry
  166. #define sf_mipxIfAdminState set_mipxIfEntry
  167. #define sf_mipxIfNetNumber set_mipxIfEntry
  168. #define sf_mipxIfMacAddress set_mipxIfEntry
  169. #define sf_mipxIfIpxWanEnable set_mipxIfEntry
  170. #define sf_mipxIfNetbiosAccept set_mipxIfEntry
  171. #define sf_mipxIfNetbiosDeliver set_mipxIfEntry
  172. #define sb_mipxIfIndex sav_mipxIfEntry
  173. #define sb_mipxIfAdminState sav_mipxIfEntry
  174. #define sb_mipxIfNetNumber sav_mipxIfEntry
  175. #define sb_mipxIfMacAddress sav_mipxIfEntry
  176. #define sb_mipxIfIpxWanEnable sav_mipxIfEntry
  177. #define sb_mipxIfNetbiosAccept sav_mipxIfEntry
  178. #define sb_mipxIfNetbiosDeliver sav_mipxIfEntry
  179. ///////////////////////////////////////////////////////////////////////////////
  180. // //
  181. // mipxForwarding group (1.3.6.1.4.1.311.1.8.3) //
  182. // //
  183. ///////////////////////////////////////////////////////////////////////////////
  184. ///////////////////////////////////////////////////////////////////////////////
  185. // //
  186. // mipxDestEntry table (1.3.6.1.4.1.311.1.8.3.1.1) //
  187. // //
  188. ///////////////////////////////////////////////////////////////////////////////
  189. UINT
  190. get_mipxDestEntry(
  191. UINT actionId,
  192. AsnAny * objectArray,
  193. UINT * errorIndex
  194. );
  195. typedef struct _buf_mipxDestEntry {
  196. AsnAny mipxDestNetNum;
  197. AsnAny mipxDestProtocol;
  198. AsnAny mipxDestTicks;
  199. AsnAny mipxDestHopCount;
  200. AsnAny mipxDestNextHopIfIndex;
  201. AsnAny mipxDestNextHopMacAddress;
  202. AsnAny mipxDestFlags;
  203. BYTE NetNumVal[4];
  204. BYTE NextHopMacAddressVal[6];
  205. } buf_mipxDestEntry;
  206. #define gf_mipxDestNetNum get_mipxDestEntry
  207. #define gf_mipxDestProtocol get_mipxDestEntry
  208. #define gf_mipxDestTicks get_mipxDestEntry
  209. #define gf_mipxDestHopCount get_mipxDestEntry
  210. #define gf_mipxDestNextHopIfIndex get_mipxDestEntry
  211. #define gf_mipxDestNextHopMacAddress get_mipxDestEntry
  212. #define gf_mipxDestFlags get_mipxDestEntry
  213. #define gb_mipxDestNetNum buf_mipxDestEntry
  214. #define gb_mipxDestProtocol buf_mipxDestEntry
  215. #define gb_mipxDestTicks buf_mipxDestEntry
  216. #define gb_mipxDestHopCount buf_mipxDestEntry
  217. #define gb_mipxDestNextHopIfIndex buf_mipxDestEntry
  218. #define gb_mipxDestNextHopMacAddress buf_mipxDestEntry
  219. #define gb_mipxDestFlags buf_mipxDestEntry
  220. ///////////////////////////////////////////////////////////////////////////////
  221. // //
  222. // mipxStaticRouteEntry table (1.3.6.1.4.1.311.1.8.3.2.1) //
  223. // //
  224. ///////////////////////////////////////////////////////////////////////////////
  225. UINT
  226. get_mipxStaticRouteEntry(
  227. UINT actionId,
  228. AsnAny * objectArray,
  229. UINT * errorIndex
  230. );
  231. typedef struct _buf_mipxStaticRouteEntry {
  232. AsnAny mipxStaticRouteIfIndex;
  233. AsnAny mipxStaticRouteNetNum;
  234. AsnAny mipxStaticRouteEntryStatus;
  235. AsnAny mipxStaticRouteTicks;
  236. AsnAny mipxStaticRouteHopCount;
  237. AsnAny mipxStaticRouteNextHopMacAddress;
  238. BYTE NetNumVal[4];
  239. BYTE NextHopMacAddressVal[6];
  240. } buf_mipxStaticRouteEntry;
  241. #define gf_mipxStaticRouteIfIndex get_mipxStaticRouteEntry
  242. #define gf_mipxStaticRouteNetNum get_mipxStaticRouteEntry
  243. #define gf_mipxStaticRouteEntryStatus get_mipxStaticRouteEntry
  244. #define gf_mipxStaticRouteTicks get_mipxStaticRouteEntry
  245. #define gf_mipxStaticRouteHopCount get_mipxStaticRouteEntry
  246. #define gf_mipxStaticRouteNextHopMacAddress get_mipxStaticRouteEntry
  247. #define gb_mipxStaticRouteIfIndex buf_mipxStaticRouteEntry
  248. #define gb_mipxStaticRouteNetNum buf_mipxStaticRouteEntry
  249. #define gb_mipxStaticRouteEntryStatus buf_mipxStaticRouteEntry
  250. #define gb_mipxStaticRouteTicks buf_mipxStaticRouteEntry
  251. #define gb_mipxStaticRouteHopCount buf_mipxStaticRouteEntry
  252. #define gb_mipxStaticRouteNextHopMacAddress buf_mipxStaticRouteEntry
  253. UINT
  254. set_mipxStaticRouteEntry(
  255. UINT actionId,
  256. AsnAny * objectArray,
  257. UINT * errorIndex
  258. );
  259. typedef struct _sav_mipxStaticRouteEntry {
  260. AsnAny mipxStaticRouteIfIndex;
  261. AsnAny mipxStaticRouteNetNum;
  262. AsnAny mipxStaticRouteEntryStatus;
  263. AsnAny mipxStaticRouteTicks;
  264. AsnAny mipxStaticRouteHopCount;
  265. AsnAny mipxStaticRouteNextHopMacAddress;
  266. IPX_MIB_SET_INPUT_DATA MibSetInputData;
  267. BOOLEAN ActionFlag;
  268. } sav_mipxStaticRouteEntry;
  269. #define sf_mipxStaticRouteIfIndex set_mipxStaticRouteEntry
  270. #define sf_mipxStaticRouteNetNum set_mipxStaticRouteEntry
  271. #define sf_mipxStaticRouteEntryStatus set_mipxStaticRouteEntry
  272. #define sf_mipxStaticRouteTicks set_mipxStaticRouteEntry
  273. #define sf_mipxStaticRouteHopCount set_mipxStaticRouteEntry
  274. #define sf_mipxStaticRouteNextHopMacAddress set_mipxStaticRouteEntry
  275. #define sb_mipxStaticRouteIfIndex sav_mipxStaticRouteEntry
  276. #define sb_mipxStaticRouteNetNum sav_mipxStaticRouteEntry
  277. #define sb_mipxStaticRouteEntryStatus sav_mipxStaticRouteEntry
  278. #define sb_mipxStaticRouteTicks sav_mipxStaticRouteEntry
  279. #define sb_mipxStaticRouteHopCount sav_mipxStaticRouteEntry
  280. #define sb_mipxStaticRouteNextHopMacAddress sav_mipxStaticRouteEntry
  281. ///////////////////////////////////////////////////////////////////////////////
  282. // //
  283. // mipxServices group (1.3.6.1.4.1.311.1.8.4) //
  284. // //
  285. ///////////////////////////////////////////////////////////////////////////////
  286. ///////////////////////////////////////////////////////////////////////////////
  287. // //
  288. // mipxServEntry table (1.3.6.1.4.1.311.1.8.4.1.1) //
  289. // //
  290. ///////////////////////////////////////////////////////////////////////////////
  291. UINT
  292. get_mipxServEntry(
  293. UINT actionId,
  294. AsnAny * objectArray,
  295. UINT * errorIndex
  296. );
  297. typedef struct _buf_mipxServEntry {
  298. AsnAny mipxServType;
  299. AsnAny mipxServName;
  300. AsnAny mipxServProtocol;
  301. AsnAny mipxServNetNum;
  302. AsnAny mipxServNode;
  303. AsnAny mipxServSocket;
  304. AsnAny mipxServHopCount;
  305. BYTE TypeVal[2];
  306. BYTE NameVal[48];
  307. BYTE NetNumVal[4];
  308. BYTE NodeVal[6];
  309. BYTE SocketVal[2];
  310. } buf_mipxServEntry;
  311. #define gf_mipxServType get_mipxServEntry
  312. #define gf_mipxServName get_mipxServEntry
  313. #define gf_mipxServProtocol get_mipxServEntry
  314. #define gf_mipxServNetNum get_mipxServEntry
  315. #define gf_mipxServNode get_mipxServEntry
  316. #define gf_mipxServSocket get_mipxServEntry
  317. #define gf_mipxServHopCount get_mipxServEntry
  318. #define gb_mipxServType buf_mipxServEntry
  319. #define gb_mipxServName buf_mipxServEntry
  320. #define gb_mipxServProtocol buf_mipxServEntry
  321. #define gb_mipxServNetNum buf_mipxServEntry
  322. #define gb_mipxServNode buf_mipxServEntry
  323. #define gb_mipxServSocket buf_mipxServEntry
  324. #define gb_mipxServHopCount buf_mipxServEntry
  325. ///////////////////////////////////////////////////////////////////////////////
  326. // //
  327. // mipxStaticServEntry table (1.3.6.1.4.1.311.1.8.4.2.1) //
  328. // //
  329. ///////////////////////////////////////////////////////////////////////////////
  330. UINT
  331. get_mipxStaticServEntry(
  332. UINT actionId,
  333. AsnAny * objectArray,
  334. UINT * errorIndex
  335. );
  336. typedef struct _buf_mipxStaticServEntry {
  337. AsnAny mipxStaticServIfIndex;
  338. AsnAny mipxStaticServType;
  339. AsnAny mipxStaticServName;
  340. AsnAny mipxStaticServEntryStatus;
  341. AsnAny mipxStaticServNetNum;
  342. AsnAny mipxStaticServNode;
  343. AsnAny mipxStaticServSocket;
  344. AsnAny mipxStaticServHopCount;
  345. BYTE TypeVal[2];
  346. BYTE NameVal[48];
  347. BYTE NetNumVal[4];
  348. BYTE NodeVal[6];
  349. BYTE SocketVal[2];
  350. } buf_mipxStaticServEntry;
  351. #define gf_mipxStaticServIfIndex get_mipxStaticServEntry
  352. #define gf_mipxStaticServType get_mipxStaticServEntry
  353. #define gf_mipxStaticServName get_mipxStaticServEntry
  354. #define gf_mipxStaticServEntryStatus get_mipxStaticServEntry
  355. #define gf_mipxStaticServNetNum get_mipxStaticServEntry
  356. #define gf_mipxStaticServNode get_mipxStaticServEntry
  357. #define gf_mipxStaticServSocket get_mipxStaticServEntry
  358. #define gf_mipxStaticServHopCount get_mipxStaticServEntry
  359. #define gb_mipxStaticServIfIndex buf_mipxStaticServEntry
  360. #define gb_mipxStaticServType buf_mipxStaticServEntry
  361. #define gb_mipxStaticServName buf_mipxStaticServEntry
  362. #define gb_mipxStaticServEntryStatus buf_mipxStaticServEntry
  363. #define gb_mipxStaticServNetNum buf_mipxStaticServEntry
  364. #define gb_mipxStaticServNode buf_mipxStaticServEntry
  365. #define gb_mipxStaticServSocket buf_mipxStaticServEntry
  366. #define gb_mipxStaticServHopCount buf_mipxStaticServEntry
  367. UINT
  368. set_mipxStaticServEntry(
  369. UINT actionId,
  370. AsnAny * objectArray,
  371. UINT * errorIndex
  372. );
  373. typedef struct _sav_mipxStaticServEntry {
  374. AsnAny mipxStaticServIfIndex;
  375. AsnAny mipxStaticServType;
  376. AsnAny mipxStaticServName;
  377. AsnAny mipxStaticServEntryStatus;
  378. AsnAny mipxStaticServNetNum;
  379. AsnAny mipxStaticServNode;
  380. AsnAny mipxStaticServSocket;
  381. AsnAny mipxStaticServHopCount;
  382. IPX_MIB_SET_INPUT_DATA MibSetInputData;
  383. BOOLEAN ActionFlag;
  384. } sav_mipxStaticServEntry;
  385. #define sf_mipxStaticServIfIndex set_mipxStaticServEntry
  386. #define sf_mipxStaticServType set_mipxStaticServEntry
  387. #define sf_mipxStaticServName set_mipxStaticServEntry
  388. #define sf_mipxStaticServEntryStatus set_mipxStaticServEntry
  389. #define sf_mipxStaticServNetNum set_mipxStaticServEntry
  390. #define sf_mipxStaticServNode set_mipxStaticServEntry
  391. #define sf_mipxStaticServSocket set_mipxStaticServEntry
  392. #define sf_mipxStaticServHopCount set_mipxStaticServEntry
  393. #define sb_mipxStaticServIfIndex sav_mipxStaticServEntry
  394. #define sb_mipxStaticServType sav_mipxStaticServEntry
  395. #define sb_mipxStaticServName sav_mipxStaticServEntry
  396. #define sb_mipxStaticServEntryStatus sav_mipxStaticServEntry
  397. #define sb_mipxStaticServNetNum sav_mipxStaticServEntry
  398. #define sb_mipxStaticServNode sav_mipxStaticServEntry
  399. #define sb_mipxStaticServSocket sav_mipxStaticServEntry
  400. #define sb_mipxStaticServHopCount sav_mipxStaticServEntry
  401. #endif