[1166] | 1 | /**
|
---|
| 2 | * This file has no copyright assigned and is placed in the Public Domain.
|
---|
| 3 | * This file is part of the mingw-w64 runtime package.
|
---|
| 4 | * No warranty is given; refer to the file DISCLAIMER.PD within this package.
|
---|
| 5 | */
|
---|
| 6 | #ifndef __ROUTING_IPRTRMIB_H__
|
---|
| 7 | #define __ROUTING_IPRTRMIB_H__
|
---|
| 8 |
|
---|
| 9 | #include <winapifamily.h>
|
---|
| 10 | #if WINAPI_FAMILY_PARTITION (WINAPI_PARTITION_DESKTOP)
|
---|
| 11 |
|
---|
| 12 | #include <mprapi.h>
|
---|
| 13 | #include <ipmib.h>
|
---|
| 14 | #include <ipifcons.h>
|
---|
| 15 | #include <udpmib.h>
|
---|
| 16 | #include <tcpmib.h>
|
---|
| 17 |
|
---|
| 18 | #define IPRTRMGR_PID 10000
|
---|
| 19 |
|
---|
| 20 | #ifndef ANY_SIZE
|
---|
| 21 | #define ANY_SIZE 1
|
---|
| 22 | #endif
|
---|
| 23 |
|
---|
| 24 | #define TCPIP_OWNING_MODULE_SIZE 16
|
---|
| 25 |
|
---|
| 26 | #define IF_NUMBER 0
|
---|
| 27 | #define IF_TABLE (IF_NUMBER + 1)
|
---|
| 28 | #define IF_ROW (IF_TABLE + 1)
|
---|
| 29 | #define IP_STATS (IF_ROW + 1)
|
---|
| 30 | #define IP_ADDRTABLE (IP_STATS + 1)
|
---|
| 31 | #define IP_ADDRROW (IP_ADDRTABLE + 1)
|
---|
| 32 | #define IP_FORWARDNUMBER (IP_ADDRROW + 1)
|
---|
| 33 | #define IP_FORWARDTABLE (IP_FORWARDNUMBER + 1)
|
---|
| 34 | #define IP_FORWARDROW (IP_FORWARDTABLE + 1)
|
---|
| 35 | #define IP_NETTABLE (IP_FORWARDROW + 1)
|
---|
| 36 | #define IP_NETROW (IP_NETTABLE + 1)
|
---|
| 37 | #define ICMP_STATS (IP_NETROW + 1)
|
---|
| 38 | #define TCP_STATS (ICMP_STATS + 1)
|
---|
| 39 | #define TCP_TABLE (TCP_STATS + 1)
|
---|
| 40 | #define TCP_ROW (TCP_TABLE + 1)
|
---|
| 41 | #define UDP_STATS (TCP_ROW + 1)
|
---|
| 42 | #define UDP_TABLE (UDP_STATS + 1)
|
---|
| 43 | #define UDP_ROW (UDP_TABLE + 1)
|
---|
| 44 | #define MCAST_MFE (UDP_ROW + 1)
|
---|
| 45 | #define MCAST_MFE_STATS (MCAST_MFE + 1)
|
---|
| 46 | #define BEST_IF (MCAST_MFE_STATS + 1)
|
---|
| 47 | #define BEST_ROUTE (BEST_IF + 1)
|
---|
| 48 | #define PROXY_ARP (BEST_ROUTE + 1)
|
---|
| 49 | #define MCAST_IF_ENTRY (PROXY_ARP + 1)
|
---|
| 50 | #define MCAST_GLOBAL (MCAST_IF_ENTRY + 1)
|
---|
| 51 | #define IF_STATUS (MCAST_GLOBAL + 1)
|
---|
| 52 | #define MCAST_BOUNDARY (IF_STATUS + 1)
|
---|
| 53 | #define MCAST_SCOPE (MCAST_BOUNDARY + 1)
|
---|
| 54 | #define DEST_MATCHING (MCAST_SCOPE + 1)
|
---|
| 55 | #define DEST_LONGER (DEST_MATCHING + 1)
|
---|
| 56 | #define DEST_SHORTER (DEST_LONGER + 1)
|
---|
| 57 | #define ROUTE_MATCHING (DEST_SHORTER + 1)
|
---|
| 58 | #define ROUTE_LONGER (ROUTE_MATCHING + 1)
|
---|
| 59 | #define ROUTE_SHORTER (ROUTE_LONGER + 1)
|
---|
| 60 | #define ROUTE_STATE (ROUTE_SHORTER + 1)
|
---|
| 61 | #define MCAST_MFE_STATS_EX (ROUTE_STATE + 1)
|
---|
| 62 | #define IP6_STATS (MCAST_MFE_STATS_EX + 1)
|
---|
| 63 | #define UDP6_STATS (IP6_STATS + 1)
|
---|
| 64 | #define TCP6_STATS (UDP6_STATS + 1)
|
---|
| 65 |
|
---|
| 66 | #define NUMBER_OF_EXPORTED_VARIABLES (TCP6_STATS + 1)
|
---|
| 67 |
|
---|
| 68 | typedef struct _MIB_OPAQUE_QUERY {
|
---|
| 69 | DWORD dwVarId;
|
---|
| 70 | DWORD rgdwVarIndex[ANY_SIZE];
|
---|
| 71 | } MIB_OPAQUE_QUERY,*PMIB_OPAQUE_QUERY;
|
---|
| 72 |
|
---|
| 73 | typedef struct _MIB_IFNUMBER {
|
---|
| 74 | DWORD dwValue;
|
---|
| 75 | } MIB_IFNUMBER,*PMIB_IFNUMBER;
|
---|
| 76 |
|
---|
| 77 | #define MAXLEN_IFDESCR 256
|
---|
| 78 | #define MAXLEN_PHYSADDR 8
|
---|
| 79 |
|
---|
| 80 | typedef struct _MIB_IFROW {
|
---|
| 81 | WCHAR wszName[MAX_INTERFACE_NAME_LEN];
|
---|
| 82 | DWORD dwIndex;
|
---|
| 83 | DWORD dwType;
|
---|
| 84 | DWORD dwMtu;
|
---|
| 85 | DWORD dwSpeed;
|
---|
| 86 | DWORD dwPhysAddrLen;
|
---|
| 87 | BYTE bPhysAddr[MAXLEN_PHYSADDR];
|
---|
| 88 | DWORD dwAdminStatus;
|
---|
| 89 | DWORD dwOperStatus;
|
---|
| 90 | DWORD dwLastChange;
|
---|
| 91 | DWORD dwInOctets;
|
---|
| 92 | DWORD dwInUcastPkts;
|
---|
| 93 | DWORD dwInNUcastPkts;
|
---|
| 94 | DWORD dwInDiscards;
|
---|
| 95 | DWORD dwInErrors;
|
---|
| 96 | DWORD dwInUnknownProtos;
|
---|
| 97 | DWORD dwOutOctets;
|
---|
| 98 | DWORD dwOutUcastPkts;
|
---|
| 99 | DWORD dwOutNUcastPkts;
|
---|
| 100 | DWORD dwOutDiscards;
|
---|
| 101 | DWORD dwOutErrors;
|
---|
| 102 | DWORD dwOutQLen;
|
---|
| 103 | DWORD dwDescrLen;
|
---|
| 104 | BYTE bDescr[MAXLEN_IFDESCR];
|
---|
| 105 | } MIB_IFROW,*PMIB_IFROW;
|
---|
| 106 |
|
---|
| 107 | typedef struct _MIB_IFTABLE {
|
---|
| 108 | DWORD dwNumEntries;
|
---|
| 109 | MIB_IFROW table[ANY_SIZE];
|
---|
| 110 | } MIB_IFTABLE,*PMIB_IFTABLE;
|
---|
| 111 |
|
---|
| 112 | #define SIZEOF_IFTABLE(X) (FIELD_OFFSET(MIB_IFTABLE,table[0]) + ((X) *sizeof(MIB_IFROW)) + ALIGN_SIZE)
|
---|
| 113 |
|
---|
| 114 | typedef struct _MIBICMPSTATS {
|
---|
| 115 | DWORD dwMsgs;
|
---|
| 116 | DWORD dwErrors;
|
---|
| 117 | DWORD dwDestUnreachs;
|
---|
| 118 | DWORD dwTimeExcds;
|
---|
| 119 | DWORD dwParmProbs;
|
---|
| 120 | DWORD dwSrcQuenchs;
|
---|
| 121 | DWORD dwRedirects;
|
---|
| 122 | DWORD dwEchos;
|
---|
| 123 | DWORD dwEchoReps;
|
---|
| 124 | DWORD dwTimestamps;
|
---|
| 125 | DWORD dwTimestampReps;
|
---|
| 126 | DWORD dwAddrMasks;
|
---|
| 127 | DWORD dwAddrMaskReps;
|
---|
| 128 | } MIBICMPSTATS,*PMIBICMPSTATS;
|
---|
| 129 |
|
---|
| 130 | typedef struct _MIBICMPINFO {
|
---|
| 131 | MIBICMPSTATS icmpInStats;
|
---|
| 132 | MIBICMPSTATS icmpOutStats;
|
---|
| 133 | } MIBICMPINFO;
|
---|
| 134 |
|
---|
| 135 | typedef struct _MIB_ICMP {
|
---|
| 136 | MIBICMPINFO stats;
|
---|
| 137 | } MIB_ICMP,*PMIB_ICMP;
|
---|
| 138 |
|
---|
| 139 | typedef enum {
|
---|
| 140 | ICMP6_DST_UNREACH = 1,ICMP6_PACKET_TOO_BIG = 2,ICMP6_TIME_EXCEEDED = 3,ICMP6_PARAM_PROB = 4,ICMP6_ECHO_REQUEST = 128,
|
---|
| 141 | ICMP6_ECHO_REPLY = 129,ICMP6_MEMBERSHIP_QUERY = 130,ICMP6_MEMBERSHIP_REPORT = 131,ICMP6_MEMBERSHIP_REDUCTION = 132,
|
---|
| 142 | ND_ROUTER_SOLICIT = 133,ND_ROUTER_ADVERT = 134,ND_NEIGHBOR_SOLICIT = 135,ND_NEIGHBOR_ADVERT = 136,ND_REDIRECT = 137
|
---|
| 143 | } ICMP6_TYPE,*PICMP6_TYPE;
|
---|
| 144 |
|
---|
| 145 | typedef enum {
|
---|
| 146 | ICMP4_ECHO_REPLY = 0,ICMP4_DST_UNREACH = 3,ICMP4_SOURCE_QUENCH = 4,ICMP4_REDIRECT = 5,ICMP4_ECHO_REQUEST = 8,ICMP4_ROUTER_ADVERT = 9,
|
---|
| 147 | ICMP4_ROUTER_SOLICIT = 10,ICMP4_TIME_EXCEEDED = 11,ICMP4_PARAM_PROB = 12,ICMP4_TIMESTAMP_REQUEST = 13,ICMP4_TIMESTAMP_REPLY = 14,
|
---|
| 148 | ICMP4_MASK_REQUEST = 17,ICMP4_MASK_REPLY = 18
|
---|
| 149 | } ICMP4_TYPE,*PICMP4_TYPE;
|
---|
| 150 |
|
---|
| 151 | typedef struct _MIBICMPSTATS_EX {
|
---|
| 152 | DWORD dwMsgs;
|
---|
| 153 | DWORD dwErrors;
|
---|
| 154 | DWORD rgdwTypeCount[256];
|
---|
| 155 | } MIBICMPSTATS_EX,*PMIBICMPSTATS_EX;
|
---|
| 156 |
|
---|
| 157 | typedef struct _MIB_ICMP_EX {
|
---|
| 158 | MIBICMPSTATS_EX icmpInStats;
|
---|
| 159 | MIBICMPSTATS_EX icmpOutStats;
|
---|
| 160 | } MIB_ICMP_EX,*PMIB_ICMP_EX;
|
---|
| 161 |
|
---|
| 162 | typedef struct _MIB_UDPSTATS {
|
---|
| 163 | DWORD dwInDatagrams;
|
---|
| 164 | DWORD dwNoPorts;
|
---|
| 165 | DWORD dwInErrors;
|
---|
| 166 | DWORD dwOutDatagrams;
|
---|
| 167 | DWORD dwNumAddrs;
|
---|
| 168 | } MIB_UDPSTATS,*PMIB_UDPSTATS;
|
---|
| 169 |
|
---|
| 170 | typedef struct _MIB_UDPROW {
|
---|
| 171 | DWORD dwLocalAddr;
|
---|
| 172 | DWORD dwLocalPort;
|
---|
| 173 | } MIB_UDPROW,*PMIB_UDPROW;
|
---|
| 174 |
|
---|
| 175 | typedef MIB_UDPROW MIB_UDPROW_BASIC,*PMIB_UDPROW_BASIC;
|
---|
| 176 |
|
---|
| 177 | typedef struct _MIB_UDPROW_OWNER_PID {
|
---|
| 178 | DWORD dwLocalAddr;
|
---|
| 179 | DWORD dwLocalPort;
|
---|
| 180 | DWORD dwOwningPid;
|
---|
| 181 | } MIB_UDPROW_OWNER_PID,*PMIB_UDPROW_OWNER_PID;
|
---|
| 182 |
|
---|
| 183 | typedef struct _MIB_UDPROW_OWNER_MODULE {
|
---|
| 184 | DWORD dwLocalAddr;
|
---|
| 185 | DWORD dwLocalPort;
|
---|
| 186 | DWORD dwOwningPid;
|
---|
| 187 | LARGE_INTEGER liCreateTimestamp;
|
---|
| 188 | __C89_NAMELESS union {
|
---|
| 189 | __C89_NAMELESS struct {
|
---|
| 190 | DWORD SpecificPortBind : 1;
|
---|
| 191 | };
|
---|
| 192 | DWORD dwFlags;
|
---|
| 193 | };
|
---|
| 194 | ULONGLONG OwningModuleInfo[TCPIP_OWNING_MODULE_SIZE];
|
---|
| 195 | } MIB_UDPROW_OWNER_MODULE,*PMIB_UDPROW_OWNER_MODULE;
|
---|
| 196 |
|
---|
| 197 | typedef struct _MIB_UDP6ROW_OWNER_PID {
|
---|
| 198 | UCHAR ucLocalAddr[16];
|
---|
| 199 | DWORD dwLocalScopeId;
|
---|
| 200 | DWORD dwLocalPort;
|
---|
| 201 | DWORD dwOwningPid;
|
---|
| 202 | } MIB_UDP6ROW_OWNER_PID,*PMIB_UDP6ROW_OWNER_PID;
|
---|
| 203 |
|
---|
| 204 | typedef struct _MIB_UDP6ROW_OWNER_MODULE {
|
---|
| 205 | UCHAR ucLocalAddr[16];
|
---|
| 206 | DWORD dwLocalScopeId;
|
---|
| 207 | DWORD dwLocalPort;
|
---|
| 208 | DWORD dwOwningPid;
|
---|
| 209 | LARGE_INTEGER liCreateTimestamp;
|
---|
| 210 | __C89_NAMELESS union {
|
---|
| 211 | __C89_NAMELESS struct {
|
---|
| 212 | DWORD SpecificPortBind : 1;
|
---|
| 213 | };
|
---|
| 214 | DWORD dwFlags;
|
---|
| 215 | };
|
---|
| 216 | ULONGLONG OwningModuleInfo[TCPIP_OWNING_MODULE_SIZE];
|
---|
| 217 | } MIB_UDP6ROW_OWNER_MODULE,*PMIB_UDP6ROW_OWNER_MODULE;
|
---|
| 218 |
|
---|
| 219 | typedef struct _MIB_UDPTABLE {
|
---|
| 220 | DWORD dwNumEntries;
|
---|
| 221 | MIB_UDPROW table[ANY_SIZE];
|
---|
| 222 | } MIB_UDPTABLE,*PMIB_UDPTABLE;
|
---|
| 223 |
|
---|
| 224 | typedef MIB_UDPTABLE MIB_UDPTABLE_BASIC,*PMIB_UDPTABLE_BASIC;
|
---|
| 225 |
|
---|
| 226 | #define SIZEOF_UDPTABLE(X) (FIELD_OFFSET(MIB_UDPTABLE,table[0]) + ((X) *sizeof(MIB_UDPROW)) + ALIGN_SIZE)
|
---|
| 227 | #define SIZEOF_UDPTABLE_BASIC(X) SIZEOF_UDPTABLE(X)
|
---|
| 228 |
|
---|
| 229 | typedef struct _MIB_UDPTABLE_OWNER_PID {
|
---|
| 230 | DWORD dwNumEntries;
|
---|
| 231 | MIB_UDPROW_OWNER_PID table[ANY_SIZE];
|
---|
| 232 | } MIB_UDPTABLE_OWNER_PID,*PMIB_UDPTABLE_OWNER_PID;
|
---|
| 233 |
|
---|
| 234 | #define SIZEOF_UDPTABLE_OWNER_PID(X) (FIELD_OFFSET(MIB_UDPTABLE_OWNER_PID,table[0]) + ((X) *sizeof(MIB_UDPROW_OWNER_PID)) + ALIGN_SIZE)
|
---|
| 235 |
|
---|
| 236 | typedef struct _MIB_UDPTABLE_OWNER_MODULE {
|
---|
| 237 | DWORD dwNumEntries;
|
---|
| 238 | MIB_UDPROW_OWNER_MODULE table[ANY_SIZE];
|
---|
| 239 | } MIB_UDPTABLE_OWNER_MODULE,*PMIB_UDPTABLE_OWNER_MODULE;
|
---|
| 240 |
|
---|
| 241 | #define SIZEOF_UDPTABLE_OWNER_MODULE(X) (FIELD_OFFSET(MIB_UDPTABLE_OWNER_MODULE,table[0]) + ((X) *sizeof(MIB_UDPROW_OWNER_MODULE)) + ALIGN_SIZE)
|
---|
| 242 |
|
---|
| 243 | typedef struct _MIB_UDP6TABLE_OWNER_PID {
|
---|
| 244 | DWORD dwNumEntries;
|
---|
| 245 | MIB_UDP6ROW_OWNER_PID table[ANY_SIZE];
|
---|
| 246 | } MIB_UDP6TABLE_OWNER_PID,*PMIB_UDP6TABLE_OWNER_PID;
|
---|
| 247 |
|
---|
| 248 | #define SIZEOF_UDP6TABLE_OWNER_PID(X) (FIELD_OFFSET(MIB_UDP6TABLE_OWNER_PID,table[0]) + ((X) *sizeof(MIB_UDP6ROW_OWNER_PID)) + ALIGN_SIZE)
|
---|
| 249 |
|
---|
| 250 | typedef struct _MIB_UDP6TABLE_OWNER_MODULE {
|
---|
| 251 | DWORD dwNumEntries;
|
---|
| 252 | MIB_UDP6ROW_OWNER_MODULE table[ANY_SIZE];
|
---|
| 253 | } MIB_UDP6TABLE_OWNER_MODULE,*PMIB_UDP6TABLE_OWNER_MODULE;
|
---|
| 254 |
|
---|
| 255 | #define SIZEOF_UDP6TABLE_OWNER_MODULE(X) (FIELD_OFFSET(MIB_UDP6TABLE_OWNER_MODULE,table[0]) + ((X) *sizeof(MIB_UDP6ROW_OWNER_MODULE)) + ALIGN_SIZE)
|
---|
| 256 |
|
---|
| 257 | typedef struct _MIB_TCPSTATS {
|
---|
| 258 | DWORD dwRtoAlgorithm;
|
---|
| 259 | DWORD dwRtoMin;
|
---|
| 260 | DWORD dwRtoMax;
|
---|
| 261 | DWORD dwMaxConn;
|
---|
| 262 | DWORD dwActiveOpens;
|
---|
| 263 | DWORD dwPassiveOpens;
|
---|
| 264 | DWORD dwAttemptFails;
|
---|
| 265 | DWORD dwEstabResets;
|
---|
| 266 | DWORD dwCurrEstab;
|
---|
| 267 | DWORD dwInSegs;
|
---|
| 268 | DWORD dwOutSegs;
|
---|
| 269 | DWORD dwRetransSegs;
|
---|
| 270 | DWORD dwInErrs;
|
---|
| 271 | DWORD dwOutRsts;
|
---|
| 272 | DWORD dwNumConns;
|
---|
| 273 | } MIB_TCPSTATS,*PMIB_TCPSTATS;
|
---|
| 274 |
|
---|
| 275 | #define MIB_TCP_RTO_OTHER 1
|
---|
| 276 | #define MIB_TCP_RTO_CONSTANT 2
|
---|
| 277 | #define MIB_TCP_RTO_RSRE 3
|
---|
| 278 | #define MIB_TCP_RTO_VANJ 4
|
---|
| 279 |
|
---|
| 280 | #define MIB_TCP_MAXCONN_DYNAMIC (DWORD)-1
|
---|
| 281 |
|
---|
| 282 | typedef enum _TCP_TABLE_CLASS {
|
---|
| 283 | TCP_TABLE_BASIC_LISTENER,
|
---|
| 284 | TCP_TABLE_BASIC_CONNECTIONS,
|
---|
| 285 | TCP_TABLE_BASIC_ALL,
|
---|
| 286 | TCP_TABLE_OWNER_PID_LISTENER,
|
---|
| 287 | TCP_TABLE_OWNER_PID_CONNECTIONS,
|
---|
| 288 | TCP_TABLE_OWNER_PID_ALL,
|
---|
| 289 | TCP_TABLE_OWNER_MODULE_LISTENER,
|
---|
| 290 | TCP_TABLE_OWNER_MODULE_CONNECTIONS,
|
---|
| 291 | TCP_TABLE_OWNER_MODULE_ALL
|
---|
| 292 | } TCP_TABLE_CLASS, *PTCP_TABLE_CLASS;
|
---|
| 293 |
|
---|
| 294 | typedef struct _MIB_TCPROW {
|
---|
| 295 | DWORD dwState;
|
---|
| 296 | DWORD dwLocalAddr;
|
---|
| 297 | DWORD dwLocalPort;
|
---|
| 298 | DWORD dwRemoteAddr;
|
---|
| 299 | DWORD dwRemotePort;
|
---|
| 300 | } MIB_TCPROW,*PMIB_TCPROW;
|
---|
| 301 |
|
---|
| 302 | typedef MIB_TCPROW MIB_TCPROW_BASIC,*PMIB_TCPROW_BASIC;
|
---|
| 303 |
|
---|
| 304 | typedef struct _MIB_TCPROW_OWNER_PID {
|
---|
| 305 | DWORD dwState;
|
---|
| 306 | DWORD dwLocalAddr;
|
---|
| 307 | DWORD dwLocalPort;
|
---|
| 308 | DWORD dwRemoteAddr;
|
---|
| 309 | DWORD dwRemotePort;
|
---|
| 310 | DWORD dwOwningPid;
|
---|
| 311 | } MIB_TCPROW_OWNER_PID,*PMIB_TCPROW_OWNER_PID;
|
---|
| 312 |
|
---|
| 313 | typedef struct _MIB_TCPROW_OWNER_MODULE {
|
---|
| 314 | DWORD dwState;
|
---|
| 315 | DWORD dwLocalAddr;
|
---|
| 316 | DWORD dwLocalPort;
|
---|
| 317 | DWORD dwRemoteAddr;
|
---|
| 318 | DWORD dwRemotePort;
|
---|
| 319 | DWORD dwOwningPid;
|
---|
| 320 | LARGE_INTEGER liCreateTimestamp;
|
---|
| 321 | ULONGLONG OwningModuleInfo[TCPIP_OWNING_MODULE_SIZE];
|
---|
| 322 | } MIB_TCPROW_OWNER_MODULE,*PMIB_TCPROW_OWNER_MODULE;
|
---|
| 323 |
|
---|
| 324 | typedef struct _MIB_TCP6ROW_OWNER_PID {
|
---|
| 325 | UCHAR ucLocalAddr[16];
|
---|
| 326 | DWORD dwLocalScopeId;
|
---|
| 327 | DWORD dwLocalPort;
|
---|
| 328 | UCHAR ucRemoteAddr[16];
|
---|
| 329 | DWORD dwRemoteScopeId;
|
---|
| 330 | DWORD dwRemotePort;
|
---|
| 331 | DWORD dwState;
|
---|
| 332 | DWORD dwOwningPid;
|
---|
| 333 | } MIB_TCP6ROW_OWNER_PID,*PMIB_TCP6ROW_OWNER_PID;
|
---|
| 334 |
|
---|
| 335 | typedef struct _MIB_TCP6ROW_OWNER_MODULE {
|
---|
| 336 | UCHAR ucLocalAddr[16];
|
---|
| 337 | DWORD dwLocalScopeId;
|
---|
| 338 | DWORD dwLocalPort;
|
---|
| 339 | UCHAR ucRemoteAddr[16];
|
---|
| 340 | DWORD dwRemoteScopeId;
|
---|
| 341 | DWORD dwRemotePort;
|
---|
| 342 | DWORD dwState;
|
---|
| 343 | DWORD dwOwningPid;
|
---|
| 344 | LARGE_INTEGER liCreateTimestamp;
|
---|
| 345 | ULONGLONG OwningModuleInfo[TCPIP_OWNING_MODULE_SIZE];
|
---|
| 346 | } MIB_TCP6ROW_OWNER_MODULE,*PMIB_TCP6ROW_OWNER_MODULE;
|
---|
| 347 |
|
---|
| 348 | #define MIB_TCP_STATE_CLOSED 1
|
---|
| 349 | #define MIB_TCP_STATE_LISTEN 2
|
---|
| 350 | #define MIB_TCP_STATE_SYN_SENT 3
|
---|
| 351 | #define MIB_TCP_STATE_SYN_RCVD 4
|
---|
| 352 | #define MIB_TCP_STATE_ESTAB 5
|
---|
| 353 | #define MIB_TCP_STATE_FIN_WAIT1 6
|
---|
| 354 | #define MIB_TCP_STATE_FIN_WAIT2 7
|
---|
| 355 | #define MIB_TCP_STATE_CLOSE_WAIT 8
|
---|
| 356 | #define MIB_TCP_STATE_CLOSING 9
|
---|
| 357 | #define MIB_TCP_STATE_LAST_ACK 10
|
---|
| 358 | #define MIB_TCP_STATE_TIME_WAIT 11
|
---|
| 359 | #define MIB_TCP_STATE_DELETE_TCB 12
|
---|
| 360 |
|
---|
| 361 | typedef struct _MIB_TCPTABLE {
|
---|
| 362 | DWORD dwNumEntries;
|
---|
| 363 | MIB_TCPROW table[ANY_SIZE];
|
---|
| 364 | } MIB_TCPTABLE,*PMIB_TCPTABLE;
|
---|
| 365 |
|
---|
| 366 | typedef MIB_TCPTABLE MIB_TCPTABLE_BASIC,*PMIB_TCPTABLE_BASIC;
|
---|
| 367 |
|
---|
| 368 | #define SIZEOF_TCPTABLE(X) (FIELD_OFFSET(MIB_TCPTABLE,table[0]) + ((X) *sizeof(MIB_TCPROW)) + ALIGN_SIZE)
|
---|
| 369 | #define SIZEOF_TCPTABLE_BASIC(X) SIZEOF_TCPTABLE(X)
|
---|
| 370 |
|
---|
| 371 | typedef struct _MIB_TCPTABLE_OWNER_PID {
|
---|
| 372 | DWORD dwNumEntries;
|
---|
| 373 | MIB_TCPROW_OWNER_PID table[ANY_SIZE];
|
---|
| 374 | } MIB_TCPTABLE_OWNER_PID,*PMIB_TCPTABLE_OWNER_PID;
|
---|
| 375 |
|
---|
| 376 | #define SIZEOF_TCPTABLE_OWNER_PID(X) (FIELD_OFFSET(MIB_TCPTABLE_OWNER_PID,table[0]) + ((X) *sizeof(MIB_TCPROW_OWNER_PID)) + ALIGN_SIZE)
|
---|
| 377 |
|
---|
| 378 | typedef struct _MIB_TCPTABLE_OWNER_MODULE {
|
---|
| 379 | DWORD dwNumEntries;
|
---|
| 380 | MIB_TCPROW_OWNER_MODULE table[ANY_SIZE];
|
---|
| 381 | } MIB_TCPTABLE_OWNER_MODULE,*PMIB_TCPTABLE_OWNER_MODULE;
|
---|
| 382 |
|
---|
| 383 | #define SIZEOF_TCPTABLE_OWNER_MODULE(X) (FIELD_OFFSET(MIB_TCPTABLE_OWNER_MODULE,table[0]) + ((X) *sizeof(MIB_TCPROW_OWNER_MODULE)) + ALIGN_SIZE)
|
---|
| 384 |
|
---|
| 385 | typedef struct _MIB_TCP6TABLE_OWNER_PID {
|
---|
| 386 | DWORD dwNumEntries;
|
---|
| 387 | MIB_TCP6ROW_OWNER_PID table[ANY_SIZE];
|
---|
| 388 | } MIB_TCP6TABLE_OWNER_PID,*PMIB_TCP6TABLE_OWNER_PID;
|
---|
| 389 |
|
---|
| 390 | #define SIZEOF_TCP6TABLE_OWNER_PID(X) (FIELD_OFFSET(MIB_TCP6TABLE_OWNER_PID,table[0]) + ((X) *sizeof(MIB_TCP6ROW_OWNER_PID)) + ALIGN_SIZE)
|
---|
| 391 |
|
---|
| 392 | typedef struct _MIB_TCP6TABLE_OWNER_MODULE {
|
---|
| 393 | DWORD dwNumEntries;
|
---|
| 394 | MIB_TCP6ROW_OWNER_MODULE table[ANY_SIZE];
|
---|
| 395 | } MIB_TCP6TABLE_OWNER_MODULE,*PMIB_TCP6TABLE_OWNER_MODULE;
|
---|
| 396 |
|
---|
| 397 | #define SIZEOF_TCP6TABLE_OWNER_MODULE(X) (FIELD_OFFSET(MIB_TCP6TABLE_OWNER_MODULE,table[0]) + ((X) *sizeof(MIB_TCP6ROW_OWNER_PID)) + ALIGN_SIZE)
|
---|
| 398 |
|
---|
| 399 | #define MIB_SECURITY_TCP_SYN_ATTACK 0x00000001
|
---|
| 400 |
|
---|
| 401 | #define MIB_USE_CURRENT_TTL ((DWORD)-1)
|
---|
| 402 | #define MIB_USE_CURRENT_FORWARDING ((DWORD)-1)
|
---|
| 403 |
|
---|
| 404 | typedef struct _MIB_IPSTATS {
|
---|
| 405 | DWORD dwForwarding;
|
---|
| 406 | DWORD dwDefaultTTL;
|
---|
| 407 | DWORD dwInReceives;
|
---|
| 408 | DWORD dwInHdrErrors;
|
---|
| 409 | DWORD dwInAddrErrors;
|
---|
| 410 | DWORD dwForwDatagrams;
|
---|
| 411 | DWORD dwInUnknownProtos;
|
---|
| 412 | DWORD dwInDiscards;
|
---|
| 413 | DWORD dwInDelivers;
|
---|
| 414 | DWORD dwOutRequests;
|
---|
| 415 | DWORD dwRoutingDiscards;
|
---|
| 416 | DWORD dwOutDiscards;
|
---|
| 417 | DWORD dwOutNoRoutes;
|
---|
| 418 | DWORD dwReasmTimeout;
|
---|
| 419 | DWORD dwReasmReqds;
|
---|
| 420 | DWORD dwReasmOks;
|
---|
| 421 | DWORD dwReasmFails;
|
---|
| 422 | DWORD dwFragOks;
|
---|
| 423 | DWORD dwFragFails;
|
---|
| 424 | DWORD dwFragCreates;
|
---|
| 425 | DWORD dwNumIf;
|
---|
| 426 | DWORD dwNumAddr;
|
---|
| 427 | DWORD dwNumRoutes;
|
---|
| 428 | } MIB_IPSTATS,*PMIB_IPSTATS;
|
---|
| 429 |
|
---|
| 430 | #define MIB_IP_FORWARDING 1
|
---|
| 431 | #define MIB_IP_NOT_FORWARDING 2
|
---|
| 432 |
|
---|
| 433 | #define MIB_IPADDR_PRIMARY 0x0001
|
---|
| 434 | #define MIB_IPADDR_DYNAMIC 0x0004
|
---|
| 435 | #define MIB_IPADDR_DISCONNECTED 0x0008
|
---|
| 436 | #define MIB_IPADDR_DELETED 0x0040
|
---|
| 437 | #define MIB_IPADDR_TRANSIENT 0x0080
|
---|
| 438 |
|
---|
| 439 | typedef struct _MIB_IPADDRROW {
|
---|
| 440 | DWORD dwAddr;
|
---|
| 441 | DWORD dwIndex;
|
---|
| 442 | DWORD dwMask;
|
---|
| 443 | DWORD dwBCastAddr;
|
---|
| 444 | DWORD dwReasmSize;
|
---|
| 445 | unsigned short unused1;
|
---|
| 446 | unsigned short wType;
|
---|
| 447 | } MIB_IPADDRROW,*PMIB_IPADDRROW;
|
---|
| 448 |
|
---|
| 449 | typedef struct _MIB_IPADDRTABLE {
|
---|
| 450 | DWORD dwNumEntries;
|
---|
| 451 | MIB_IPADDRROW table[ANY_SIZE];
|
---|
| 452 | } MIB_IPADDRTABLE,*PMIB_IPADDRTABLE;
|
---|
| 453 |
|
---|
| 454 | #define SIZEOF_IPADDRTABLE(X) (FIELD_OFFSET(MIB_IPADDRTABLE,table[0]) + ((X) *sizeof(MIB_IPADDRROW)) + ALIGN_SIZE)
|
---|
| 455 |
|
---|
| 456 | typedef struct _MIB_IPFORWARDNUMBER {
|
---|
| 457 | DWORD dwValue;
|
---|
| 458 | } MIB_IPFORWARDNUMBER,*PMIB_IPFORWARDNUMBER;
|
---|
| 459 |
|
---|
| 460 | typedef struct _MIB_IPFORWARDROW {
|
---|
| 461 | DWORD dwForwardDest;
|
---|
| 462 | DWORD dwForwardMask;
|
---|
| 463 | DWORD dwForwardPolicy;
|
---|
| 464 | DWORD dwForwardNextHop;
|
---|
| 465 | DWORD dwForwardIfIndex;
|
---|
| 466 | DWORD dwForwardType;
|
---|
| 467 | DWORD dwForwardProto;
|
---|
| 468 | DWORD dwForwardAge;
|
---|
| 469 | DWORD dwForwardNextHopAS;
|
---|
| 470 | DWORD dwForwardMetric1;
|
---|
| 471 | DWORD dwForwardMetric2;
|
---|
| 472 | DWORD dwForwardMetric3;
|
---|
| 473 | DWORD dwForwardMetric4;
|
---|
| 474 | DWORD dwForwardMetric5;
|
---|
| 475 | } MIB_IPFORWARDROW,*PMIB_IPFORWARDROW;
|
---|
| 476 |
|
---|
| 477 | #define MIB_IPROUTE_TYPE_OTHER 1
|
---|
| 478 | #define MIB_IPROUTE_TYPE_INVALID 2
|
---|
| 479 | #define MIB_IPROUTE_TYPE_DIRECT 3
|
---|
| 480 | #define MIB_IPROUTE_TYPE_INDIRECT 4
|
---|
| 481 |
|
---|
| 482 | #define MIB_IPROUTE_METRIC_UNUSED (DWORD)-1
|
---|
| 483 |
|
---|
| 484 | #define MIB_IPPROTO_OTHER 1
|
---|
| 485 | #define MIB_IPPROTO_LOCAL 2
|
---|
| 486 | #define MIB_IPPROTO_NETMGMT 3
|
---|
| 487 | #define MIB_IPPROTO_ICMP 4
|
---|
| 488 | #define MIB_IPPROTO_EGP 5
|
---|
| 489 | #define MIB_IPPROTO_GGP 6
|
---|
| 490 | #define MIB_IPPROTO_HELLO 7
|
---|
| 491 | #define MIB_IPPROTO_RIP 8
|
---|
| 492 | #define MIB_IPPROTO_IS_IS 9
|
---|
| 493 | #define MIB_IPPROTO_ES_IS 10
|
---|
| 494 | #define MIB_IPPROTO_CISCO 11
|
---|
| 495 | #define MIB_IPPROTO_BBN 12
|
---|
| 496 | #define MIB_IPPROTO_OSPF 13
|
---|
| 497 | #define MIB_IPPROTO_BGP 14
|
---|
| 498 |
|
---|
| 499 | #define MIB_IPPROTO_NT_AUTOSTATIC 10002
|
---|
| 500 | #define MIB_IPPROTO_NT_STATIC 10006
|
---|
| 501 | #define MIB_IPPROTO_NT_STATIC_NON_DOD 10007
|
---|
| 502 |
|
---|
| 503 | typedef struct _MIB_IPFORWARDTABLE {
|
---|
| 504 | DWORD dwNumEntries;
|
---|
| 505 | MIB_IPFORWARDROW table[ANY_SIZE];
|
---|
| 506 | } MIB_IPFORWARDTABLE,*PMIB_IPFORWARDTABLE;
|
---|
| 507 |
|
---|
| 508 | #define SIZEOF_IPFORWARDTABLE(X) (FIELD_OFFSET(MIB_IPFORWARDTABLE,table[0]) + ((X) *sizeof(MIB_IPFORWARDROW)) + ALIGN_SIZE)
|
---|
| 509 |
|
---|
| 510 | typedef struct _MIB_IPNETROW {
|
---|
| 511 | DWORD dwIndex;
|
---|
| 512 | DWORD dwPhysAddrLen;
|
---|
| 513 | BYTE bPhysAddr[MAXLEN_PHYSADDR];
|
---|
| 514 | DWORD dwAddr;
|
---|
| 515 | DWORD dwType;
|
---|
| 516 | } MIB_IPNETROW,*PMIB_IPNETROW;
|
---|
| 517 |
|
---|
| 518 | #define MIB_IPNET_TYPE_OTHER 1
|
---|
| 519 | #define MIB_IPNET_TYPE_INVALID 2
|
---|
| 520 | #define MIB_IPNET_TYPE_DYNAMIC 3
|
---|
| 521 | #define MIB_IPNET_TYPE_STATIC 4
|
---|
| 522 |
|
---|
| 523 | typedef struct _MIB_IPNETTABLE {
|
---|
| 524 | DWORD dwNumEntries;
|
---|
| 525 | MIB_IPNETROW table[ANY_SIZE];
|
---|
| 526 | } MIB_IPNETTABLE,*PMIB_IPNETTABLE;
|
---|
| 527 |
|
---|
| 528 | #define SIZEOF_IPNETTABLE(X) (FIELD_OFFSET(MIB_IPNETTABLE,table[0]) + ((X) *sizeof(MIB_IPNETROW)) + ALIGN_SIZE)
|
---|
| 529 |
|
---|
| 530 | typedef struct _MIB_IPMCAST_OIF {
|
---|
| 531 | DWORD dwOutIfIndex;
|
---|
| 532 | DWORD dwNextHopAddr;
|
---|
| 533 | DWORD dwReserved;
|
---|
| 534 | DWORD dwReserved1;
|
---|
| 535 | } MIB_IPMCAST_OIF,*PMIB_IPMCAST_OIF;
|
---|
| 536 |
|
---|
| 537 | typedef struct _MIB_IPMCAST_MFE {
|
---|
| 538 | DWORD dwGroup;
|
---|
| 539 | DWORD dwSource;
|
---|
| 540 | DWORD dwSrcMask;
|
---|
| 541 | DWORD dwUpStrmNgbr;
|
---|
| 542 | DWORD dwInIfIndex;
|
---|
| 543 | DWORD dwInIfProtocol;
|
---|
| 544 | DWORD dwRouteProtocol;
|
---|
| 545 | DWORD dwRouteNetwork;
|
---|
| 546 | DWORD dwRouteMask;
|
---|
| 547 | ULONG ulUpTime;
|
---|
| 548 | ULONG ulExpiryTime;
|
---|
| 549 | ULONG ulTimeOut;
|
---|
| 550 | ULONG ulNumOutIf;
|
---|
| 551 | DWORD fFlags;
|
---|
| 552 | DWORD dwReserved;
|
---|
| 553 | MIB_IPMCAST_OIF rgmioOutInfo[ANY_SIZE];
|
---|
| 554 | } MIB_IPMCAST_MFE,*PMIB_IPMCAST_MFE;
|
---|
| 555 |
|
---|
| 556 | typedef struct _MIB_MFE_TABLE {
|
---|
| 557 | DWORD dwNumEntries;
|
---|
| 558 | MIB_IPMCAST_MFE table[ANY_SIZE];
|
---|
| 559 | } MIB_MFE_TABLE,*PMIB_MFE_TABLE;
|
---|
| 560 |
|
---|
| 561 | #define SIZEOF_BASIC_MIB_MFE (ULONG)(FIELD_OFFSET(MIB_IPMCAST_MFE,rgmioOutInfo[0]))
|
---|
| 562 |
|
---|
| 563 | #define SIZEOF_MIB_MFE(X) (SIZEOF_BASIC_MIB_MFE + ((X) *sizeof(MIB_IPMCAST_OIF)))
|
---|
| 564 |
|
---|
| 565 | typedef struct _MIB_IPMCAST_OIF_STATS {
|
---|
| 566 | DWORD dwOutIfIndex;
|
---|
| 567 | DWORD dwNextHopAddr;
|
---|
| 568 | DWORD dwDialContext;
|
---|
| 569 | ULONG ulTtlTooLow;
|
---|
| 570 | ULONG ulFragNeeded;
|
---|
| 571 | ULONG ulOutPackets;
|
---|
| 572 | ULONG ulOutDiscards;
|
---|
| 573 | } MIB_IPMCAST_OIF_STATS,*PMIB_IPMCAST_OIF_STATS;
|
---|
| 574 |
|
---|
| 575 | typedef struct _MIB_IPMCAST_MFE_STATS {
|
---|
| 576 | DWORD dwGroup;
|
---|
| 577 | DWORD dwSource;
|
---|
| 578 | DWORD dwSrcMask;
|
---|
| 579 | DWORD dwUpStrmNgbr;
|
---|
| 580 | DWORD dwInIfIndex;
|
---|
| 581 | DWORD dwInIfProtocol;
|
---|
| 582 | DWORD dwRouteProtocol;
|
---|
| 583 | DWORD dwRouteNetwork;
|
---|
| 584 | DWORD dwRouteMask;
|
---|
| 585 | ULONG ulUpTime;
|
---|
| 586 | ULONG ulExpiryTime;
|
---|
| 587 | ULONG ulNumOutIf;
|
---|
| 588 | ULONG ulInPkts;
|
---|
| 589 | ULONG ulInOctets;
|
---|
| 590 | ULONG ulPktsDifferentIf;
|
---|
| 591 | ULONG ulQueueOverflow;
|
---|
| 592 | MIB_IPMCAST_OIF_STATS rgmiosOutStats[ANY_SIZE];
|
---|
| 593 | } MIB_IPMCAST_MFE_STATS,*PMIB_IPMCAST_MFE_STATS;
|
---|
| 594 |
|
---|
| 595 | typedef struct _MIB_MFE_STATS_TABLE {
|
---|
| 596 | DWORD dwNumEntries;
|
---|
| 597 | MIB_IPMCAST_MFE_STATS table[ANY_SIZE];
|
---|
| 598 | } MIB_MFE_STATS_TABLE,*PMIB_MFE_STATS_TABLE;
|
---|
| 599 |
|
---|
| 600 | #define SIZEOF_BASIC_MIB_MFE_STATS (ULONG)(FIELD_OFFSET(MIB_IPMCAST_MFE_STATS,rgmiosOutStats[0]))
|
---|
| 601 | #define SIZEOF_MIB_MFE_STATS(X) (SIZEOF_BASIC_MIB_MFE_STATS + ((X) *sizeof(MIB_IPMCAST_OIF_STATS)))
|
---|
| 602 |
|
---|
| 603 | typedef struct _MIB_IPMCAST_MFE_STATS_EX {
|
---|
| 604 | DWORD dwGroup;
|
---|
| 605 | DWORD dwSource;
|
---|
| 606 | DWORD dwSrcMask;
|
---|
| 607 | DWORD dwUpStrmNgbr;
|
---|
| 608 | DWORD dwInIfIndex;
|
---|
| 609 | DWORD dwInIfProtocol;
|
---|
| 610 | DWORD dwRouteProtocol;
|
---|
| 611 | DWORD dwRouteNetwork;
|
---|
| 612 | DWORD dwRouteMask;
|
---|
| 613 | ULONG ulUpTime;
|
---|
| 614 | ULONG ulExpiryTime;
|
---|
| 615 | ULONG ulNumOutIf;
|
---|
| 616 | ULONG ulInPkts;
|
---|
| 617 | ULONG ulInOctets;
|
---|
| 618 | ULONG ulPktsDifferentIf;
|
---|
| 619 | ULONG ulQueueOverflow;
|
---|
| 620 | ULONG ulUninitMfe;
|
---|
| 621 | ULONG ulNegativeMfe;
|
---|
| 622 | ULONG ulInDiscards;
|
---|
| 623 | ULONG ulInHdrErrors;
|
---|
| 624 | ULONG ulTotalOutPackets;
|
---|
| 625 | MIB_IPMCAST_OIF_STATS rgmiosOutStats[ANY_SIZE];
|
---|
| 626 | } MIB_IPMCAST_MFE_STATS_EX,*PMIB_IPMCAST_MFE_STATS_EX;
|
---|
| 627 |
|
---|
| 628 | typedef struct _MIB_MFE_STATS_TABLE_EX {
|
---|
| 629 | DWORD dwNumEntries;
|
---|
| 630 | MIB_IPMCAST_MFE_STATS_EX table[ANY_SIZE];
|
---|
| 631 | } MIB_MFE_STATS_TABLE_EX,*PMIB_MFE_STATS_TABLE_EX;
|
---|
| 632 |
|
---|
| 633 | #define SIZEOF_BASIC_MIB_MFE_STATS_EX (ULONG)(FIELD_OFFSET(MIB_IPMCAST_MFE_STATS_EX,rgmiosOutStats[0]))
|
---|
| 634 | #define SIZEOF_MIB_MFE_STATS_EX(X) (SIZEOF_BASIC_MIB_MFE_STATS_EX + ((X) *sizeof(MIB_IPMCAST_OIF_STATS)))
|
---|
| 635 |
|
---|
| 636 | typedef struct _MIB_IPMCAST_GLOBAL {
|
---|
| 637 | DWORD dwEnable;
|
---|
| 638 | } MIB_IPMCAST_GLOBAL,*PMIB_IPMCAST_GLOBAL;
|
---|
| 639 |
|
---|
| 640 | typedef struct _MIB_IPMCAST_IF_ENTRY {
|
---|
| 641 | DWORD dwIfIndex;
|
---|
| 642 | DWORD dwTtl;
|
---|
| 643 | DWORD dwProtocol;
|
---|
| 644 | DWORD dwRateLimit;
|
---|
| 645 | ULONG ulInMcastOctets;
|
---|
| 646 | ULONG ulOutMcastOctets;
|
---|
| 647 | } MIB_IPMCAST_IF_ENTRY,*PMIB_IPMCAST_IF_ENTRY;
|
---|
| 648 |
|
---|
| 649 | typedef struct _MIB_IPMCAST_IF_TABLE {
|
---|
| 650 | DWORD dwNumEntries;
|
---|
| 651 | MIB_IPMCAST_IF_ENTRY table[ANY_SIZE];
|
---|
| 652 | } MIB_IPMCAST_IF_TABLE,*PMIB_IPMCAST_IF_TABLE;
|
---|
| 653 |
|
---|
| 654 | #define SIZEOF_MCAST_IF_TABLE(X) (FIELD_OFFSET(MIB_IPMCAST_IF_TABLE,table[0]) + ((X) *sizeof(MIB_IPMCAST_IF_ENTRY)) + ALIGN_SIZE)
|
---|
| 655 |
|
---|
| 656 | typedef struct _MIB_IPMCAST_BOUNDARY {
|
---|
| 657 | DWORD dwIfIndex;
|
---|
| 658 | DWORD dwGroupAddress;
|
---|
| 659 | DWORD dwGroupMask;
|
---|
| 660 | DWORD dwStatus;
|
---|
| 661 | } MIB_IPMCAST_BOUNDARY,*PMIB_IPMCAST_BOUNDARY;
|
---|
| 662 |
|
---|
| 663 | typedef struct _MIB_IPMCAST_BOUNDARY_TABLE {
|
---|
| 664 | DWORD dwNumEntries;
|
---|
| 665 | MIB_IPMCAST_BOUNDARY table[ANY_SIZE];
|
---|
| 666 | } MIB_IPMCAST_BOUNDARY_TABLE,*PMIB_IPMCAST_BOUNDARY_TABLE;
|
---|
| 667 |
|
---|
| 668 | #define SIZEOF_BOUNDARY_TABLE(X) (FIELD_OFFSET(MIB_IPMCAST_BOUNDARY_TABLE,table[0]) + ((X) *sizeof(MIB_IPMCAST_BOUNDARY)) + ALIGN_SIZE)
|
---|
| 669 |
|
---|
| 670 | typedef struct {
|
---|
| 671 | DWORD dwGroupAddress;
|
---|
| 672 | DWORD dwGroupMask;
|
---|
| 673 | } MIB_BOUNDARYROW,*PMIB_BOUNDARYROW;
|
---|
| 674 |
|
---|
| 675 | typedef struct {
|
---|
| 676 | DWORD dwTtl;
|
---|
| 677 | DWORD dwRateLimit;
|
---|
| 678 | } MIB_MCAST_LIMIT_ROW,*PMIB_MCAST_LIMIT_ROW;
|
---|
| 679 |
|
---|
| 680 | #define MAX_SCOPE_NAME_LEN 255
|
---|
| 681 |
|
---|
| 682 | #define SN_UNICODE
|
---|
| 683 | typedef WCHAR SN_CHAR;
|
---|
| 684 | typedef SN_CHAR SCOPE_NAME_BUFFER[MAX_SCOPE_NAME_LEN+1],*SCOPE_NAME;
|
---|
| 685 |
|
---|
| 686 | typedef struct _MIB_IPMCAST_SCOPE {
|
---|
| 687 | DWORD dwGroupAddress;
|
---|
| 688 | DWORD dwGroupMask;
|
---|
| 689 | SCOPE_NAME_BUFFER snNameBuffer;
|
---|
| 690 | DWORD dwStatus;
|
---|
| 691 | } MIB_IPMCAST_SCOPE,*PMIB_IPMCAST_SCOPE;
|
---|
| 692 |
|
---|
| 693 | typedef struct _MIB_IPDESTROW {
|
---|
| 694 | #ifdef __cplusplus
|
---|
| 695 | MIB_IPFORWARDROW ForwardRow;
|
---|
| 696 | #else
|
---|
| 697 | __C89_NAMELESS union {
|
---|
| 698 | DWORD dwForwardDest;
|
---|
| 699 | DWORD dwForwardMask;
|
---|
| 700 | DWORD dwForwardPolicy;
|
---|
| 701 | DWORD dwForwardNextHop;
|
---|
| 702 | DWORD dwForwardIfIndex;
|
---|
| 703 | DWORD dwForwardType;
|
---|
| 704 | DWORD dwForwardProto;
|
---|
| 705 | DWORD dwForwardAge;
|
---|
| 706 | DWORD dwForwardNextHopAS;
|
---|
| 707 | DWORD dwForwardMetric1;
|
---|
| 708 | DWORD dwForwardMetric2;
|
---|
| 709 | DWORD dwForwardMetric3;
|
---|
| 710 | DWORD dwForwardMetric4;
|
---|
| 711 | DWORD dwForwardMetric5;
|
---|
| 712 | }; /* see MIB_IPFORWARDROW */
|
---|
| 713 | #endif
|
---|
| 714 | DWORD dwForwardPreference;
|
---|
| 715 | DWORD dwForwardViewSet;
|
---|
| 716 | } MIB_IPDESTROW,*PMIB_IPDESTROW;
|
---|
| 717 |
|
---|
| 718 | typedef struct _MIB_IPDESTTABLE {
|
---|
| 719 | DWORD dwNumEntries;
|
---|
| 720 | MIB_IPDESTROW table[ANY_SIZE];
|
---|
| 721 | } MIB_IPDESTTABLE,*PMIB_IPDESTTABLE;
|
---|
| 722 |
|
---|
| 723 | typedef struct _MIB_BEST_IF {
|
---|
| 724 | DWORD dwDestAddr;
|
---|
| 725 | DWORD dwIfIndex;
|
---|
| 726 | } MIB_BEST_IF,*PMIB_BEST_IF;
|
---|
| 727 |
|
---|
| 728 | typedef struct _MIB_PROXYARP {
|
---|
| 729 | DWORD dwAddress;
|
---|
| 730 | DWORD dwMask;
|
---|
| 731 | DWORD dwIfIndex;
|
---|
| 732 | } MIB_PROXYARP,*PMIB_PROXYARP;
|
---|
| 733 |
|
---|
| 734 | typedef struct _MIB_IFSTATUS {
|
---|
| 735 | DWORD dwIfIndex;
|
---|
| 736 | DWORD dwAdminStatus;
|
---|
| 737 | DWORD dwOperationalStatus;
|
---|
| 738 | WINBOOL bMHbeatActive;
|
---|
| 739 | WINBOOL bMHbeatAlive;
|
---|
| 740 | } MIB_IFSTATUS,*PMIB_IFSTATUS;
|
---|
| 741 |
|
---|
| 742 | typedef struct _MIB_ROUTESTATE {
|
---|
| 743 | WINBOOL bRoutesSetToStack;
|
---|
| 744 | } MIB_ROUTESTATE,*PMIB_ROUTESTATE;
|
---|
| 745 |
|
---|
| 746 | typedef struct _MIB_OPAQUE_INFO {
|
---|
| 747 | DWORD dwId;
|
---|
| 748 | __C89_NAMELESS union {
|
---|
| 749 | ULONGLONG ullAlign;
|
---|
| 750 | BYTE rgbyData[1];
|
---|
| 751 | };
|
---|
| 752 | } MIB_OPAQUE_INFO,*PMIB_OPAQUE_INFO;
|
---|
| 753 |
|
---|
| 754 | typedef struct _TCPIP_OWNER_MODULE_BASIC_INFO {
|
---|
| 755 | PWCHAR pModuleName;
|
---|
| 756 | PWCHAR pModulePath;
|
---|
| 757 | } TCPIP_OWNER_MODULE_BASIC_INFO, *PTCPIP_OWNER_MODULE_BASIC_INFO;
|
---|
| 758 |
|
---|
| 759 | typedef enum _UDP_TABLE_CLASS {
|
---|
| 760 | UDP_TABLE_BASIC,
|
---|
| 761 | UDP_TABLE_OWNER_PID,
|
---|
| 762 | UDP_TABLE_OWNER_MODULE
|
---|
| 763 | } UDP_TABLE_CLASS, *PUDP_TABLE_CLASS;
|
---|
| 764 |
|
---|
| 765 | typedef enum _TCPIP_OWNER_MODULE_INFO_CLASS {
|
---|
| 766 | TCPIP_OWNER_MODULE_INFO_BASIC
|
---|
| 767 | } TCPIP_OWNER_MODULE_INFO_CLASS, *PTCPIP_OWNER_MODULE_INFO_CLASS;
|
---|
| 768 |
|
---|
| 769 | #define MAX_MIB_OFFSET 8
|
---|
| 770 |
|
---|
| 771 | #define MIB_INFO_SIZE(S) (MAX_MIB_OFFSET + sizeof(S))
|
---|
| 772 | #define MIB_INFO_SIZE_IN_DWORDS(S) ((MIB_INFO_SIZE(S))/sizeof(DWORD) + 1)
|
---|
| 773 |
|
---|
| 774 | #define DEFINE_MIB_BUFFER(X,Y,Z) DWORD __rgdwBuff[MIB_INFO_SIZE_IN_DWORDS(Y)]; PMIB_OPAQUE_INFO X = (PMIB_OPAQUE_INFO)__rgdwBuff; Y *Z = (Y *)(X->rgbyData)
|
---|
| 775 |
|
---|
| 776 | #define CAST_MIB_INFO(X,Y,Z) Z = (Y)(X->rgbyData)
|
---|
| 777 |
|
---|
| 778 | #endif /*WINAPI_FAMILY_PARTITION (WINAPI_PARTITION_DESKTOP)*/
|
---|
| 779 |
|
---|
| 780 | #endif /* __ROUTING_IPRTRMIB_H__ */
|
---|