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)
43 TCP_TABLE_BASIC_LISTENER
,
44 TCP_TABLE_BASIC_CONNECTIONS
,
46 TCP_TABLE_OWNER_PID_LISTENER
,
47 TCP_TABLE_OWNER_PID_CONNECTIONS
,
48 TCP_TABLE_OWNER_PID_ALL
,
49 TCP_TABLE_OWNER_MODULE_LISTENER
,
50 TCP_TABLE_OWNER_MODULE_CONNECTIONS
,
51 TCP_TABLE_OWNER_MODULE_ALL
52 } TCP_TABLE_CLASS
, *PTCP_TABLE_CLASS
;
59 unsigned short unused1
;
60 unsigned short unused2
;
61 } MIB_IPADDRROW
, *PMIB_IPADDRROW
;
64 MIB_IPADDRROW table
[ANY_SIZE
];
65 } MIB_IPADDRTABLE
, *PMIB_IPADDRTABLE
;
69 DWORD dwForwardPolicy
;
70 DWORD dwForwardNextHop
;
71 DWORD dwForwardIfIndex
;
75 DWORD dwForwardNextHopAS
;
76 DWORD dwForwardMetric1
;
77 DWORD dwForwardMetric2
;
78 DWORD dwForwardMetric3
;
79 DWORD dwForwardMetric4
;
80 DWORD dwForwardMetric5
;
81 } MIB_IPFORWARDROW
, *PMIB_IPFORWARDROW
;
84 MIB_IPFORWARDROW table
[ANY_SIZE
];
85 } MIB_IPFORWARDTABLE
, *PMIB_IPFORWARDTABLE
;
89 BYTE bPhysAddr
[MAXLEN_PHYSADDR
];
92 } MIB_IPNETROW
, *PMIB_IPNETROW
;
95 MIB_IPNETROW table
[ANY_SIZE
];
96 } MIB_IPNETTABLE
, *PMIB_IPNETTABLE
;
100 DWORD dwDestUnreachs
;
108 DWORD dwTimestampReps
;
110 DWORD dwAddrMaskReps
;
111 } MIBICMPSTATS
, *PMIBICMPSTATS
;
113 MIBICMPSTATS icmpInStats
;
114 MIBICMPSTATS icmpOutStats
;
115 } MIBICMPINFO
, *PMIBICMPINFO
;
118 } MIB_ICMP
, *PMIB_ICMP
;
120 WCHAR wszName
[MAX_INTERFACE_NAME_LEN
];
126 BYTE bPhysAddr
[MAXLEN_PHYSADDR
];
132 DWORD dwInNUcastPkts
;
135 DWORD dwInUnknownProtos
;
137 DWORD dwOutUcastPkts
;
138 DWORD dwOutNUcastPkts
;
143 BYTE bDescr
[MAXLEN_IFDESCR
];
144 } MIB_IFROW
, *PMIB_IFROW
;
147 MIB_IFROW table
[ANY_SIZE
];
148 } MIB_IFTABLE
, *PMIB_IFTABLE
;
154 DWORD dwInAddrErrors
;
155 DWORD dwForwDatagrams
;
156 DWORD dwInUnknownProtos
;
160 DWORD dwRoutingDiscards
;
163 DWORD dwReasmTimeout
;
173 } MIB_IPSTATS
, *PMIB_IPSTATS
;
175 DWORD dwRtoAlgorithm
;
180 DWORD dwPassiveOpens
;
181 DWORD dwAttemptFails
;
190 } MIB_TCPSTATS
, *PMIB_TCPSTATS
;
197 } MIB_TCPROW
, *PMIB_TCPROW
;
200 MIB_TCPROW table
[ANY_SIZE
];
201 } MIB_TCPTABLE
, *PMIB_TCPTABLE
;
209 } MIB_TCPROW_OWNER_PID
, *PMIB_TCPROW_OWNER_PID
;
212 MIB_TCPROW_OWNER_PID table
[ANY_SIZE
];
213 } MIB_TCPTABLE_OWNER_PID
, *PMIB_TCPTABLE_OWNER_PID
;
218 DWORD dwOutDatagrams
;
220 } MIB_UDPSTATS
, *PMIB_UDPSTATS
;
224 } MIB_UDPROW
, *PMIB_UDPROW
;
227 MIB_UDPROW table
[ANY_SIZE
];
228 } MIB_UDPTABLE
, *PMIB_UDPTABLE
;
230 UCHAR ucLocalAddr
[16];
231 DWORD dwLocalScopeId
;
233 UCHAR ucRemoteAddr
[16];
234 DWORD dwRemoteScopeId
;
238 } MIB_TCP6ROW_OWNER_PID
, *PMIB_TCP6ROW_OWNER_PID
;
241 MIB_TCP6ROW_OWNER_PID table
[ANY_SIZE
];
242 } MIB_TCP6TABLE_OWNER_PID
, *PMIB_TCP6TABLE_OWNER_PID
;
246 #endif /* _IPRTRMIB_H */