VirtualBox

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

Last change on this file since 20636 was 16477, checked in by vboxsync, 16 years ago

LGPL disclaimer by filemuncher

  • 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#ifndef WINE_IPRTRMIB_H__
28#define WINE_IPRTRMIB_H__
29
30#include <mprapi.h>
31#include <ipifcons.h>
32
33#define MAXLEN_IFDESCR 256
34#define MAXLEN_PHYSADDR 8
35
36typedef struct _MIB_IFROW
37{
38 WCHAR wszName[MAX_INTERFACE_NAME_LEN];
39 DWORD dwIndex;
40 DWORD dwType;
41 DWORD dwMtu;
42 DWORD dwSpeed;
43 DWORD dwPhysAddrLen;
44 BYTE bPhysAddr[MAXLEN_PHYSADDR];
45 DWORD dwAdminStatus;
46 DWORD dwOperStatus;
47 DWORD dwLastChange;
48 DWORD dwInOctets;
49 DWORD dwInUcastPkts;
50 DWORD dwInNUcastPkts;
51 DWORD dwInDiscards;
52 DWORD dwInErrors;
53 DWORD dwInUnknownProtos;
54 DWORD dwOutOctets;
55 DWORD dwOutUcastPkts;
56 DWORD dwOutNUcastPkts;
57 DWORD dwOutDiscards;
58 DWORD dwOutErrors;
59 DWORD dwOutQLen;
60 DWORD dwDescrLen;
61 BYTE bDescr[MAXLEN_IFDESCR];
62} MIB_IFROW,*PMIB_IFROW;
63
64typedef struct _MIB_IFTABLE
65{
66 DWORD dwNumEntries;
67 MIB_IFROW table[1];
68} MIB_IFTABLE, *PMIB_IFTABLE;
69
70typedef struct _MIBICMPSTATS
71{
72 DWORD dwMsgs;
73 DWORD dwErrors;
74 DWORD dwDestUnreachs;
75 DWORD dwTimeExcds;
76 DWORD dwParmProbs;
77 DWORD dwSrcQuenchs;
78 DWORD dwRedirects;
79 DWORD dwEchos;
80 DWORD dwEchoReps;
81 DWORD dwTimestamps;
82 DWORD dwTimestampReps;
83 DWORD dwAddrMasks;
84 DWORD dwAddrMaskReps;
85} MIBICMPSTATS;
86
87typedef struct _MIBICMPINFO
88{
89 MIBICMPSTATS icmpInStats;
90 MIBICMPSTATS icmpOutStats;
91} MIBICMPINFO;
92
93typedef struct _MIB_ICMP
94{
95 MIBICMPINFO stats;
96} MIB_ICMP,*PMIB_ICMP;
97
98typedef struct _MIB_UDPSTATS
99{
100 DWORD dwInDatagrams;
101 DWORD dwNoPorts;
102 DWORD dwInErrors;
103 DWORD dwOutDatagrams;
104 DWORD dwNumAddrs;
105} MIB_UDPSTATS,*PMIB_UDPSTATS;
106
107typedef struct _MIB_UDPROW
108{
109 DWORD dwLocalAddr;
110 DWORD dwLocalPort;
111} MIB_UDPROW, *PMIB_UDPROW;
112
113typedef struct _MIB_UDPTABLE
114{
115 DWORD dwNumEntries;
116 MIB_UDPROW table[1];
117} MIB_UDPTABLE, *PMIB_UDPTABLE;
118
119typedef struct _MIB_TCPSTATS
120{
121 DWORD dwRtoAlgorithm;
122 DWORD dwRtoMin;
123 DWORD dwRtoMax;
124 DWORD dwMaxConn;
125 DWORD dwActiveOpens;
126 DWORD dwPassiveOpens;
127 DWORD dwAttemptFails;
128 DWORD dwEstabResets;
129 DWORD dwCurrEstab;
130 DWORD dwInSegs;
131 DWORD dwOutSegs;
132 DWORD dwRetransSegs;
133 DWORD dwInErrs;
134 DWORD dwOutRsts;
135 DWORD dwNumConns;
136} MIB_TCPSTATS, *PMIB_TCPSTATS;
137
138typedef struct _MIB_TCPROW
139{
140 DWORD dwState;
141 DWORD dwLocalAddr;
142 DWORD dwLocalPort;
143 DWORD dwRemoteAddr;
144 DWORD dwRemotePort;
145} MIB_TCPROW, *PMIB_TCPROW;
146
147#define MIB_TCP_STATE_CLOSED 1
148#define MIB_TCP_STATE_LISTEN 2
149#define MIB_TCP_STATE_SYN_SENT 3
150#define MIB_TCP_STATE_SYN_RCVD 4
151#define MIB_TCP_STATE_ESTAB 5
152#define MIB_TCP_STATE_FIN_WAIT1 6
153#define MIB_TCP_STATE_FIN_WAIT2 7
154#define MIB_TCP_STATE_CLOSE_WAIT 8
155#define MIB_TCP_STATE_CLOSING 9
156#define MIB_TCP_STATE_LAST_ACK 10
157#define MIB_TCP_STATE_TIME_WAIT 11
158#define MIB_TCP_STATE_DELETE_TCB 12
159
160typedef struct _MIB_TCPTABLE
161{
162 DWORD dwNumEntries;
163 MIB_TCPROW table[1];
164} MIB_TCPTABLE, *PMIB_TCPTABLE;
165
166typedef struct _MIB_IPSTATS
167{
168 DWORD dwForwarding;
169 DWORD dwDefaultTTL;
170 DWORD dwInReceives;
171 DWORD dwInHdrErrors;
172 DWORD dwInAddrErrors;
173 DWORD dwForwDatagrams;
174 DWORD dwInUnknownProtos;
175 DWORD dwInDiscards;
176 DWORD dwInDelivers;
177 DWORD dwOutRequests;
178 DWORD dwRoutingDiscards;
179 DWORD dwOutDiscards;
180 DWORD dwOutNoRoutes;
181 DWORD dwReasmTimeout;
182 DWORD dwReasmReqds;
183 DWORD dwReasmOks;
184 DWORD dwReasmFails;
185 DWORD dwFragOks;
186 DWORD dwFragFails;
187 DWORD dwFragCreates;
188 DWORD dwNumIf;
189 DWORD dwNumAddr;
190 DWORD dwNumRoutes;
191} MIB_IPSTATS, *PMIB_IPSTATS;
192
193typedef struct _MIB_IPADDRROW
194{
195 DWORD dwAddr;
196 DWORD dwIndex;
197 DWORD dwMask;
198 DWORD dwBCastAddr;
199 DWORD dwReasmSize;
200 unsigned short unused1;
201 unsigned short wType;
202} MIB_IPADDRROW, *PMIB_IPADDRROW;
203
204typedef struct _MIB_IPADDRTABLE
205{
206 DWORD dwNumEntries;
207 MIB_IPADDRROW table[1];
208} MIB_IPADDRTABLE, *PMIB_IPADDRTABLE;
209
210
211typedef struct _MIB_IPFORWARDNUMBER
212{
213 DWORD dwValue;
214}MIB_IPFORWARDNUMBER,*PMIB_IPFORWARDNUMBER;
215
216typedef struct _MIB_IPFORWARDROW
217{
218 DWORD dwForwardDest;
219 DWORD dwForwardMask;
220 DWORD dwForwardPolicy;
221 DWORD dwForwardNextHop;
222 DWORD dwForwardIfIndex;
223 DWORD dwForwardType;
224 DWORD dwForwardProto;
225 DWORD dwForwardAge;
226 DWORD dwForwardNextHopAS;
227 DWORD dwForwardMetric1;
228 DWORD dwForwardMetric2;
229 DWORD dwForwardMetric3;
230 DWORD dwForwardMetric4;
231 DWORD dwForwardMetric5;
232}MIB_IPFORWARDROW, *PMIB_IPFORWARDROW;
233
234#define MIB_IPROUTE_TYPE_OTHER 1
235#define MIB_IPROUTE_TYPE_INVALID 2
236#define MIB_IPROUTE_TYPE_DIRECT 3
237#define MIB_IPROUTE_TYPE_INDIRECT 4
238
239#define MIB_IPPROTO_OTHER 1
240#define MIB_IPPROTO_LOCAL 2
241#define MIB_IPPROTO_NETMGMT 3
242#define MIB_IPPROTO_ICMP 4
243#define MIB_IPPROTO_EGP 5
244#define MIB_IPPROTO_GGP 6
245#define MIB_IPPROTO_HELLO 7
246#define MIB_IPPROTO_RIP 8
247#define MIB_IPPROTO_IS_IS 9
248#define MIB_IPPROTO_ES_IS 10
249#define MIB_IPPROTO_CISCO 11
250#define MIB_IPPROTO_BBN 12
251#define MIB_IPPROTO_OSPF 13
252#define MIB_IPPROTO_BGP 14
253
254#define MIB_IPPROTO_NT_AUTOSTATIC 10002
255#define MIB_IPPROTO_NT_STATIC 10006
256#define MIB_IPPROTO_NT_STATIC_NON_DOD 10007
257
258typedef struct _MIB_IPFORWARDTABLE
259{
260 DWORD dwNumEntries;
261 MIB_IPFORWARDROW table[1];
262} MIB_IPFORWARDTABLE, *PMIB_IPFORWARDTABLE;
263
264typedef struct _MIB_IPNETROW
265{
266 DWORD dwIndex;
267 DWORD dwPhysAddrLen;
268 BYTE bPhysAddr[MAXLEN_PHYSADDR];
269 DWORD dwAddr;
270 DWORD dwType;
271} MIB_IPNETROW, *PMIB_IPNETROW;
272
273#define MIB_TCP_RTO_OTHER 1
274#define MIB_TCP_RTO_CONSTANT 2
275#define MIB_TCP_RTO_RSRE 3
276#define MIB_TCP_RTO_VANJ 4
277#define MIB_IPNET_TYPE_OTHER 1
278#define MIB_IPNET_TYPE_INVALID 2
279#define MIB_IPNET_TYPE_DYNAMIC 3
280#define MIB_IPNET_TYPE_STATIC 4
281
282typedef struct _MIB_IPNETTABLE
283{
284 DWORD dwNumEntries;
285 MIB_IPNETROW table[1];
286} MIB_IPNETTABLE, *PMIB_IPNETTABLE;
287
288#endif /* WINE_IPRTRMIB_H__ */
Note: See TracBrowser for help on using the repository browser.

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