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.

1367 lines
52 KiB

  1. /*++
  2. Copyright (c) 1996 Microsoft Corporation
  3. Module Name:
  4. Abstract:
  5. Author:
  6. Revision History:
  7. --*/
  8. #ifndef __MIBFUNCS_H__
  9. #define __MIBFUNCS_H__
  10. #define MAX_SYS_NAME_LEN 256
  11. #define MAX_SYS_DESCR_LEN 256
  12. #define MAX_SYS_CONTACT_LEN 256
  13. #define MAX_SYS_LOCATION_LEN 256
  14. typedef struct _MIB_SYSINFO
  15. {
  16. DWORD dwSysServices;
  17. BYTE rgbySysName[MAX_SYS_NAME_LEN];
  18. BYTE rgbySysDescr[MAX_SYS_DESCR_LEN];
  19. BYTE rgbySysContact[MAX_SYS_CONTACT_LEN];
  20. BYTE rgbySysLocation[MAX_SYS_LOCATION_LEN];
  21. AsnAny aaSysObjectID;
  22. } MIB_SYSINFO, *PMIB_SYSINFO;
  23. typedef struct _SYS_INFO_GET
  24. {
  25. AsnAny sysDescr;
  26. AsnAny sysObjectID;
  27. AsnAny sysUpTime;
  28. AsnAny sysContact;
  29. AsnAny sysName;
  30. AsnAny sysLocation;
  31. AsnAny sysServices;
  32. BYTE rgbySysNameInfo[MAX_SYS_NAME_LEN];
  33. BYTE rgbySysDescrInfo[MAX_SYS_DESCR_LEN];
  34. BYTE rgbySysContactInfo[MAX_SYS_CONTACT_LEN];
  35. BYTE rgbySysLocationInfo[MAX_SYS_LOCATION_LEN];
  36. } SYS_INFO_GET, *PSYS_INFO_GET;
  37. typedef struct _SYS_INFO_SET
  38. {
  39. AsnAny sysContact;
  40. AsnAny sysName;
  41. AsnAny sysLocation;
  42. BOOL bLocked;
  43. HKEY hkeyMib2;
  44. BYTE rgbySysNameInfo[MAX_SYS_NAME_LEN];
  45. BYTE rgbySysContactInfo[MAX_SYS_CONTACT_LEN];
  46. BYTE rgbySysLocationInfo[MAX_SYS_LOCATION_LEN];
  47. } SYS_INFO_SET, *PSYS_INFO_SET;
  48. UINT
  49. MibGetSysInfo(
  50. UINT actionId,
  51. AsnAny *objectArray,
  52. UINT *errorIndex
  53. );
  54. UINT
  55. MibSetSysInfo(
  56. UINT actionId,
  57. AsnAny *objectArray,
  58. UINT *errorIndex
  59. );
  60. #define gf_sysDescr MibGetSysInfo
  61. #define gf_sysObjectID MibGetSysInfo
  62. #define gf_sysUpTime MibGetSysInfo
  63. #define gf_sysContact MibGetSysInfo
  64. #define gf_sysName MibGetSysInfo
  65. #define gf_sysLocation MibGetSysInfo
  66. #define gf_sysServices MibGetSysInfo
  67. #define gb_sysDescr SYS_INFO_GET
  68. #define gb_sysObjectID SYS_INFO_GET
  69. #define gb_sysUpTime SYS_INFO_GET
  70. #define gb_sysContact SYS_INFO_GET
  71. #define gb_sysName SYS_INFO_GET
  72. #define gb_sysLocation SYS_INFO_GET
  73. #define gb_sysServices SYS_INFO_GET
  74. #define sf_sysContact MibSetSysInfo
  75. #define sf_sysName MibSetSysInfo
  76. #define sf_sysLocation MibSetSysInfo
  77. #define sb_sysContact SYS_INFO_SET
  78. #define sb_sysName SYS_INFO_SET
  79. #define sb_sysLocation SYS_INFO_SET
  80. #define MAX_PHYS_ADDR_LEN 8
  81. #define MAX_IF_DESCR_LEN 256
  82. #define NULL_OID_LEN 2
  83. typedef enum _ROW_ACTION
  84. {
  85. DELETE_ROW = 0,
  86. CREATE_ROW,
  87. SET_ROW,
  88. NOP
  89. }ROW_ACTION, *PROW_ACTION;
  90. typedef struct _IF_NUMBER_GET
  91. {
  92. AsnAny ifNumber;
  93. }IF_NUMBER_GET,*PIF_NUMBER_GET;
  94. UINT
  95. MibGetIfNumber(
  96. UINT actionId,
  97. AsnAny *objectArray,
  98. UINT *errorIndex
  99. );
  100. #define gf_ifNumber MibGetIfNumber
  101. #define gb_ifNumber IF_NUMBER_GET
  102. typedef struct _IF_ENTRY_GET
  103. {
  104. AsnAny ifIndex;
  105. AsnAny ifDescr;
  106. AsnAny ifType;
  107. AsnAny ifMtu;
  108. AsnAny ifSpeed;
  109. AsnAny ifPhysAddress;
  110. AsnAny ifAdminStatus;
  111. AsnAny ifOperStatus;
  112. AsnAny ifLastChange;
  113. AsnAny ifInOctets;
  114. AsnAny ifInUcastPkts;
  115. AsnAny ifInNUcastPkts;
  116. AsnAny ifInDiscards;
  117. AsnAny ifInErrors;
  118. AsnAny ifInUnknownProtos;
  119. AsnAny ifOutOctets;
  120. AsnAny ifOutUcastPkts;
  121. AsnAny ifOutNUcastPkts;
  122. AsnAny ifOutDiscards;
  123. AsnAny ifOutErrors;
  124. AsnAny ifOutQLen;
  125. AsnAny ifSpecific;
  126. BYTE rgbyIfPhysAddressInfo[MAX_PHYS_ADDR_LEN];
  127. BYTE rgbyIfDescrInfo[MAX_IF_DESCR_LEN];
  128. }IF_ENTRY_GET, *PIF_ENTRY_GET;
  129. UINT
  130. MibGetIfEntry(
  131. UINT actionId,
  132. AsnAny *objectArray,
  133. UINT *errorIndex
  134. );
  135. #define gf_ifEntry MibGetIfEntry
  136. #define gf_ifIndex MibGetIfEntry
  137. #define gf_ifDescr MibGetIfEntry
  138. #define gf_ifType MibGetIfEntry
  139. #define gf_ifMtu MibGetIfEntry
  140. #define gf_ifSpeed MibGetIfEntry
  141. #define gf_ifPhysAddress MibGetIfEntry
  142. #define gf_ifAdminStatus MibGetIfEntry
  143. #define gf_ifOperStatus MibGetIfEntry
  144. #define gf_ifLastChange MibGetIfEntry
  145. #define gf_ifInOctets MibGetIfEntry
  146. #define gf_ifInUcastPkts MibGetIfEntry
  147. #define gf_ifInNUcastPkts MibGetIfEntry
  148. #define gf_ifInDiscards MibGetIfEntry
  149. #define gf_ifInErrors MibGetIfEntry
  150. #define gf_ifInUnknownProtos MibGetIfEntry
  151. #define gf_ifOutOctets MibGetIfEntry
  152. #define gf_ifOutUcastPkts MibGetIfEntry
  153. #define gf_ifOutNUcastPkts MibGetIfEntry
  154. #define gf_ifOutDiscards MibGetIfEntry
  155. #define gf_ifOutErrors MibGetIfEntry
  156. #define gf_ifOutQLen MibGetIfEntry
  157. #define gf_ifSpecific MibGetIfEntry
  158. #define gb_ifEntry IF_ENTRY_GET
  159. #define gb_ifIndex IF_ENTRY_GET
  160. #define gb_ifDescr IF_ENTRY_GET
  161. #define gb_ifType IF_ENTRY_GET
  162. #define gb_ifMtu IF_ENTRY_GET
  163. #define gb_ifSpeed IF_ENTRY_GET
  164. #define gb_ifPhysAddress IF_ENTRY_GET
  165. #define gb_ifAdminStatus IF_ENTRY_GET
  166. #define gb_ifOperStatus IF_ENTRY_GET
  167. #define gb_ifLastChange IF_ENTRY_GET
  168. #define gb_ifInOctets IF_ENTRY_GET
  169. #define gb_ifInUcastPkts IF_ENTRY_GET
  170. #define gb_ifInNUcastPkts IF_ENTRY_GET
  171. #define gb_ifInDiscards IF_ENTRY_GET
  172. #define gb_ifInErrors IF_ENTRY_GET
  173. #define gb_ifInUnknownProtos IF_ENTRY_GET
  174. #define gb_ifOutOctets IF_ENTRY_GET
  175. #define gb_ifOutUcastPkts IF_ENTRY_GET
  176. #define gb_ifOutNUcastPkts IF_ENTRY_GET
  177. #define gb_ifOutDiscards IF_ENTRY_GET
  178. #define gb_ifOutErrors IF_ENTRY_GET
  179. #define gb_ifOutQLen IF_ENTRY_GET
  180. #define gb_ifSpecific IF_ENTRY_GET
  181. typedef struct _IF_ENTRY_SET
  182. {
  183. AsnAny ifIndex;
  184. AsnAny ifAdminStatus;
  185. BOOL bLocked;
  186. ROW_ACTION raAction;
  187. DWORD rgdwSetBuffer[MIB_INFO_SIZE_IN_DWORDS(MIB_IFROW)];
  188. }IF_ENTRY_SET, *PIF_ENTRY_SET;
  189. UINT
  190. MibSetIfEntry(
  191. UINT actionId,
  192. AsnAny *objectArray,
  193. UINT *errorIndex
  194. );
  195. #define sf_ifAdminStatus MibSetIfEntry
  196. #define sb_ifAdminStatus IF_ENTRY_SET
  197. typedef struct _IP_STATS_GET
  198. {
  199. AsnAny ipForwarding;
  200. AsnAny ipDefaultTTL;
  201. AsnAny ipInReceives;
  202. AsnAny ipInHdrErrors;
  203. AsnAny ipInAddrErrors;
  204. AsnAny ipForwDatagrams;
  205. AsnAny ipInUnknownProtos;
  206. AsnAny ipInDiscards;
  207. AsnAny ipInDelivers;
  208. AsnAny ipOutRequests;
  209. AsnAny ipOutDiscards;
  210. AsnAny ipOutNoRoutes;
  211. AsnAny ipReasmTimeout;
  212. AsnAny ipReasmReqds;
  213. AsnAny ipReasmOKs;
  214. AsnAny ipReasmFails;
  215. AsnAny ipFragOKs;
  216. AsnAny ipFragFails;
  217. AsnAny ipFragCreates;
  218. AsnAny ipRoutingDiscards;
  219. }IP_STATS_GET, *PIP_STATS_GET;
  220. UINT
  221. MibGetIpGroup(
  222. UINT actionId,
  223. AsnAny *objectArray,
  224. UINT *errorIndex
  225. );
  226. #define gf_ipForwarding MibGetIpGroup
  227. #define gf_ipDefaultTTL MibGetIpGroup
  228. #define gf_ipInReceives MibGetIpGroup
  229. #define gf_ipInHdrErrors MibGetIpGroup
  230. #define gf_ipInAddrErrors MibGetIpGroup
  231. #define gf_ipForwDatagrams MibGetIpGroup
  232. #define gf_ipInUnknownProtos MibGetIpGroup
  233. #define gf_ipInDiscards MibGetIpGroup
  234. #define gf_ipInDelivers MibGetIpGroup
  235. #define gf_ipOutRequests MibGetIpGroup
  236. #define gf_ipOutDiscards MibGetIpGroup
  237. #define gf_ipOutNoRoutes MibGetIpGroup
  238. #define gf_ipReasmTimeout MibGetIpGroup
  239. #define gf_ipReasmReqds MibGetIpGroup
  240. #define gf_ipReasmOKs MibGetIpGroup
  241. #define gf_ipReasmFails MibGetIpGroup
  242. #define gf_ipFragOKs MibGetIpGroup
  243. #define gf_ipFragFails MibGetIpGroup
  244. #define gf_ipFragCreates MibGetIpGroup
  245. #define gf_ipRoutingDiscards MibGetIpGroup
  246. #define gb_ipForwarding IP_STATS_GET
  247. #define gb_ipDefaultTTL IP_STATS_GET
  248. #define gb_ipInReceives IP_STATS_GET
  249. #define gb_ipInHdrErrors IP_STATS_GET
  250. #define gb_ipInAddrErrors IP_STATS_GET
  251. #define gb_ipForwDatagrams IP_STATS_GET
  252. #define gb_ipInUnknownProtos IP_STATS_GET
  253. #define gb_ipInDiscards IP_STATS_GET
  254. #define gb_ipInDelivers IP_STATS_GET
  255. #define gb_ipOutRequests IP_STATS_GET
  256. #define gb_ipOutDiscards IP_STATS_GET
  257. #define gb_ipOutNoRoutes IP_STATS_GET
  258. #define gb_ipReasmTimeout IP_STATS_GET
  259. #define gb_ipReasmReqds IP_STATS_GET
  260. #define gb_ipReasmOKs IP_STATS_GET
  261. #define gb_ipReasmFails IP_STATS_GET
  262. #define gb_ipFragOKs IP_STATS_GET
  263. #define gb_ipFragFails IP_STATS_GET
  264. #define gb_ipFragCreates IP_STATS_GET
  265. #define gb_ipRoutingDiscards IP_STATS_GET
  266. typedef struct _IP_STATS_SET
  267. {
  268. AsnAny ipForwarding;
  269. AsnAny ipDefaultTTL;
  270. DWORD rgdwSetBuffer[MIB_INFO_SIZE_IN_DWORDS(MIB_IPSTATS)];
  271. }IP_STATS_SET, *PIP_STATS_SET;
  272. UINT
  273. MibSetIpGroup(
  274. UINT actionId,
  275. AsnAny *objectArray,
  276. UINT *errorIndex
  277. );
  278. #define sf_ipForwarding MibSetIpGroup
  279. #define sf_ipDefaultTTL MibSetIpGroup
  280. #define sb_ipForwarding IP_STATS_SET
  281. #define sb_ipDefaultTTL IP_STATS_SET
  282. //
  283. // The space kept for IP Addresses is a DWORD
  284. //
  285. typedef struct _IP_ADDRESS_ENTRY_GET
  286. {
  287. AsnAny ipAdEntAddr;
  288. AsnAny ipAdEntIfIndex;
  289. AsnAny ipAdEntNetMask;
  290. AsnAny ipAdEntBcastAddr;
  291. AsnAny ipAdEntReasmMaxSize;
  292. DWORD dwIpAdEntAddrInfo;
  293. DWORD dwIpAdEntNetMaskInfo;
  294. }IP_ADDRESS_ENTRY_GET, *PIP_ADDRESS_ENTRY_GET;
  295. UINT
  296. MibGetIpAddressEntry(
  297. UINT actionId,
  298. AsnAny *objectArray,
  299. UINT *errorIndex
  300. );
  301. #define gf_ipAdEntAddr MibGetIpAddressEntry
  302. #define gf_ipAdEntIfIndex MibGetIpAddressEntry
  303. #define gf_ipAdEntNetMask MibGetIpAddressEntry
  304. #define gf_ipAdEntBcastAddr MibGetIpAddressEntry
  305. #define gf_ipAdEntReasmMaxSize MibGetIpAddressEntry
  306. #define gb_ipAdEntAddr IP_ADDRESS_ENTRY_GET
  307. #define gb_ipAdEntIfIndex IP_ADDRESS_ENTRY_GET
  308. #define gb_ipAdEntNetMask IP_ADDRESS_ENTRY_GET
  309. #define gb_ipAdEntBcastAddr IP_ADDRESS_ENTRY_GET
  310. #define gb_ipAdEntReasmMaxSize IP_ADDRESS_ENTRY_GET
  311. typedef struct _IP_ROUTE_ENTRY_GET
  312. {
  313. AsnAny ipRouteDest;
  314. AsnAny ipRouteIfIndex;
  315. AsnAny ipRouteMetric1;
  316. AsnAny ipRouteMetric2;
  317. AsnAny ipRouteMetric3;
  318. AsnAny ipRouteMetric4;
  319. AsnAny ipRouteNextHop;
  320. AsnAny ipRouteType;
  321. AsnAny ipRouteProto;
  322. AsnAny ipRouteAge;
  323. AsnAny ipRouteMask;
  324. AsnAny ipRouteMetric5;
  325. AsnAny ipRouteInfo;
  326. DWORD dwIpRouteDestInfo;
  327. DWORD dwIpRouteMaskInfo;
  328. DWORD dwIpRouteNextHopInfo;
  329. }IP_ROUTE_ENTRY_GET, *PIP_ROUTE_ENTRY_GET;
  330. UINT
  331. MibGetIpRouteEntry(
  332. UINT actionId,
  333. AsnAny *objectArray,
  334. UINT *errorIndex
  335. );
  336. #define gf_ipRouteDest MibGetIpRouteEntry
  337. #define gf_ipRouteIfIndex MibGetIpRouteEntry
  338. #define gf_ipRouteMetric1 MibGetIpRouteEntry
  339. #define gf_ipRouteMetric2 MibGetIpRouteEntry
  340. #define gf_ipRouteMetric3 MibGetIpRouteEntry
  341. #define gf_ipRouteMetric4 MibGetIpRouteEntry
  342. #define gf_ipRouteNextHop MibGetIpRouteEntry
  343. #define gf_ipRouteType MibGetIpRouteEntry
  344. #define gf_ipRouteProto MibGetIpRouteEntry
  345. #define gf_ipRouteAge MibGetIpRouteEntry
  346. #define gf_ipRouteMask MibGetIpRouteEntry
  347. #define gf_ipRouteMetric5 MibGetIpRouteEntry
  348. #define gf_ipRouteInfo MibGetIpRouteEntry
  349. #define gb_ipRouteDest IP_ROUTE_ENTRY_GET
  350. #define gb_ipRouteIfIndex IP_ROUTE_ENTRY_GET
  351. #define gb_ipRouteMetric1 IP_ROUTE_ENTRY_GET
  352. #define gb_ipRouteMetric2 IP_ROUTE_ENTRY_GET
  353. #define gb_ipRouteMetric3 IP_ROUTE_ENTRY_GET
  354. #define gb_ipRouteMetric4 IP_ROUTE_ENTRY_GET
  355. #define gb_ipRouteNextHop IP_ROUTE_ENTRY_GET
  356. #define gb_ipRouteType IP_ROUTE_ENTRY_GET
  357. #define gb_ipRouteProto IP_ROUTE_ENTRY_GET
  358. #define gb_ipRouteAge IP_ROUTE_ENTRY_GET
  359. #define gb_ipRouteMask IP_ROUTE_ENTRY_GET
  360. #define gb_ipRouteMetric5 IP_ROUTE_ENTRY_GET
  361. #define gb_ipRouteInfo IP_ROUTE_ENTRY_GET
  362. typedef struct _IP_ROUTE_ENTRY_SET
  363. {
  364. AsnAny ipRouteDest;
  365. AsnAny ipRouteIfIndex;
  366. AsnAny ipRouteMetric1;
  367. AsnAny ipRouteMetric2;
  368. AsnAny ipRouteMetric3;
  369. AsnAny ipRouteMetric4;
  370. AsnAny ipRouteNextHop;
  371. AsnAny ipRouteType;
  372. AsnAny ipRouteProto;
  373. AsnAny ipRouteAge;
  374. AsnAny ipRouteMask;
  375. AsnAny ipRouteMetric5;
  376. BOOL bLocked;
  377. DWORD dwIpRouteDestInfo;
  378. DWORD dwIpRouteMaskInfo;
  379. DWORD dwIpRouteNextHopInfo;
  380. ROW_ACTION raAction;
  381. DWORD rgdwSetBuffer[MIB_INFO_SIZE_IN_DWORDS(MIB_IPFORWARDROW)];
  382. }IP_ROUTE_ENTRY_SET, *PIP_ROUTE_ENTRY_SET;
  383. UINT
  384. MibSetIpRouteEntry(
  385. UINT actionId,
  386. AsnAny *objectArray,
  387. UINT *errorIndex
  388. );
  389. #define sf_ipRouteDest MibSetIpRouteEntry
  390. #define sf_ipRouteIfIndex MibSetIpRouteEntry
  391. #define sf_ipRouteMetric1 MibSetIpRouteEntry
  392. #define sf_ipRouteMetric2 MibSetIpRouteEntry
  393. #define sf_ipRouteMetric3 MibSetIpRouteEntry
  394. #define sf_ipRouteMetric4 MibSetIpRouteEntry
  395. #define sf_ipRouteNextHop MibSetIpRouteEntry
  396. #define sf_ipRouteType MibSetIpRouteEntry
  397. #define sf_ipRouteProto MibSetIpRouteEntry
  398. #define sf_ipRouteAge MibSetIpRouteEntry
  399. #define sf_ipRouteMask MibSetIpRouteEntry
  400. #define sf_ipRouteMetric5 MibSetIpRouteEntry
  401. #define sb_ipRouteDest IP_ROUTE_ENTRY_SET
  402. #define sb_ipRouteIfIndex IP_ROUTE_ENTRY_SET
  403. #define sb_ipRouteMetric1 IP_ROUTE_ENTRY_SET
  404. #define sb_ipRouteMetric2 IP_ROUTE_ENTRY_SET
  405. #define sb_ipRouteMetric3 IP_ROUTE_ENTRY_SET
  406. #define sb_ipRouteMetric4 IP_ROUTE_ENTRY_SET
  407. #define sb_ipRouteNextHop IP_ROUTE_ENTRY_SET
  408. #define sb_ipRouteType IP_ROUTE_ENTRY_SET
  409. #define sb_ipRouteProto IP_ROUTE_ENTRY_SET
  410. #define sb_ipRouteAge IP_ROUTE_ENTRY_SET
  411. #define sb_ipRouteMask IP_ROUTE_ENTRY_SET
  412. #define sb_ipRouteMetric5 IP_ROUTE_ENTRY_SET
  413. typedef struct _IP_NET_TO_MEDIA_ENTRY_GET
  414. {
  415. AsnAny ipNetToMediaIfIndex;
  416. AsnAny ipNetToMediaPhysAddress;
  417. AsnAny ipNetToMediaNetAddress;
  418. AsnAny ipNetToMediaType;
  419. BYTE rgbyIpNetToMediaPhysAddressInfo[MAX_PHYS_ADDR_LEN];
  420. DWORD dwIpNetToMediaNetAddressInfo;
  421. }IP_NET_TO_MEDIA_ENTRY_GET, *PIP_NET_TO_MEDIA_ENTRY_GET;
  422. UINT
  423. MibGetIpNetToMediaEntry(
  424. UINT actionId,
  425. AsnAny *objectArray,
  426. UINT *errorIndex
  427. );
  428. #define gf_ipNetToMediaIfIndex MibGetIpNetToMediaEntry
  429. #define gf_ipNetToMediaPhysAddress MibGetIpNetToMediaEntry
  430. #define gf_ipNetToMediaNetAddress MibGetIpNetToMediaEntry
  431. #define gf_ipNetToMediaType MibGetIpNetToMediaEntry
  432. #define gb_ipNetToMediaIfIndex IP_NET_TO_MEDIA_ENTRY_GET
  433. #define gb_ipNetToMediaPhysAddress IP_NET_TO_MEDIA_ENTRY_GET
  434. #define gb_ipNetToMediaNetAddress IP_NET_TO_MEDIA_ENTRY_GET
  435. #define gb_ipNetToMediaType IP_NET_TO_MEDIA_ENTRY_GET
  436. typedef struct _IP_NET_TO_MEDIA_ENTRY_SET
  437. {
  438. AsnAny ipNetToMediaIfIndex;
  439. AsnAny ipNetToMediaPhysAddress;
  440. AsnAny ipNetToMediaNetAddress;
  441. AsnAny ipNetToMediaType;
  442. BOOL bLocked;
  443. BYTE rgbyIpNetToMediaPhysAddressInfo[MAX_PHYS_ADDR_LEN];
  444. DWORD dwIpNetToMediaNetAddressInfo;
  445. ROW_ACTION raAction;
  446. DWORD rgdwSetBuffer[MIB_INFO_SIZE_IN_DWORDS(MIB_IPNETROW)];
  447. }IP_NET_TO_MEDIA_ENTRY_SET, *PIP_NET_TO_MEDIA_ENTRY_SET;
  448. UINT
  449. MibSetIpNetToMediaEntry(
  450. UINT actionId,
  451. AsnAny *objectArray,
  452. UINT *errorIndex
  453. );
  454. #define sf_ipNetToMediaIfIndex MibSetIpNetToMediaEntry
  455. #define sf_ipNetToMediaPhysAddress MibSetIpNetToMediaEntry
  456. #define sf_ipNetToMediaNetAddress MibSetIpNetToMediaEntry
  457. #define sf_ipNetToMediaType MibSetIpNetToMediaEntry
  458. #define sb_ipNetToMediaIfIndex IP_NET_TO_MEDIA_ENTRY_SET
  459. #define sb_ipNetToMediaPhysAddress IP_NET_TO_MEDIA_ENTRY_SET
  460. #define sb_ipNetToMediaNetAddress IP_NET_TO_MEDIA_ENTRY_SET
  461. #define sb_ipNetToMediaType IP_NET_TO_MEDIA_ENTRY_SET
  462. typedef struct _ICMP_GROUP_GET
  463. {
  464. AsnAny icmpInMsgs;
  465. AsnAny icmpInErrors;
  466. AsnAny icmpInDestUnreachs;
  467. AsnAny icmpInTimeExcds;
  468. AsnAny icmpInParmProbs;
  469. AsnAny icmpInSrcQuenchs;
  470. AsnAny icmpInRedirects;
  471. AsnAny icmpInEchos;
  472. AsnAny icmpInEchoReps;
  473. AsnAny icmpInTimestamps;
  474. AsnAny icmpInTimestampReps;
  475. AsnAny icmpInAddrMasks;
  476. AsnAny icmpInAddrMaskReps;
  477. AsnAny icmpOutMsgs;
  478. AsnAny icmpOutErrors;
  479. AsnAny icmpOutDestUnreachs;
  480. AsnAny icmpOutTimeExcds;
  481. AsnAny icmpOutParmProbs;
  482. AsnAny icmpOutSrcQuenchs;
  483. AsnAny icmpOutRedirects;
  484. AsnAny icmpOutEchos;
  485. AsnAny icmpOutEchoReps;
  486. AsnAny icmpOutTimestamps;
  487. AsnAny icmpOutTimestampReps;
  488. AsnAny icmpOutAddrMasks;
  489. AsnAny icmpOutAddrMaskReps;
  490. }ICMP_GROUP_GET, *PICMP_GROUP_GET;
  491. UINT
  492. MibGetIcmpGroup(
  493. UINT actionId,
  494. AsnAny *objectArray,
  495. UINT *errorIndex
  496. );
  497. #define gf_icmpInMsgs MibGetIcmpGroup
  498. #define gf_icmpInErrors MibGetIcmpGroup
  499. #define gf_icmpInDestUnreachs MibGetIcmpGroup
  500. #define gf_icmpInTimeExcds MibGetIcmpGroup
  501. #define gf_icmpInParmProbs MibGetIcmpGroup
  502. #define gf_icmpInSrcQuenchs MibGetIcmpGroup
  503. #define gf_icmpInRedirects MibGetIcmpGroup
  504. #define gf_icmpInEchos MibGetIcmpGroup
  505. #define gf_icmpInEchoReps MibGetIcmpGroup
  506. #define gf_icmpInTimestamps MibGetIcmpGroup
  507. #define gf_icmpInTimestampReps MibGetIcmpGroup
  508. #define gf_icmpInAddrMasks MibGetIcmpGroup
  509. #define gf_icmpInAddrMaskReps MibGetIcmpGroup
  510. #define gf_icmpOutMsgs MibGetIcmpGroup
  511. #define gf_icmpOutErrors MibGetIcmpGroup
  512. #define gf_icmpOutDestUnreachs MibGetIcmpGroup
  513. #define gf_icmpOutTimeExcds MibGetIcmpGroup
  514. #define gf_icmpOutParmProbs MibGetIcmpGroup
  515. #define gf_icmpOutSrcQuenchs MibGetIcmpGroup
  516. #define gf_icmpOutRedirects MibGetIcmpGroup
  517. #define gf_icmpOutEchos MibGetIcmpGroup
  518. #define gf_icmpOutEchoReps MibGetIcmpGroup
  519. #define gf_icmpOutTimestamps MibGetIcmpGroup
  520. #define gf_icmpOutTimestampReps MibGetIcmpGroup
  521. #define gf_icmpOutAddrMasks MibGetIcmpGroup
  522. #define gf_icmpOutAddrMaskReps MibGetIcmpGroup
  523. #define gb_icmpInMsgs ICMP_GROUP_GET
  524. #define gb_icmpInErrors ICMP_GROUP_GET
  525. #define gb_icmpInDestUnreachs ICMP_GROUP_GET
  526. #define gb_icmpInTimeExcds ICMP_GROUP_GET
  527. #define gb_icmpInParmProbs ICMP_GROUP_GET
  528. #define gb_icmpInSrcQuenchs ICMP_GROUP_GET
  529. #define gb_icmpInRedirects ICMP_GROUP_GET
  530. #define gb_icmpInEchos ICMP_GROUP_GET
  531. #define gb_icmpInEchoReps ICMP_GROUP_GET
  532. #define gb_icmpInTimestamps ICMP_GROUP_GET
  533. #define gb_icmpInTimestampReps ICMP_GROUP_GET
  534. #define gb_icmpInAddrMasks ICMP_GROUP_GET
  535. #define gb_icmpInAddrMaskReps ICMP_GROUP_GET
  536. #define gb_icmpOutMsgs ICMP_GROUP_GET
  537. #define gb_icmpOutErrors ICMP_GROUP_GET
  538. #define gb_icmpOutDestUnreachs ICMP_GROUP_GET
  539. #define gb_icmpOutTimeExcds ICMP_GROUP_GET
  540. #define gb_icmpOutParmProbs ICMP_GROUP_GET
  541. #define gb_icmpOutSrcQuenchs ICMP_GROUP_GET
  542. #define gb_icmpOutRedirects ICMP_GROUP_GET
  543. #define gb_icmpOutEchos ICMP_GROUP_GET
  544. #define gb_icmpOutEchoReps ICMP_GROUP_GET
  545. #define gb_icmpOutTimestamps ICMP_GROUP_GET
  546. #define gb_icmpOutTimestampReps ICMP_GROUP_GET
  547. #define gb_icmpOutAddrMasks ICMP_GROUP_GET
  548. #define gb_icmpOutAddrMaskReps ICMP_GROUP_GET
  549. typedef struct _INET_ICMP_GET{
  550. AsnAny inetIcmpAFType;
  551. AsnAny inetIcmpIfIndex;
  552. AsnAny inetIcmpInMsgs;
  553. AsnAny inetIcmpInErrors;
  554. AsnAny inetIcmpOutMsgs;
  555. AsnAny inetIcmpOutErrors;
  556. }INET_ICMP_GET, *PINET_ICMP_GET;
  557. UINT
  558. MibGetInetIcmpEntry(
  559. UINT actionId,
  560. AsnAny *objectArray,
  561. UINT *errorIndex
  562. );
  563. #define gf_inetIcmpAFType MibGetInetIcmpEntry
  564. #define gf_inetIcmpIfIndex MibGetInetIcmpEntry
  565. #define gf_inetIcmpInMsgs MibGetInetIcmpEntry
  566. #define gf_inetIcmpInErrors MibGetInetIcmpEntry
  567. #define gf_inetIcmpOutMsgs MibGetInetIcmpEntry
  568. #define gf_inetIcmpOutErrors MibGetInetIcmpEntry
  569. #define gb_inetIcmpAFType INET_ICMP_GET
  570. #define gb_inetIcmpIfIndex INET_ICMP_GET
  571. #define gb_inetIcmpInMsgs INET_ICMP_GET
  572. #define gb_inetIcmpInErrors INET_ICMP_GET
  573. #define gb_inetIcmpOutMsgs INET_ICMP_GET
  574. #define gb_inetIcmpOutErrors INET_ICMP_GET
  575. typedef struct _INET_ICMP_MSG_GET{
  576. AsnAny inetIcmpMsgAFType;
  577. AsnAny inetIcmpMsgIfIndex;
  578. AsnAny inetIcmpMsgType;
  579. AsnAny inetIcmpMsgCode;
  580. AsnAny inetIcmpMsgInPkts;
  581. AsnAny inetIcmpMsgOutPkts;
  582. }INET_ICMP_MSG_GET, *PINET_ICMP_MSG_GET;
  583. UINT
  584. MibGetInetIcmpMsgEntry(
  585. UINT actionId,
  586. AsnAny *objectArray,
  587. UINT *errorIndex
  588. );
  589. #define gf_inetIcmpMsgAFType MibGetInetIcmpMsgEntry
  590. #define gf_inetIcmpMsgIfIndex MibGetInetIcmpMsgEntry
  591. #define gf_inetIcmpMsgType MibGetInetIcmpMsgEntry
  592. #define gf_inetIcmpMsgCode MibGetInetIcmpMsgEntry
  593. #define gf_inetIcmpMsgInPkts MibGetInetIcmpMsgEntry
  594. #define gf_inetIcmpMsgOutPkts MibGetInetIcmpMsgEntry
  595. #define gb_inetIcmpMsgAFType INET_ICMP_MSG_GET
  596. #define gb_inetIcmpMsgIfIndex INET_ICMP_MSG_GET
  597. #define gb_inetIcmpMsgType INET_ICMP_MSG_GET
  598. #define gb_inetIcmpMsgCode INET_ICMP_MSG_GET
  599. #define gb_inetIcmpMsgInPkts INET_ICMP_MSG_GET
  600. #define gb_inetIcmpMsgOutPkts INET_ICMP_MSG_GET
  601. typedef struct _TCP_STATS_GET
  602. {
  603. AsnAny tcpRtoAlgorithm;
  604. AsnAny tcpRtoMin;
  605. AsnAny tcpRtoMax;
  606. AsnAny tcpMaxConn;
  607. AsnAny tcpActiveOpens;
  608. AsnAny tcpPassiveOpens;
  609. AsnAny tcpAttemptFails;
  610. AsnAny tcpEstabResets;
  611. AsnAny tcpCurrEstab;
  612. AsnAny tcpInSegs;
  613. AsnAny tcpOutSegs;
  614. AsnAny tcpRetransSegs;
  615. AsnAny tcpInErrs;
  616. AsnAny tcpOutRsts;
  617. }TCP_STATS_GET, *PTCP_STATS_GET;
  618. UINT
  619. MibGetTcpGroup(
  620. UINT actionId,
  621. AsnAny *objectArray,
  622. UINT *errorIndex
  623. );
  624. #define gf_tcpRtoAlgorithm MibGetTcpGroup
  625. #define gf_tcpRtoMin MibGetTcpGroup
  626. #define gf_tcpRtoMax MibGetTcpGroup
  627. #define gf_tcpMaxConn MibGetTcpGroup
  628. #define gf_tcpActiveOpens MibGetTcpGroup
  629. #define gf_tcpPassiveOpens MibGetTcpGroup
  630. #define gf_tcpAttemptFails MibGetTcpGroup
  631. #define gf_tcpEstabResets MibGetTcpGroup
  632. #define gf_tcpCurrEstab MibGetTcpGroup
  633. #define gf_tcpInSegs MibGetTcpGroup
  634. #define gf_tcpOutSegs MibGetTcpGroup
  635. #define gf_tcpRetransSegs MibGetTcpGroup
  636. #define gf_tcpInErrs MibGetTcpGroup
  637. #define gf_tcpOutRsts MibGetTcpGroup
  638. #define gb_tcpRtoAlgorithm TCP_STATS_GET
  639. #define gb_tcpRtoMin TCP_STATS_GET
  640. #define gb_tcpRtoMax TCP_STATS_GET
  641. #define gb_tcpMaxConn TCP_STATS_GET
  642. #define gb_tcpActiveOpens TCP_STATS_GET
  643. #define gb_tcpPassiveOpens TCP_STATS_GET
  644. #define gb_tcpAttemptFails TCP_STATS_GET
  645. #define gb_tcpEstabResets TCP_STATS_GET
  646. #define gb_tcpCurrEstab TCP_STATS_GET
  647. #define gb_tcpInSegs TCP_STATS_GET
  648. #define gb_tcpOutSegs TCP_STATS_GET
  649. #define gb_tcpRetransSegs TCP_STATS_GET
  650. #define gb_tcpInErrs TCP_STATS_GET
  651. #define gb_tcpOutRsts TCP_STATS_GET
  652. typedef struct _TCP_CONNECTION_ENTRY_GET
  653. {
  654. AsnAny tcpConnState;
  655. AsnAny tcpConnLocalAddress;
  656. AsnAny tcpConnLocalPort;
  657. AsnAny tcpConnRemAddress;
  658. AsnAny tcpConnRemPort;
  659. DWORD dwTcpConnLocalAddressInfo;
  660. DWORD dwTcpConnRemAddressInfo;
  661. }TCP_CONNECTION_ENTRY_GET, *PTCP_CONNECTION_ENTRY_GET;
  662. UINT
  663. MibGetTcpConnectionEntry(
  664. UINT actionId,
  665. AsnAny *objectArray,
  666. UINT *errorIndex
  667. );
  668. #define gf_tcpConnState MibGetTcpConnectionEntry
  669. #define gf_tcpConnLocalAddress MibGetTcpConnectionEntry
  670. #define gf_tcpConnLocalPort MibGetTcpConnectionEntry
  671. #define gf_tcpConnRemAddress MibGetTcpConnectionEntry
  672. #define gf_tcpConnRemPort MibGetTcpConnectionEntry
  673. #define gb_tcpConnState TCP_CONNECTION_ENTRY_GET
  674. #define gb_tcpConnLocalAddress TCP_CONNECTION_ENTRY_GET
  675. #define gb_tcpConnLocalPort TCP_CONNECTION_ENTRY_GET
  676. #define gb_tcpConnRemAddress TCP_CONNECTION_ENTRY_GET
  677. #define gb_tcpConnRemPort TCP_CONNECTION_ENTRY_GET
  678. typedef struct _TCP_CONNECTION_ENTRY_SET
  679. {
  680. AsnAny tcpConnState;
  681. AsnAny tcpConnLocalAddress;
  682. AsnAny tcpConnLocalPort;
  683. AsnAny tcpConnRemAddress;
  684. AsnAny tcpConnRemPort;
  685. DWORD dwTcpConnLocalAddressInfo;
  686. DWORD dwTcpConnRemAddressInfo;
  687. BOOL bLocked;
  688. ROW_ACTION raAction;
  689. DWORD rgdwSetBuffer[MIB_INFO_SIZE_IN_DWORDS(MIB_TCPROW)];
  690. }TCP_CONNECTION_ENTRY_SET, *PTCP_CONNECTION_ENTRY_SET;
  691. UINT
  692. MibSetTcpConnectionEntry(
  693. UINT actionId,
  694. AsnAny *objectArray,
  695. UINT *errorIndex
  696. );
  697. #define sf_tcpConnState MibSetTcpConnectionEntry
  698. #define sb_tcpConnState TCP_CONNECTION_ENTRY_SET
  699. typedef struct _TCP_NEW_CONNECTION_ENTRY_GET
  700. {
  701. AsnAny tcpNewConnLocalAddressType;
  702. AsnAny tcpNewConnLocalAddress;
  703. AsnAny tcpNewConnLocalPort;
  704. AsnAny tcpNewConnRemAddressType;
  705. AsnAny tcpNewConnRemAddress;
  706. AsnAny tcpNewConnRemPort;
  707. AsnAny tcpNewConnState;
  708. BYTE rgbyTcpNewConnLocalAddressInfo[20];
  709. BYTE rgbyTcpNewConnRemAddressInfo[20];
  710. }TCP_NEW_CONNECTION_ENTRY_GET, *PTCP_NEW_CONNECTION_ENTRY_GET;
  711. UINT
  712. MibGetTcpNewConnectionEntry(
  713. UINT actionId,
  714. AsnAny *objectArray,
  715. UINT *errorIndex
  716. );
  717. #define gf_tcpNewConnLocalAddressType MibGetTcpNewConnectionEntry
  718. #define gf_tcpNewConnLocalAddress MibGetTcpNewConnectionEntry
  719. #define gf_tcpNewConnLocalPort MibGetTcpNewConnectionEntry
  720. #define gf_tcpNewConnRemAddressType MibGetTcpNewConnectionEntry
  721. #define gf_tcpNewConnRemAddress MibGetTcpNewConnectionEntry
  722. #define gf_tcpNewConnRemPort MibGetTcpNewConnectionEntry
  723. #define gf_tcpNewConnState MibGetTcpNewConnectionEntry
  724. #define gb_tcpNewConnLocalAddressType TCP_NEW_CONNECTION_ENTRY_GET
  725. #define gb_tcpNewConnLocalAddress TCP_NEW_CONNECTION_ENTRY_GET
  726. #define gb_tcpNewConnLocalPort TCP_NEW_CONNECTION_ENTRY_GET
  727. #define gb_tcpNewConnRemAddressType TCP_NEW_CONNECTION_ENTRY_GET
  728. #define gb_tcpNewConnRemAddress TCP_NEW_CONNECTION_ENTRY_GET
  729. #define gb_tcpNewConnRemPort TCP_NEW_CONNECTION_ENTRY_GET
  730. #define gb_tcpNewConnState TCP_NEW_CONNECTION_ENTRY_GET
  731. typedef struct _TCP_NEW_CONNECTION_ENTRY_SET
  732. {
  733. AsnAny tcpNewConnLocalAddressType;
  734. AsnAny tcpNewConnLocalAddress;
  735. AsnAny tcpNewConnLocalPort;
  736. AsnAny tcpNewConnRemAddressType;
  737. AsnAny tcpNewConnRemAddress;
  738. AsnAny tcpNewConnRemPort;
  739. AsnAny tcpNewConnState;
  740. BYTE rgbyTcpNewConnLocalAddressInfo[20];
  741. BYTE rgbyTcpNewConnRemAddressInfo[20];
  742. BOOL bLocked;
  743. ROW_ACTION raAction;
  744. DWORD rgdwSetBuffer[MIB_INFO_SIZE_IN_DWORDS(TCP6ConnTableEntry)];
  745. }TCP_NEW_CONNECTION_ENTRY_SET, *PTCP_NEW_CONNECTION_ENTRY_SET;
  746. UINT
  747. MibSetTcpNewConnectionEntry(
  748. UINT actionId,
  749. AsnAny *objectArray,
  750. UINT *errorIndex
  751. );
  752. #define sf_tcpNewConnState MibSetTcpNewConnectionEntry
  753. #define sb_tcpNewConnState TCP_NEW_CONNECTION_ENTRY_SET
  754. typedef struct _UDP_STATS_GET
  755. {
  756. AsnAny udpInDatagrams;
  757. AsnAny udpNoPorts;
  758. AsnAny udpInErrors;
  759. AsnAny udpOutDatagrams;
  760. }UDP_STATS_GET, *PUDP_STATS_GET;
  761. UINT
  762. MibGetUdpGroup(
  763. UINT actionId,
  764. AsnAny *objectArray,
  765. UINT *errorIndex
  766. );
  767. #define gf_udpInDatagrams MibGetUdpGroup
  768. #define gf_udpNoPorts MibGetUdpGroup
  769. #define gf_udpInErrors MibGetUdpGroup
  770. #define gf_udpOutDatagrams MibGetUdpGroup
  771. #define gb_udpInDatagrams UDP_STATS_GET
  772. #define gb_udpNoPorts UDP_STATS_GET
  773. #define gb_udpInErrors UDP_STATS_GET
  774. #define gb_udpOutDatagrams UDP_STATS_GET
  775. typedef struct _UDP_ENTRY_GET
  776. {
  777. AsnAny udpLocalAddress;
  778. AsnAny udpLocalPort;
  779. DWORD dwUdpLocalAddressInfo;
  780. }UDP_ENTRY_GET, *PUDP_ENTRY_GET;
  781. UINT
  782. MibGetUdpEntry(
  783. UINT actionId,
  784. AsnAny *objectArray,
  785. UINT *errorIndex
  786. );
  787. #define gf_udpLocalAddress MibGetUdpEntry
  788. #define gf_udpLocalPort MibGetUdpEntry
  789. #define gb_udpLocalAddress UDP_ENTRY_GET
  790. #define gb_udpLocalPort UDP_ENTRY_GET
  791. typedef struct _UDP_LISTENER_ENTRY_GET
  792. {
  793. AsnAny udpListenerLocalAddressType;
  794. AsnAny udpListenerLocalAddress;
  795. AsnAny udpListenerLocalPort;
  796. BYTE rgbyUdpLocalAddressInfo[20];
  797. }UDP_LISTENER_ENTRY_GET, *PUDP_LISTENER_ENTRY_GET;
  798. UINT
  799. MibGetUdpListenerEntry(
  800. UINT actionId,
  801. AsnAny *objectArray,
  802. UINT *errorIndex
  803. );
  804. #define gf_udpListenerLocalAddressType MibGetUdpListenerEntry
  805. #define gf_udpListenerLocalAddress MibGetUdpListenerEntry
  806. #define gf_udpListenerLocalPort MibGetUdpListenerEntry
  807. #define gb_udpListenerLocalAddressType UDP_LISTENER_ENTRY_GET
  808. #define gb_udpListenerLocalAddress UDP_LISTENER_ENTRY_GET
  809. #define gb_udpListenerLocalPort UDP_LISTENER_ENTRY_GET
  810. typedef struct _IP_FORWARD_NUMBER_GET
  811. {
  812. AsnAny ipForwardNumber;
  813. }IP_FORWARD_NUMBER_GET, *PIP_FORWARD_NUMBER_GET;
  814. UINT
  815. MibGetIpForwardNumber(
  816. UINT actionId,
  817. AsnAny *objectArray,
  818. UINT *errorIndex
  819. );
  820. #define gf_ipForwardNumber MibGetIpForwardNumber
  821. #define gb_ipForwardNumber IP_FORWARD_NUMBER_GET
  822. typedef struct _IP_FORWARD_ENTRY_GET
  823. {
  824. AsnAny ipForwardDest;
  825. AsnAny ipForwardMask;
  826. AsnAny ipForwardPolicy;
  827. AsnAny ipForwardNextHop;
  828. AsnAny ipForwardIfIndex;
  829. AsnAny ipForwardType;
  830. AsnAny ipForwardProto;
  831. AsnAny ipForwardAge;
  832. AsnAny ipForwardInfo;
  833. AsnAny ipForwardNextHopAS;
  834. AsnAny ipForwardMetric1;
  835. AsnAny ipForwardMetric2;
  836. AsnAny ipForwardMetric3;
  837. AsnAny ipForwardMetric4;
  838. AsnAny ipForwardMetric5;
  839. DWORD dwIpForwardDestInfo;
  840. DWORD dwIpForwardMaskInfo;
  841. DWORD dwIpForwardNextHopInfo;
  842. }IP_FORWARD_ENTRY_GET, *PIP_FORWARD_ENTRY_GET;
  843. UINT
  844. MibGetIpForwardEntry(
  845. UINT actionId,
  846. AsnAny *objectArray,
  847. UINT *errorIndex
  848. );
  849. #define gf_ipForwardDest MibGetIpForwardEntry
  850. #define gf_ipForwardMask MibGetIpForwardEntry
  851. #define gf_ipForwardPolicy MibGetIpForwardEntry
  852. #define gf_ipForwardNextHop MibGetIpForwardEntry
  853. #define gf_ipForwardIfIndex MibGetIpForwardEntry
  854. #define gf_ipForwardType MibGetIpForwardEntry
  855. #define gf_ipForwardProto MibGetIpForwardEntry
  856. #define gf_ipForwardAge MibGetIpForwardEntry
  857. #define gf_ipForwardInfo MibGetIpForwardEntry
  858. #define gf_ipForwardNextHopAS MibGetIpForwardEntry
  859. #define gf_ipForwardMetric1 MibGetIpForwardEntry
  860. #define gf_ipForwardMetric2 MibGetIpForwardEntry
  861. #define gf_ipForwardMetric3 MibGetIpForwardEntry
  862. #define gf_ipForwardMetric4 MibGetIpForwardEntry
  863. #define gf_ipForwardMetric5 MibGetIpForwardEntry
  864. #define gb_ipForwardDest IP_FORWARD_ENTRY_GET
  865. #define gb_ipForwardMask IP_FORWARD_ENTRY_GET
  866. #define gb_ipForwardPolicy IP_FORWARD_ENTRY_GET
  867. #define gb_ipForwardNextHop IP_FORWARD_ENTRY_GET
  868. #define gb_ipForwardIfIndex IP_FORWARD_ENTRY_GET
  869. #define gb_ipForwardType IP_FORWARD_ENTRY_GET
  870. #define gb_ipForwardProto IP_FORWARD_ENTRY_GET
  871. #define gb_ipForwardAge IP_FORWARD_ENTRY_GET
  872. #define gb_ipForwardInfo IP_FORWARD_ENTRY_GET
  873. #define gb_ipForwardNextHopAS IP_FORWARD_ENTRY_GET
  874. #define gb_ipForwardMetric1 IP_FORWARD_ENTRY_GET
  875. #define gb_ipForwardMetric2 IP_FORWARD_ENTRY_GET
  876. #define gb_ipForwardMetric3 IP_FORWARD_ENTRY_GET
  877. #define gb_ipForwardMetric4 IP_FORWARD_ENTRY_GET
  878. #define gb_ipForwardMetric5 IP_FORWARD_ENTRY_GET
  879. typedef struct _IP_FORWARD_ENTRY_SET
  880. {
  881. AsnAny ipForwardDest;
  882. AsnAny ipForwardMask;
  883. AsnAny ipForwardPolicy;
  884. AsnAny ipForwardNextHop;
  885. AsnAny ipForwardIfIndex;
  886. AsnAny ipForwardType;
  887. AsnAny ipForwardProto;
  888. AsnAny ipForwardAge;
  889. AsnAny ipForwardNextHopAS;
  890. AsnAny ipForwardMetric1;
  891. AsnAny ipForwardMetric2;
  892. AsnAny ipForwardMetric3;
  893. AsnAny ipForwardMetric4;
  894. AsnAny ipForwardMetric5;
  895. BOOL bLocked;
  896. DWORD dwIpForwardDestInfo;
  897. DWORD dwIpForwardMaskInfo;
  898. DWORD dwIpForwardNextHopInfo;
  899. ROW_ACTION raAction;
  900. DWORD rgdwSetBuffer[MIB_INFO_SIZE_IN_DWORDS(MIB_IPFORWARDROW)];
  901. }IP_FORWARD_ENTRY_SET, *PIP_FORWARD_ENTRY_SET;
  902. UINT
  903. MibSetIpForwardEntry(
  904. UINT actionId,
  905. AsnAny *objectArray,
  906. UINT *errorIndex
  907. );
  908. #define sf_ipForwardDest MibSetIpForwardEntry
  909. #define sf_ipForwardMask MibSetIpForwardEntry
  910. #define sf_ipForwardPolicy MibSetIpForwardEntry
  911. #define sf_ipForwardNextHop MibSetIpForwardEntry
  912. #define sf_ipForwardIfIndex MibSetIpForwardEntry
  913. #define sf_ipForwardType MibSetIpForwardEntry
  914. #define sf_ipForwardProto MibSetIpForwardEntry
  915. #define sf_ipForwardAge MibSetIpForwardEntry
  916. #define sf_ipForwardNextHopAS MibSetIpForwardEntry
  917. #define sf_ipForwardMetric1 MibSetIpForwardEntry
  918. #define sf_ipForwardMetric2 MibSetIpForwardEntry
  919. #define sf_ipForwardMetric3 MibSetIpForwardEntry
  920. #define sf_ipForwardMetric4 MibSetIpForwardEntry
  921. #define sf_ipForwardMetric5 MibSetIpForwardEntry
  922. #define sb_ipForwardDest IP_FORWARD_ENTRY_SET
  923. #define sb_ipForwardMask IP_FORWARD_ENTRY_SET
  924. #define sb_ipForwardPolicy IP_FORWARD_ENTRY_SET
  925. #define sb_ipForwardNextHop IP_FORWARD_ENTRY_SET
  926. #define sb_ipForwardIfIndex IP_FORWARD_ENTRY_SET
  927. #define sb_ipForwardType IP_FORWARD_ENTRY_SET
  928. #define sb_ipForwardProto IP_FORWARD_ENTRY_SET
  929. #define sb_ipForwardAge IP_FORWARD_ENTRY_SET
  930. #define sb_ipForwardNextHopAS IP_FORWARD_ENTRY_SET
  931. #define sb_ipForwardMetric1 IP_FORWARD_ENTRY_SET
  932. #define sb_ipForwardMetric2 IP_FORWARD_ENTRY_SET
  933. #define sb_ipForwardMetric3 IP_FORWARD_ENTRY_SET
  934. #define sb_ipForwardMetric4 IP_FORWARD_ENTRY_SET
  935. #define sb_ipForwardMetric5 IP_FORWARD_ENTRY_SET
  936. typedef struct _IPV6_STATS_GET
  937. {
  938. AsnAny ipv6Forwarding;
  939. AsnAny ipv6DefaultHopLimit;
  940. AsnAny ipv6Interfaces;
  941. AsnAny ipv6IfTableLastChange;
  942. AsnAny ipv6RouteNumber;
  943. AsnAny ipv6DiscardedRoutes;
  944. }IPV6_STATS_GET, *PIPV6_STATS_GET;
  945. UINT
  946. MibGetIpv6Group(
  947. UINT actionId,
  948. AsnAny *objectArray,
  949. UINT *errorIndex
  950. );
  951. #define gf_ipv6Forwarding MibGetIpv6Group
  952. #define gf_ipv6DefaultHopLimit MibGetIpv6Group
  953. #define gf_ipv6Interfaces MibGetIpv6Group
  954. #define gf_ipv6IfTableLastChange MibGetIpv6Group
  955. #define gf_ipv6RouteNumber MibGetIpv6Group
  956. #define gf_ipv6DiscardedRoutes MibGetIpv6Group
  957. #define gb_ipv6Forwarding IPV6_STATS_GET
  958. #define gb_ipv6DefaultHopLimit IPV6_STATS_GET
  959. #define gb_ipv6Interfaces IPV6_STATS_GET
  960. #define gb_ipv6IfTableLastChange IPV6_STATS_GET
  961. #define gb_ipv6RouteNumber IPV6_STATS_GET
  962. #define gb_ipv6DiscardedRoutes IPV6_STATS_GET
  963. typedef struct _IPV6_IF_GET
  964. {
  965. AsnAny ipv6IfIndex;
  966. AsnAny ipv6IfDescr;
  967. AsnAny ipv6IfLowerLayer;
  968. AsnAny ipv6IfEffectiveMtu;
  969. AsnAny ipv6IfReasmMaxSize;
  970. AsnAny ipv6IfIdentifier;
  971. AsnAny ipv6IfIdentifierLength;
  972. AsnAny ipv6IfPhysicalAddress;
  973. AsnAny ipv6IfAdminStatus;
  974. AsnAny ipv6IfOperStatus;
  975. AsnAny ipv6IfLastChange;
  976. BYTE rgbyIpv6IfDescrInfo[MAX_IF_DESCR_LEN];
  977. BYTE rgbyIpv6IfIdentifierInfo[8];
  978. BYTE rgbyIpv6IfPhysicalAddressInfo[MAX_PHYS_ADDR_LEN];
  979. }IPV6_IF_GET, *PIPV6_IF_GET;
  980. UINT
  981. MibGetIpv6IfEntry(
  982. UINT actionId,
  983. AsnAny *objectArray,
  984. UINT *errorIndex
  985. );
  986. #define gf_ipv6IfIndex MibGetIpv6IfEntry
  987. #define gf_ipv6IfDescr MibGetIpv6IfEntry
  988. #define gf_ipv6IfLowerLayer MibGetIpv6IfEntry
  989. #define gf_ipv6IfEffectiveMtu MibGetIpv6IfEntry
  990. #define gf_ipv6IfReasmMaxSize MibGetIpv6IfEntry
  991. #define gf_ipv6IfIdentifier MibGetIpv6IfEntry
  992. #define gf_ipv6IfIdentifierLength MibGetIpv6IfEntry
  993. #define gf_ipv6IfPhysicalAddress MibGetIpv6IfEntry
  994. #define gf_ipv6IfAdminStatus MibGetIpv6IfEntry
  995. #define gf_ipv6IfOperStatus MibGetIpv6IfEntry
  996. #define gf_ipv6IfLastChange MibGetIpv6IfEntry
  997. #define gb_ipv6IfIndex IPV6_IF_GET
  998. #define gb_ipv6IfDescr IPV6_IF_GET
  999. #define gb_ipv6IfLowerLayer IPV6_IF_GET
  1000. #define gb_ipv6IfEffectiveMtu IPV6_IF_GET
  1001. #define gb_ipv6IfReasmMaxSize IPV6_IF_GET
  1002. #define gb_ipv6IfIdentifier IPV6_IF_GET
  1003. #define gb_ipv6IfIdentifierLength IPV6_IF_GET
  1004. #define gb_ipv6IfPhysicalAddress IPV6_IF_GET
  1005. #define gb_ipv6IfAdminStatus IPV6_IF_GET
  1006. #define gb_ipv6IfOperStatus IPV6_IF_GET
  1007. #define gb_ipv6IfLastChange IPV6_IF_GET
  1008. typedef struct _IPV6_IF_STATS_GET
  1009. {
  1010. AsnAny ipv6IfIndex;
  1011. AsnAny ipv6IfStatsInReceives;
  1012. AsnAny ipv6IfStatsInHdrErrors;
  1013. AsnAny ipv6IfStatsInTooBigErrors;
  1014. AsnAny ipv6IfStatsInNoRoutes;
  1015. AsnAny ipv6IfStatsInAddrErrors;
  1016. AsnAny ipv6IfStatsInUnknownProtos;
  1017. AsnAny ipv6IfStatsInTruncatedPkts;
  1018. AsnAny ipv6IfStatsInDiscards;
  1019. AsnAny ipv6IfStatsInDelivers;
  1020. AsnAny ipv6IfStatsOutForwDatagrams;
  1021. AsnAny ipv6IfStatsOutRequests;
  1022. AsnAny ipv6IfStatsOutDiscards;
  1023. AsnAny ipv6IfStatsOutFragOKs;
  1024. AsnAny ipv6IfStatsOutFragFails;
  1025. AsnAny ipv6IfStatsOutFragCreates;
  1026. AsnAny ipv6IfStatsReasmReqds;
  1027. AsnAny ipv6IfStatsReasmOKs;
  1028. AsnAny ipv6IfStatsReasmFails;
  1029. AsnAny ipv6IfStatsInMcastPkts;
  1030. AsnAny ipv6IfStatsOutMcastPkts;
  1031. }IPV6_IF_STATS_GET, *PIPV6_IF_STATS_GET;
  1032. UINT
  1033. MibGetIpv6IfStatsEntry(
  1034. UINT actionId,
  1035. AsnAny *objectArray,
  1036. UINT *errorIndex
  1037. );
  1038. #define gf_ipv6IfStatsInReceives MibGetIpv6IfStatsEntry
  1039. #define gf_ipv6IfStatsInHdrErrors MibGetIpv6IfStatsEntry
  1040. #define gf_ipv6IfStatsInTooBigErrors MibGetIpv6IfStatsEntry
  1041. #define gf_ipv6IfStatsInNoRoutes MibGetIpv6IfStatsEntry
  1042. #define gf_ipv6IfStatsInAddrErrors MibGetIpv6IfStatsEntry
  1043. #define gf_ipv6IfStatsInUnknownProtos MibGetIpv6IfStatsEntry
  1044. #define gf_ipv6IfStatsInTruncatedPkts MibGetIpv6IfStatsEntry
  1045. #define gf_ipv6IfStatsInDiscards MibGetIpv6IfStatsEntry
  1046. #define gf_ipv6IfStatsInDelivers MibGetIpv6IfStatsEntry
  1047. #define gf_ipv6IfStatsOutForwDatagrams MibGetIpv6IfStatsEntry
  1048. #define gf_ipv6IfStatsOutRequests MibGetIpv6IfStatsEntry
  1049. #define gf_ipv6IfStatsOutDiscards MibGetIpv6IfStatsEntry
  1050. #define gf_ipv6IfStatsOutFragOKs MibGetIpv6IfStatsEntry
  1051. #define gf_ipv6IfStatsOutFragFails MibGetIpv6IfStatsEntry
  1052. #define gf_ipv6IfStatsOutFragCreates MibGetIpv6IfStatsEntry
  1053. #define gf_ipv6IfStatsReasmReqds MibGetIpv6IfStatsEntry
  1054. #define gf_ipv6IfStatsReasmOKs MibGetIpv6IfStatsEntry
  1055. #define gf_ipv6IfStatsReasmFails MibGetIpv6IfStatsEntry
  1056. #define gf_ipv6IfStatsInMcastPkts MibGetIpv6IfStatsEntry
  1057. #define gf_ipv6IfStatsOutMcastPkts MibGetIpv6IfStatsEntry
  1058. #define gb_ipv6IfStatsInReceives IPV6_IF_STATS_GET
  1059. #define gb_ipv6IfStatsInHdrErrors IPV6_IF_STATS_GET
  1060. #define gb_ipv6IfStatsInTooBigErrors IPV6_IF_STATS_GET
  1061. #define gb_ipv6IfStatsInNoRoutes IPV6_IF_STATS_GET
  1062. #define gb_ipv6IfStatsInAddrErrors IPV6_IF_STATS_GET
  1063. #define gb_ipv6IfStatsInUnknownProtos IPV6_IF_STATS_GET
  1064. #define gb_ipv6IfStatsInTruncatedPkts IPV6_IF_STATS_GET
  1065. #define gb_ipv6IfStatsInDiscards IPV6_IF_STATS_GET
  1066. #define gb_ipv6IfStatsInDelivers IPV6_IF_STATS_GET
  1067. #define gb_ipv6IfStatsOutForwDatagrams IPV6_IF_STATS_GET
  1068. #define gb_ipv6IfStatsOutRequests IPV6_IF_STATS_GET
  1069. #define gb_ipv6IfStatsOutDiscards IPV6_IF_STATS_GET
  1070. #define gb_ipv6IfStatsOutFragOKs IPV6_IF_STATS_GET
  1071. #define gb_ipv6IfStatsOutFragFails IPV6_IF_STATS_GET
  1072. #define gb_ipv6IfStatsOutFragCreates IPV6_IF_STATS_GET
  1073. #define gb_ipv6IfStatsReasmReqds IPV6_IF_STATS_GET
  1074. #define gb_ipv6IfStatsReasmOKs IPV6_IF_STATS_GET
  1075. #define gb_ipv6IfStatsReasmFails IPV6_IF_STATS_GET
  1076. #define gb_ipv6IfStatsInMcastPkts IPV6_IF_STATS_GET
  1077. #define gb_ipv6IfStatsOutMcastPkts IPV6_IF_STATS_GET
  1078. typedef struct _IPV6_ADDR_PREFIX_GET
  1079. {
  1080. AsnAny ipv6IfIndex;
  1081. AsnAny ipv6AddrPrefix;
  1082. AsnAny ipv6AddrPrefixLength;
  1083. AsnAny ipv6AddrPrefixOnLinkFlag;
  1084. AsnAny ipv6AddrPrefixAutonomousFlag;
  1085. AsnAny ipv6AddrPrefixAdvPreferredLifetime;
  1086. AsnAny ipv6AddrPrefixAdvValidLifetime;
  1087. IN6_ADDR ipv6AddrPrefixInfo;
  1088. }IPV6_ADDR_PREFIX_GET, *PIPV6_ADDR_PREFIX_GET;
  1089. UINT
  1090. MibGetIpv6AddrPrefixEntry(
  1091. UINT actionId,
  1092. AsnAny *objectArray,
  1093. UINT *errorIndex
  1094. );
  1095. #define gf_ipv6AddrPrefix MibGetIpv6AddrPrefixEntry
  1096. #define gf_ipv6AddrPrefixLength MibGetIpv6AddrPrefixEntry
  1097. #define gf_ipv6AddrPrefixOnLinkFlag MibGetIpv6AddrPrefixEntry
  1098. #define gf_ipv6AddrPrefixAutonomousFlag MibGetIpv6AddrPrefixEntry
  1099. #define gf_ipv6AddrPrefixAdvPreferredLifetime MibGetIpv6AddrPrefixEntry
  1100. #define gf_ipv6AddrPrefixAdvValidLifetime MibGetIpv6AddrPrefixEntry
  1101. #define gb_ipv6AddrPrefix IPV6_ADDR_PREFIX_GET
  1102. #define gb_ipv6AddrPrefixLength IPV6_ADDR_PREFIX_GET
  1103. #define gb_ipv6AddrPrefixOnLinkFlag IPV6_ADDR_PREFIX_GET
  1104. #define gb_ipv6AddrPrefixAutonomousFlag IPV6_ADDR_PREFIX_GET
  1105. #define gb_ipv6AddrPrefixAdvPreferredLifetime IPV6_ADDR_PREFIX_GET
  1106. #define gb_ipv6AddrPrefixAdvValidLifetime IPV6_ADDR_PREFIX_GET
  1107. typedef struct _IPV6_ADDR_GET
  1108. {
  1109. AsnAny ipv6IfIndex;
  1110. AsnAny ipv6AddrAddress;
  1111. AsnAny ipv6AddrPfxLength;
  1112. AsnAny ipv6AddrType;
  1113. AsnAny ipv6AddrAnycastFlag;
  1114. AsnAny ipv6AddrStatus;
  1115. IN6_ADDR ipv6AddrAddressInfo;
  1116. }IPV6_ADDR_GET, *PIPV6_ADDR_GET;
  1117. UINT
  1118. MibGetIpv6AddrEntry(
  1119. UINT actionId,
  1120. AsnAny *objectArray,
  1121. UINT *errorIndex
  1122. );
  1123. #define gf_ipv6AddrAddress MibGetIpv6AddrEntry
  1124. #define gf_ipv6AddrPfxLength MibGetIpv6AddrEntry
  1125. #define gf_ipv6AddrType MibGetIpv6AddrEntry
  1126. #define gf_ipv6AddrAnycastFlag MibGetIpv6AddrEntry
  1127. #define gf_ipv6AddrStatus MibGetIpv6AddrEntry
  1128. #define gb_ipv6AddrAddress IPV6_ADDR_GET
  1129. #define gb_ipv6AddrPfxLength IPV6_ADDR_GET
  1130. #define gb_ipv6AddrType IPV6_ADDR_GET
  1131. #define gb_ipv6AddrAnycastFlag IPV6_ADDR_GET
  1132. #define gb_ipv6AddrStatus IPV6_ADDR_GET
  1133. typedef struct _IPV6_ROUTE_GET
  1134. {
  1135. AsnAny ipv6RouteDest;
  1136. AsnAny ipv6RoutePfxLength;
  1137. AsnAny ipv6RouteIndex;
  1138. AsnAny ipv6RouteIfIndex;
  1139. AsnAny ipv6RouteNextHop;
  1140. AsnAny ipv6RouteType;
  1141. AsnAny ipv6RouteProtocol;
  1142. AsnAny ipv6RoutePolicy;
  1143. AsnAny ipv6RouteAge;
  1144. AsnAny ipv6RouteNextHopRDI;
  1145. AsnAny ipv6RouteMetric;
  1146. AsnAny ipv6RouteWeight;
  1147. AsnAny ipv6RouteInfo;
  1148. AsnAny ipv6RouteValid;
  1149. IN6_ADDR ipv6RouteDestInfo;
  1150. IN6_ADDR ipv6RouteNextHopInfo;
  1151. }IPV6_ROUTE_GET, *PIPV6_ROUTE_GET;
  1152. UINT
  1153. MibGetIpv6RouteEntry(
  1154. UINT actionId,
  1155. AsnAny *objectArray,
  1156. UINT *errorIndex
  1157. );
  1158. #define gf_ipv6RouteDest MibGetIpv6RouteEntry
  1159. #define gf_ipv6RoutePfxLength MibGetIpv6RouteEntry
  1160. #define gf_ipv6RouteIndex MibGetIpv6RouteEntry
  1161. #define gf_ipv6RouteIfIndex MibGetIpv6RouteEntry
  1162. #define gf_ipv6RouteNextHop MibGetIpv6RouteEntry
  1163. #define gf_ipv6RouteType MibGetIpv6RouteEntry
  1164. #define gf_ipv6RouteProtocol MibGetIpv6RouteEntry
  1165. #define gf_ipv6RoutePolicy MibGetIpv6RouteEntry
  1166. #define gf_ipv6RouteAge MibGetIpv6RouteEntry
  1167. #define gf_ipv6RouteNextHopRDI MibGetIpv6RouteEntry
  1168. #define gf_ipv6RouteMetric MibGetIpv6RouteEntry
  1169. #define gf_ipv6RouteWeight MibGetIpv6RouteEntry
  1170. #define gf_ipv6RouteInfo MibGetIpv6RouteEntry
  1171. #define gf_ipv6RouteValid MibGetIpv6RouteEntry
  1172. #define gb_ipv6RouteDest IPV6_ROUTE_GET
  1173. #define gb_ipv6RoutePfxLength IPV6_ROUTE_GET
  1174. #define gb_ipv6RouteIndex IPV6_ROUTE_GET
  1175. #define gb_ipv6RouteIfIndex IPV6_ROUTE_GET
  1176. #define gb_ipv6RouteNextHop IPV6_ROUTE_GET
  1177. #define gb_ipv6RouteType IPV6_ROUTE_GET
  1178. #define gb_ipv6RouteProtocol IPV6_ROUTE_GET
  1179. #define gb_ipv6RoutePolicy IPV6_ROUTE_GET
  1180. #define gb_ipv6RouteAge IPV6_ROUTE_GET
  1181. #define gb_ipv6RouteNextHopRDI IPV6_ROUTE_GET
  1182. #define gb_ipv6RouteMetric IPV6_ROUTE_GET
  1183. #define gb_ipv6RouteWeight IPV6_ROUTE_GET
  1184. #define gb_ipv6RouteInfo IPV6_ROUTE_GET
  1185. #define gb_ipv6RouteValid IPV6_ROUTE_GET
  1186. typedef struct _IPV6_NET_TO_MEDIA_GET
  1187. {
  1188. AsnAny ipv6IfIndex;
  1189. AsnAny ipv6NetToMediaNetAddress;
  1190. AsnAny ipv6NetToMediaPhysAddress;
  1191. AsnAny ipv6NetToMediaType;
  1192. AsnAny ipv6NetToMediaState;
  1193. AsnAny ipv6NetToMediaLastUpdated;
  1194. AsnAny ipv6NetToMediaValid;
  1195. IN6_ADDR ipv6NetToMediaNetAddressInfo;
  1196. BYTE ipv6NetToMediaPhysAddressInfo[MAX_PHYS_ADDR_LEN];
  1197. }IPV6_NET_TO_MEDIA_GET, *PIPV6_NET_TO_MEDIA_GET;
  1198. UINT
  1199. MibGetIpv6NetToMediaEntry(
  1200. UINT actionId,
  1201. AsnAny *objectArray,
  1202. UINT *errorIndex
  1203. );
  1204. #define gf_ipv6NetToMediaNetAddress MibGetIpv6NetToMediaEntry
  1205. #define gf_ipv6NetToMediaPhysAddress MibGetIpv6NetToMediaEntry
  1206. #define gf_ipv6NetToMediaType MibGetIpv6NetToMediaEntry
  1207. #define gf_ipv6NetToMediaState MibGetIpv6NetToMediaEntry
  1208. #define gf_ipv6NetToMediaLastUpdated MibGetIpv6NetToMediaEntry
  1209. #define gf_ipv6NetToMediaValid MibGetIpv6NetToMediaEntry
  1210. #define gb_ipv6NetToMediaNetAddress IPV6_NET_TO_MEDIA_GET
  1211. #define gb_ipv6NetToMediaPhysAddress IPV6_NET_TO_MEDIA_GET
  1212. #define gb_ipv6NetToMediaType IPV6_NET_TO_MEDIA_GET
  1213. #define gb_ipv6NetToMediaState IPV6_NET_TO_MEDIA_GET
  1214. #define gb_ipv6NetToMediaLastUpdated IPV6_NET_TO_MEDIA_GET
  1215. #define gb_ipv6NetToMediaValid IPV6_NET_TO_MEDIA_GET
  1216. #endif