10 #define MAXLEN_PHYSADDR 8
11 #define MAXLEN_IFDESCR 256
12 #ifndef MAX_INTERFACE_NAME_LEN
13 #define MAX_INTERFACE_NAME_LEN 256
15 #define MIB_IPNET_TYPE_OTHER 1
16 #define MIB_IPNET_TYPE_INVALID 2
17 #define MIB_IPNET_TYPE_DYNAMIC 3
18 #define MIB_IPNET_TYPE_STATIC 4
19 #define MIB_TCP_RTO_OTHER 1
20 #define MIB_TCP_RTO_CONSTANT 2
21 #define MIB_TCP_RTO_RSRE 3
22 #define MIB_TCP_RTO_VANJ 4
23 #define MIB_TCP_STATE_CLOSED 1
24 #define MIB_TCP_STATE_LISTEN 2
25 #define MIB_TCP_STATE_SYN_SENT 3
26 #define MIB_TCP_STATE_SYN_RCVD 4
27 #define MIB_TCP_STATE_ESTAB 5
28 #define MIB_TCP_STATE_FIN_WAIT1 6
29 #define MIB_TCP_STATE_FIN_WAIT2 7
30 #define MIB_TCP_STATE_CLOSE_WAIT 8
31 #define MIB_TCP_STATE_CLOSING 9
32 #define MIB_TCP_STATE_LAST_ACK 10
33 #define MIB_TCP_STATE_TIME_WAIT 11
34 #define MIB_TCP_STATE_DELETE_TCB 12
35 #define MIB_USE_CURRENT_TTL ((DWORD)-1)
36 #define MIB_USE_CURRENT_FORWARDING ((DWORD)-1)
37 #define MIB_TCP_MAXCONN_DYNAMIC ((DWORD)-1)
44 unsigned short unused1
;
45 unsigned short unused2
;
46 } MIB_IPADDRROW
, *PMIB_IPADDRROW
;
49 MIB_IPADDRROW table
[ANY_SIZE
];
50 } MIB_IPADDRTABLE
, *PMIB_IPADDRTABLE
;
54 DWORD dwForwardPolicy
;
55 DWORD dwForwardNextHop
;
56 DWORD dwForwardIfIndex
;
60 DWORD dwForwardNextHopAS
;
61 DWORD dwForwardMetric1
;
62 DWORD dwForwardMetric2
;
63 DWORD dwForwardMetric3
;
64 DWORD dwForwardMetric4
;
65 DWORD dwForwardMetric5
;
66 } MIB_IPFORWARDROW
, *PMIB_IPFORWARDROW
;
69 MIB_IPFORWARDROW table
[ANY_SIZE
];
70 } MIB_IPFORWARDTABLE
, *PMIB_IPFORWARDTABLE
;
74 BYTE bPhysAddr
[MAXLEN_PHYSADDR
];
77 } MIB_IPNETROW
, *PMIB_IPNETROW
;
80 MIB_IPNETROW table
[ANY_SIZE
];
81 } MIB_IPNETTABLE
, *PMIB_IPNETTABLE
;
93 DWORD dwTimestampReps
;
96 } MIBICMPSTATS
, *PMIBICMPSTATS
;
98 MIBICMPSTATS icmpInStats
;
99 MIBICMPSTATS icmpOutStats
;
100 } MIBICMPINFO
, *PMIBICMPINFO
;
103 } MIB_ICMP
, *PMIB_ICMP
;
105 WCHAR wszName
[MAX_INTERFACE_NAME_LEN
];
111 BYTE bPhysAddr
[MAXLEN_PHYSADDR
];
117 DWORD dwInNUcastPkts
;
120 DWORD dwInUnknownProtos
;
122 DWORD dwOutUcastPkts
;
123 DWORD dwOutNUcastPkts
;
128 BYTE bDescr
[MAXLEN_IFDESCR
];
129 } MIB_IFROW
, *PMIB_IFROW
;
132 MIB_IFROW table
[ANY_SIZE
];
133 } MIB_IFTABLE
, *PMIB_IFTABLE
;
139 DWORD dwInAddrErrors
;
140 DWORD dwForwDatagrams
;
141 DWORD dwInUnknownProtos
;
145 DWORD dwRoutingDiscards
;
148 DWORD dwReasmTimeout
;
158 } MIB_IPSTATS
, *PMIB_IPSTATS
;
160 DWORD dwRtoAlgorithm
;
165 DWORD dwPassiveOpens
;
166 DWORD dwAttemptFails
;
175 } MIB_TCPSTATS
, *PMIB_TCPSTATS
;
182 } MIB_TCPROW
, *PMIB_TCPROW
;
185 MIB_TCPROW table
[ANY_SIZE
];
186 } MIB_TCPTABLE
, *PMIB_TCPTABLE
;
191 DWORD dwOutDatagrams
;
193 } MIB_UDPSTATS
, *PMIB_UDPSTATS
;
197 } MIB_UDPROW
, *PMIB_UDPROW
;
200 MIB_UDPROW table
[ANY_SIZE
];
201 } MIB_UDPTABLE
, *PMIB_UDPTABLE
;
205 #endif /* _IPRTRMIB_H */