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.

166 lines
5.2 KiB

  1. /********************************************************************/
  2. /** Microsoft LAN Manager **/
  3. /** Copyright(c) Microsoft Corp., 1990-1992 **/
  4. /********************************************************************/
  5. /* :ts=4 */
  6. //** IPINFO.H - IP SNMP information definitions..
  7. //
  8. // This file contains all of the definitions for IP that are
  9. // related to SNMP information gathering.
  10. #ifndef IPINFO_INCLUDED
  11. #define IPINFO_INCLUDED
  12. #ifndef CTE_TYPEDEFS_DEFINED
  13. #define CTE_TYPEDEFS_DEFINED
  14. typedef unsigned long ulong;
  15. typedef unsigned short ushort;
  16. typedef unsigned char uchar;
  17. typedef unsigned int uint;
  18. #endif // CTE_TYPEDEFS_DEFINED
  19. typedef struct IPSNMPInfo {
  20. ulong ipsi_forwarding;
  21. ulong ipsi_defaultttl;
  22. ulong ipsi_inreceives;
  23. ulong ipsi_inhdrerrors;
  24. ulong ipsi_inaddrerrors;
  25. ulong ipsi_forwdatagrams;
  26. ulong ipsi_inunknownprotos;
  27. ulong ipsi_indiscards;
  28. ulong ipsi_indelivers;
  29. ulong ipsi_outrequests;
  30. ulong ipsi_routingdiscards;
  31. ulong ipsi_outdiscards;
  32. ulong ipsi_outnoroutes;
  33. ulong ipsi_reasmtimeout;
  34. ulong ipsi_reasmreqds;
  35. ulong ipsi_reasmoks;
  36. ulong ipsi_reasmfails;
  37. ulong ipsi_fragoks;
  38. ulong ipsi_fragfails;
  39. ulong ipsi_fragcreates;
  40. ulong ipsi_numif;
  41. ulong ipsi_numaddr;
  42. ulong ipsi_numroutes;
  43. } IPSNMPInfo;
  44. typedef struct ICMPStats {
  45. ulong icmps_msgs;
  46. ulong icmps_errors;
  47. ulong icmps_destunreachs;
  48. ulong icmps_timeexcds;
  49. ulong icmps_parmprobs;
  50. ulong icmps_srcquenchs;
  51. ulong icmps_redirects;
  52. ulong icmps_echos;
  53. ulong icmps_echoreps;
  54. ulong icmps_timestamps;
  55. ulong icmps_timestampreps;
  56. ulong icmps_addrmasks;
  57. ulong icmps_addrmaskreps;
  58. } ICMPStats;
  59. typedef struct ICMPSNMPInfo {
  60. ICMPStats icsi_instats;
  61. ICMPStats icsi_outstats;
  62. } ICMPSNMPInfo;
  63. #define IP_FORWARDING 1
  64. #define IP_NOT_FORWARDING 2
  65. typedef struct IPAddrEntry {
  66. ulong iae_addr;
  67. ulong iae_index;
  68. ulong iae_mask;
  69. ulong iae_bcastaddr;
  70. ulong iae_reasmsize;
  71. ushort iae_context;
  72. ushort iae_pad;
  73. } IPAddrEntry;
  74. typedef struct IPRouteEntry {
  75. ulong ire_dest;
  76. ulong ire_index;
  77. ulong ire_metric1;
  78. ulong ire_metric2;
  79. ulong ire_metric3;
  80. ulong ire_metric4;
  81. ulong ire_nexthop;
  82. ulong ire_type;
  83. ulong ire_proto;
  84. ulong ire_age;
  85. ulong ire_mask;
  86. ulong ire_metric5;
  87. ulong ire_context;
  88. } IPRouteEntry;
  89. typedef struct IPRouteEntry95 {
  90. ulong ire_dest;
  91. ulong ire_index;
  92. ulong ire_metric1;
  93. ulong ire_metric2;
  94. ulong ire_metric3;
  95. ulong ire_metric4;
  96. ulong ire_nexthop;
  97. ulong ire_type;
  98. ulong ire_proto;
  99. ulong ire_age;
  100. ulong ire_mask;
  101. ulong ire_metric5;
  102. } IPRouteEntry95;
  103. typedef struct AddrXlatInfo {
  104. ulong axi_count;
  105. ulong axi_index;
  106. } AddrXlatInfo;
  107. #define IRE_TYPE_OTHER 1
  108. #define IRE_TYPE_INVALID 2
  109. #define IRE_TYPE_DIRECT 3
  110. #define IRE_TYPE_INDIRECT 4
  111. #define IRE_PROTO_OTHER 1
  112. #define IRE_PROTO_LOCAL 2
  113. #define IRE_PROTO_NETMGMT 3
  114. #define IRE_PROTO_ICMP 4
  115. #define IRE_PROTO_EGP 5
  116. #define IRE_PROTO_GGP 6
  117. #define IRE_PROTO_HELLO 7
  118. #define IRE_PROTO_RIP 8
  119. #define IRE_PROTO_IS_IS 9
  120. #define IRE_PROTO_ES_IS 10
  121. #define IRE_PROTO_CISCO 11
  122. #define IRE_PROTO_BBN 12
  123. #define IRE_PROTO_OSPF 13
  124. #define IRE_PROTO_BGP 14
  125. #define IRE_METRIC_UNUSED 0xffffffff
  126. #define IP_MIB_STATS_ID 1
  127. #define ICMP_MIB_STATS_ID 1
  128. #define AT_MIB_ADDRXLAT_INFO_ID 1
  129. #define AT_MIB_ADDRXLAT_ENTRY_ID 0x101
  130. #define IP_MIB_RTTABLE_ENTRY_ID 0x101
  131. #define IP_MIB_ADDRTABLE_ENTRY_ID 0x102
  132. #define IP_INTFC_FLAG_P2P 1
  133. typedef struct IPInterfaceInfo {
  134. ulong iii_flags;
  135. ulong iii_mtu;
  136. ulong iii_speed;
  137. ulong iii_addrlength;
  138. uchar iii_addr[1];
  139. } IPInterfaceInfo;
  140. #define IP_INTFC_INFO_ID 0x103
  141. #endif // IPINFO_INCLUDED