4 #pragma GCC system_header
14 #define MAXLEN_PHYSADDR 8
15 #define MAXLEN_IFDESCR 256
16 #ifndef MAX_INTERFACE_NAME_LEN
17 #define MAX_INTERFACE_NAME_LEN 256
19 #define MIB_IPNET_TYPE_OTHER 1
20 #define MIB_IPNET_TYPE_INVALID 2
21 #define MIB_IPNET_TYPE_DYNAMIC 3
22 #define MIB_IPNET_TYPE_STATIC 4
23 #define MIB_TCP_RTO_OTHER 1
24 #define MIB_TCP_RTO_CONSTANT 2
25 #define MIB_TCP_RTO_RSRE 3
26 #define MIB_TCP_RTO_VANJ 4
27 #define MIB_TCP_STATE_CLOSED 1
28 #define MIB_TCP_STATE_LISTEN 2
29 #define MIB_TCP_STATE_SYN_SENT 3
30 #define MIB_TCP_STATE_SYN_RCVD 4
31 #define MIB_TCP_STATE_ESTAB 5
32 #define MIB_TCP_STATE_FIN_WAIT1 6
33 #define MIB_TCP_STATE_FIN_WAIT2 7
34 #define MIB_TCP_STATE_CLOSE_WAIT 8
35 #define MIB_TCP_STATE_CLOSING 9
36 #define MIB_TCP_STATE_LAST_ACK 10
37 #define MIB_TCP_STATE_TIME_WAIT 11
38 #define MIB_TCP_STATE_DELETE_TCB 12
39 #define MIB_USE_CURRENT_TTL ((DWORD)-1)
40 #define MIB_USE_CURRENT_FORWARDING ((DWORD)-1)
41 #define MIB_TCP_MAXCONN_DYNAMIC ((DWORD)-1)
48 unsigned short unused1
;
49 unsigned short unused2
;
50 } MIB_IPADDRROW
, *PMIB_IPADDRROW
;
53 MIB_IPADDRROW table
[ANY_SIZE
];
54 } MIB_IPADDRTABLE
, *PMIB_IPADDRTABLE
;
58 DWORD dwForwardPolicy
;
59 DWORD dwForwardNextHop
;
60 DWORD dwForwardIfIndex
;
64 DWORD dwForwardNextHopAS
;
65 DWORD dwForwardMetric1
;
66 DWORD dwForwardMetric2
;
67 DWORD dwForwardMetric3
;
68 DWORD dwForwardMetric4
;
69 DWORD dwForwardMetric5
;
70 } MIB_IPFORWARDROW
, *PMIB_IPFORWARDROW
;
73 MIB_IPFORWARDROW table
[ANY_SIZE
];
74 } MIB_IPFORWARDTABLE
, *PMIB_IPFORWARDTABLE
;
78 BYTE bPhysAddr
[MAXLEN_PHYSADDR
];
81 } MIB_IPNETROW
, *PMIB_IPNETROW
;
84 MIB_IPNETROW table
[ANY_SIZE
];
85 } MIB_IPNETTABLE
, *PMIB_IPNETTABLE
;
97 DWORD dwTimestampReps
;
100 } MIBICMPSTATS
, *PMIBICMPSTATS
;
102 MIBICMPSTATS icmpInStats
;
103 MIBICMPSTATS icmpOutStats
;
104 } MIBICMPINFO
, *PMIBICMPINFO
;
107 } MIB_ICMP
, *PMIB_ICMP
;
109 WCHAR wszName
[MAX_INTERFACE_NAME_LEN
];
115 BYTE bPhysAddr
[MAXLEN_PHYSADDR
];
121 DWORD dwInNUcastPkts
;
124 DWORD dwInUnknownProtos
;
126 DWORD dwOutUcastPkts
;
127 DWORD dwOutNUcastPkts
;
132 BYTE bDescr
[MAXLEN_IFDESCR
];
133 } MIB_IFROW
, *PMIB_IFROW
;
136 MIB_IFROW table
[ANY_SIZE
];
137 } MIB_IFTABLE
, *PMIB_IFTABLE
;
143 DWORD dwInAddrErrors
;
144 DWORD dwForwDatagrams
;
145 DWORD dwInUnknownProtos
;
149 DWORD dwRoutingDiscards
;
152 DWORD dwReasmTimeout
;
162 } MIB_IPSTATS
, *PMIB_IPSTATS
;
164 DWORD dwRtoAlgorithm
;
169 DWORD dwPassiveOpens
;
170 DWORD dwAttemptFails
;
179 } MIB_TCPSTATS
, *PMIB_TCPSTATS
;
186 } MIB_TCPROW
, *PMIB_TCPROW
;
189 MIB_TCPROW table
[ANY_SIZE
];
190 } MIB_TCPTABLE
, *PMIB_TCPTABLE
;
195 DWORD dwOutDatagrams
;
197 } MIB_UDPSTATS
, *PMIB_UDPSTATS
;
201 } MIB_UDPROW
, *PMIB_UDPROW
;
204 MIB_UDPROW table
[ANY_SIZE
];
205 } MIB_UDPTABLE
, *PMIB_UDPTABLE
;
209 #endif /* _IPRTRMIB_H */