VirtualBox

source: vbox/trunk/src/VBox/Devices/Graphics/shaderlib/wine/include/ipmib.h@ 96080

最後變更 在這個檔案從96080是 53206,由 vboxsync 提交於 10 年 前

Devices/vmsvga: header fixes

  • 屬性 svn:eol-style 設為 native
  • 屬性 svn:keywords 設為 Author Date Id Revision
檔案大小: 6.2 KB
 
1/*
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 * Oracle 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, Oracle 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_IPMIB_H
29#define __WINE_IPMIB_H
30
31#include <ifmib.h>
32#include <nldef.h>
33
34
35/* IPADDR table */
36
37typedef struct _MIB_IPADDRROW
38{
39 DWORD dwAddr;
40 IF_INDEX dwIndex;
41 DWORD dwMask;
42 DWORD dwBCastAddr;
43 DWORD dwReasmSize;
44 unsigned short unused1;
45 unsigned short wType;
46} MIB_IPADDRROW, *PMIB_IPADDRROW;
47
48typedef struct _MIB_IPADDRTABLE
49{
50 DWORD dwNumEntries;
51 MIB_IPADDRROW table[1];
52} MIB_IPADDRTABLE, *PMIB_IPADDRTABLE;
53
54
55/* IPFORWARD table */
56
57typedef struct _MIB_IPFORWARDNUMBER
58{
59 DWORD dwValue;
60} MIB_IPFORWARDNUMBER, *PMIB_IPFORWARDNUMBER;
61
62typedef enum
63{
64 MIB_IPROUTE_TYPE_OTHER = 1,
65 MIB_IPROUTE_TYPE_INVALID = 2,
66 MIB_IPROUTE_TYPE_DIRECT = 3,
67 MIB_IPROUTE_TYPE_INDIRECT = 4,
68} MIB_IPFORWARD_TYPE;
69
70typedef NL_ROUTE_PROTOCOL MIB_IPFORWARD_PROTO;
71
72typedef struct _MIB_IPFORWARDROW
73{
74 DWORD dwForwardDest;
75 DWORD dwForwardMask;
76 DWORD dwForwardPolicy;
77 DWORD dwForwardNextHop;
78 IF_INDEX dwForwardIfIndex;
79 union
80 {
81 DWORD dwForwardType;
82 MIB_IPFORWARD_TYPE ForwardType;
83 } DUMMYUNIONNAME1;
84 union
85 {
86 DWORD dwForwardProto;
87 MIB_IPFORWARD_PROTO ForwardProto;
88 } DUMMYUNIONNAME2;
89 DWORD dwForwardAge;
90 DWORD dwForwardNextHopAS;
91 DWORD dwForwardMetric1;
92 DWORD dwForwardMetric2;
93 DWORD dwForwardMetric3;
94 DWORD dwForwardMetric4;
95 DWORD dwForwardMetric5;
96} MIB_IPFORWARDROW, *PMIB_IPFORWARDROW;
97
98typedef struct _MIB_IPFORWARDTABLE
99{
100 DWORD dwNumEntries;
101 MIB_IPFORWARDROW table[1];
102} MIB_IPFORWARDTABLE, *PMIB_IPFORWARDTABLE;
103
104
105/* IPNET table */
106
107typedef enum
108{
109 MIB_IPNET_TYPE_OTHER = 1,
110 MIB_IPNET_TYPE_INVALID = 2,
111 MIB_IPNET_TYPE_DYNAMIC = 3,
112 MIB_IPNET_TYPE_STATIC = 4,
113} MIB_IPNET_TYPE;
114
115typedef struct _MIB_IPNETROW
116{
117 DWORD dwIndex;
118 DWORD dwPhysAddrLen;
119 BYTE bPhysAddr[MAXLEN_PHYSADDR];
120 DWORD dwAddr;
121 union
122 {
123 DWORD dwType;
124 MIB_IPNET_TYPE Type;
125 } DUMMYUNIONNAME;
126} MIB_IPNETROW, *PMIB_IPNETROW;
127
128typedef struct _MIB_IPNETTABLE
129{
130 DWORD dwNumEntries;
131 MIB_IPNETROW table[1];
132} MIB_IPNETTABLE, *PMIB_IPNETTABLE;
133
134
135/* IP statistics */
136
137typedef enum
138{
139 MIB_IP_FORWARDING = 1,
140 MIB_IP_NOT_FORWARDING = 2,
141} MIB_IPSTATS_FORWARDING, *PMIB_IPSTATS_FORWARDING;
142
143typedef struct _MIB_IPSTATS
144{
145 union
146 {
147 DWORD dwForwarding;
148 MIB_IPSTATS_FORWARDING Forwarding;
149 } DUMMYUNIONNAME;
150 DWORD dwDefaultTTL;
151 DWORD dwInReceives;
152 DWORD dwInHdrErrors;
153 DWORD dwInAddrErrors;
154 DWORD dwForwDatagrams;
155 DWORD dwInUnknownProtos;
156 DWORD dwInDiscards;
157 DWORD dwInDelivers;
158 DWORD dwOutRequests;
159 DWORD dwRoutingDiscards;
160 DWORD dwOutDiscards;
161 DWORD dwOutNoRoutes;
162 DWORD dwReasmTimeout;
163 DWORD dwReasmReqds;
164 DWORD dwReasmOks;
165 DWORD dwReasmFails;
166 DWORD dwFragOks;
167 DWORD dwFragFails;
168 DWORD dwFragCreates;
169 DWORD dwNumIf;
170 DWORD dwNumAddr;
171 DWORD dwNumRoutes;
172} MIB_IPSTATS, *PMIB_IPSTATS;
173
174
175/* ICMP statistics */
176
177typedef struct _MIBICMPSTATS
178{
179 DWORD dwMsgs;
180 DWORD dwErrors;
181 DWORD dwDestUnreachs;
182 DWORD dwTimeExcds;
183 DWORD dwParmProbs;
184 DWORD dwSrcQuenchs;
185 DWORD dwRedirects;
186 DWORD dwEchos;
187 DWORD dwEchoReps;
188 DWORD dwTimestamps;
189 DWORD dwTimestampReps;
190 DWORD dwAddrMasks;
191 DWORD dwAddrMaskReps;
192} MIBICMPSTATS, *PMIBICMPSTATS;
193
194typedef struct _MIBICMPINFO
195{
196 MIBICMPSTATS icmpInStats;
197 MIBICMPSTATS icmpOutStats;
198} MIBICMPINFO;
199
200typedef struct _MIB_ICMP
201{
202 MIBICMPINFO stats;
203} MIB_ICMP, *PMIB_ICMP;
204
205typedef enum
206{
207 ICMP4_ECHO_REPLY = 0,
208 ICMP4_DST_UNREACH = 3,
209 ICMP4_SOURCE_QUENCH = 4,
210 ICMP4_REDIRECT = 5,
211 ICMP4_ECHO_REQUEST = 8,
212 ICMP4_ROUTER_ADVERT = 9,
213 ICMP4_ROUTER_SOLICIT = 10,
214 ICMP4_TIME_EXCEEDED = 11,
215 ICMP4_PARAM_PROB = 12,
216 ICMP4_TIMESTAMP_REQUEST = 13,
217 ICMP4_TIMESTAMP_REPLY = 14,
218 ICMP4_MASK_REQUEST = 17,
219 ICMP4_MASK_REPLY = 18,
220} ICMP4_TYPE, *PICMP4_TYPE;
221
222typedef enum
223{
224 ICMP6_DST_UNREACH = 1,
225 ICMP6_PACKET_TOO_BIG = 2,
226 ICMP6_TIME_EXCEEDED = 3,
227 ICMP6_PARAM_PROB = 4,
228 ICMP6_ECHO_REQUEST = 128,
229 ICMP6_ECHO_REPLY = 129,
230 ICMP6_MEMBERSHIP_QUERY = 130,
231 ICMP6_MEMBERSHIP_REPORT = 131,
232 ICMP6_MEMBERSHIP_REDUCTION = 132,
233 ND_ROUTER_SOLICIT = 133,
234 ND_ROUTER_ADVERT = 134,
235 ND_NEIGHBOR_SOLICIT = 135,
236 ND_NEIGHBOR_ADVERT = 136,
237 ND_REDIRECT = 137,
238 ICMP6_V2_MEMBERSHIP_REPORT = 143,
239} ICMP6_TYPE, *PICMP6_TYPE;
240
241typedef struct _MIBICMPSTATS_EX
242{
243 DWORD dwMsgs;
244 DWORD dwErrors;
245 DWORD rgdwTypeCount[256];
246} MIBICMPSTATS_EX, *PMIBICMPSTATS_EX;
247
248typedef struct _MIB_ICMP_EX
249{
250 MIBICMPSTATS_EX icmpInStats;
251 MIBICMPSTATS_EX icmpOutStats;
252} MIB_ICMP_EX, *PMIB_ICMP_EX;
253
254#endif /* __WINE_IPMIB_H */
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

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