VirtualBox

source: vbox/trunk/src/VBox/Additions/WINNT/Graphics/Wine/include/iprtrmib.h@ 33252

Last change on this file since 33252 was 28475, checked in by vboxsync, 15 years ago

crOpenGL: update to wine 1.1.43

  • Property svn:eol-style set to native
File size: 7.4 KB
Line 
1/* WINE iprtrmib.h
2 * Copyright (C) 2003 Juan Lang
3 *
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
8 *
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
13 *
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
17 */
18
19/*
20 * Sun LGPL Disclaimer: For the avoidance of doubt, except that if any license choice
21 * other than GPL or LGPL is available it will apply instead, Sun elects to use only
22 * the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where
23 * a choice of LGPL license versions is made available with the language indicating
24 * that LGPLv2 or any later version may be used, or where a choice of which version
25 * of the LGPL is applied is otherwise unspecified.
26 */
27
28#ifndef WINE_IPRTRMIB_H__
29#define WINE_IPRTRMIB_H__
30
31#include <mprapi.h>
32#include <ipifcons.h>
33
34#define MAXLEN_IFDESCR 256
35#define MAXLEN_PHYSADDR 8
36
37typedef struct _MIB_IFROW
38{
39 WCHAR wszName[MAX_INTERFACE_NAME_LEN];
40 DWORD dwIndex;
41 DWORD dwType;
42 DWORD dwMtu;
43 DWORD dwSpeed;
44 DWORD dwPhysAddrLen;
45 BYTE bPhysAddr[MAXLEN_PHYSADDR];
46 DWORD dwAdminStatus;
47 DWORD dwOperStatus;
48 DWORD dwLastChange;
49 DWORD dwInOctets;
50 DWORD dwInUcastPkts;
51 DWORD dwInNUcastPkts;
52 DWORD dwInDiscards;
53 DWORD dwInErrors;
54 DWORD dwInUnknownProtos;
55 DWORD dwOutOctets;
56 DWORD dwOutUcastPkts;
57 DWORD dwOutNUcastPkts;
58 DWORD dwOutDiscards;
59 DWORD dwOutErrors;
60 DWORD dwOutQLen;
61 DWORD dwDescrLen;
62 BYTE bDescr[MAXLEN_IFDESCR];
63} MIB_IFROW,*PMIB_IFROW;
64
65typedef struct _MIB_IFTABLE
66{
67 DWORD dwNumEntries;
68 MIB_IFROW table[1];
69} MIB_IFTABLE, *PMIB_IFTABLE;
70
71typedef struct _MIBICMPSTATS
72{
73 DWORD dwMsgs;
74 DWORD dwErrors;
75 DWORD dwDestUnreachs;
76 DWORD dwTimeExcds;
77 DWORD dwParmProbs;
78 DWORD dwSrcQuenchs;
79 DWORD dwRedirects;
80 DWORD dwEchos;
81 DWORD dwEchoReps;
82 DWORD dwTimestamps;
83 DWORD dwTimestampReps;
84 DWORD dwAddrMasks;
85 DWORD dwAddrMaskReps;
86} MIBICMPSTATS;
87
88typedef struct _MIBICMPINFO
89{
90 MIBICMPSTATS icmpInStats;
91 MIBICMPSTATS icmpOutStats;
92} MIBICMPINFO;
93
94typedef struct _MIB_ICMP
95{
96 MIBICMPINFO stats;
97} MIB_ICMP,*PMIB_ICMP;
98
99typedef struct _MIB_UDPSTATS
100{
101 DWORD dwInDatagrams;
102 DWORD dwNoPorts;
103 DWORD dwInErrors;
104 DWORD dwOutDatagrams;
105 DWORD dwNumAddrs;
106} MIB_UDPSTATS,*PMIB_UDPSTATS;
107
108typedef struct _MIB_UDPROW
109{
110 DWORD dwLocalAddr;
111 DWORD dwLocalPort;
112} MIB_UDPROW, *PMIB_UDPROW;
113
114typedef struct _MIB_UDPTABLE
115{
116 DWORD dwNumEntries;
117 MIB_UDPROW table[1];
118} MIB_UDPTABLE, *PMIB_UDPTABLE;
119
120typedef struct _MIB_TCPSTATS
121{
122 DWORD dwRtoAlgorithm;
123 DWORD dwRtoMin;
124 DWORD dwRtoMax;
125 DWORD dwMaxConn;
126 DWORD dwActiveOpens;
127 DWORD dwPassiveOpens;
128 DWORD dwAttemptFails;
129 DWORD dwEstabResets;
130 DWORD dwCurrEstab;
131 DWORD dwInSegs;
132 DWORD dwOutSegs;
133 DWORD dwRetransSegs;
134 DWORD dwInErrs;
135 DWORD dwOutRsts;
136 DWORD dwNumConns;
137} MIB_TCPSTATS, *PMIB_TCPSTATS;
138
139typedef struct _MIB_TCPROW
140{
141 DWORD dwState;
142 DWORD dwLocalAddr;
143 DWORD dwLocalPort;
144 DWORD dwRemoteAddr;
145 DWORD dwRemotePort;
146} MIB_TCPROW, *PMIB_TCPROW;
147
148#define MIB_TCP_STATE_CLOSED 1
149#define MIB_TCP_STATE_LISTEN 2
150#define MIB_TCP_STATE_SYN_SENT 3
151#define MIB_TCP_STATE_SYN_RCVD 4
152#define MIB_TCP_STATE_ESTAB 5
153#define MIB_TCP_STATE_FIN_WAIT1 6
154#define MIB_TCP_STATE_FIN_WAIT2 7
155#define MIB_TCP_STATE_CLOSE_WAIT 8
156#define MIB_TCP_STATE_CLOSING 9
157#define MIB_TCP_STATE_LAST_ACK 10
158#define MIB_TCP_STATE_TIME_WAIT 11
159#define MIB_TCP_STATE_DELETE_TCB 12
160
161typedef struct _MIB_TCPTABLE
162{
163 DWORD dwNumEntries;
164 MIB_TCPROW table[1];
165} MIB_TCPTABLE, *PMIB_TCPTABLE;
166
167typedef struct _MIB_IPSTATS
168{
169 DWORD dwForwarding;
170 DWORD dwDefaultTTL;
171 DWORD dwInReceives;
172 DWORD dwInHdrErrors;
173 DWORD dwInAddrErrors;
174 DWORD dwForwDatagrams;
175 DWORD dwInUnknownProtos;
176 DWORD dwInDiscards;
177 DWORD dwInDelivers;
178 DWORD dwOutRequests;
179 DWORD dwRoutingDiscards;
180 DWORD dwOutDiscards;
181 DWORD dwOutNoRoutes;
182 DWORD dwReasmTimeout;
183 DWORD dwReasmReqds;
184 DWORD dwReasmOks;
185 DWORD dwReasmFails;
186 DWORD dwFragOks;
187 DWORD dwFragFails;
188 DWORD dwFragCreates;
189 DWORD dwNumIf;
190 DWORD dwNumAddr;
191 DWORD dwNumRoutes;
192} MIB_IPSTATS, *PMIB_IPSTATS;
193
194typedef struct _MIB_IPADDRROW
195{
196 DWORD dwAddr;
197 DWORD dwIndex;
198 DWORD dwMask;
199 DWORD dwBCastAddr;
200 DWORD dwReasmSize;
201 unsigned short unused1;
202 unsigned short wType;
203} MIB_IPADDRROW, *PMIB_IPADDRROW;
204
205typedef struct _MIB_IPADDRTABLE
206{
207 DWORD dwNumEntries;
208 MIB_IPADDRROW table[1];
209} MIB_IPADDRTABLE, *PMIB_IPADDRTABLE;
210
211
212typedef struct _MIB_IPFORWARDNUMBER
213{
214 DWORD dwValue;
215}MIB_IPFORWARDNUMBER,*PMIB_IPFORWARDNUMBER;
216
217typedef struct _MIB_IPFORWARDROW
218{
219 DWORD dwForwardDest;
220 DWORD dwForwardMask;
221 DWORD dwForwardPolicy;
222 DWORD dwForwardNextHop;
223 DWORD dwForwardIfIndex;
224 DWORD dwForwardType;
225 DWORD dwForwardProto;
226 DWORD dwForwardAge;
227 DWORD dwForwardNextHopAS;
228 DWORD dwForwardMetric1;
229 DWORD dwForwardMetric2;
230 DWORD dwForwardMetric3;
231 DWORD dwForwardMetric4;
232 DWORD dwForwardMetric5;
233}MIB_IPFORWARDROW, *PMIB_IPFORWARDROW;
234
235#define MIB_IPROUTE_TYPE_OTHER 1
236#define MIB_IPROUTE_TYPE_INVALID 2
237#define MIB_IPROUTE_TYPE_DIRECT 3
238#define MIB_IPROUTE_TYPE_INDIRECT 4
239
240#define MIB_IPPROTO_OTHER 1
241#define MIB_IPPROTO_LOCAL 2
242#define MIB_IPPROTO_NETMGMT 3
243#define MIB_IPPROTO_ICMP 4
244#define MIB_IPPROTO_EGP 5
245#define MIB_IPPROTO_GGP 6
246#define MIB_IPPROTO_HELLO 7
247#define MIB_IPPROTO_RIP 8
248#define MIB_IPPROTO_IS_IS 9
249#define MIB_IPPROTO_ES_IS 10
250#define MIB_IPPROTO_CISCO 11
251#define MIB_IPPROTO_BBN 12
252#define MIB_IPPROTO_OSPF 13
253#define MIB_IPPROTO_BGP 14
254
255#define MIB_IPPROTO_NT_AUTOSTATIC 10002
256#define MIB_IPPROTO_NT_STATIC 10006
257#define MIB_IPPROTO_NT_STATIC_NON_DOD 10007
258
259typedef struct _MIB_IPFORWARDTABLE
260{
261 DWORD dwNumEntries;
262 MIB_IPFORWARDROW table[1];
263} MIB_IPFORWARDTABLE, *PMIB_IPFORWARDTABLE;
264
265typedef struct _MIB_IPNETROW
266{
267 DWORD dwIndex;
268 DWORD dwPhysAddrLen;
269 BYTE bPhysAddr[MAXLEN_PHYSADDR];
270 DWORD dwAddr;
271 DWORD dwType;
272} MIB_IPNETROW, *PMIB_IPNETROW;
273
274#define MIB_TCP_RTO_OTHER 1
275#define MIB_TCP_RTO_CONSTANT 2
276#define MIB_TCP_RTO_RSRE 3
277#define MIB_TCP_RTO_VANJ 4
278#define MIB_IPNET_TYPE_OTHER 1
279#define MIB_IPNET_TYPE_INVALID 2
280#define MIB_IPNET_TYPE_DYNAMIC 3
281#define MIB_IPNET_TYPE_STATIC 4
282
283typedef struct _MIB_IPNETTABLE
284{
285 DWORD dwNumEntries;
286 MIB_IPNETROW table[1];
287} MIB_IPNETTABLE, *PMIB_IPNETTABLE;
288
289#endif /* WINE_IPRTRMIB_H__ */
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette