VirtualBox

source: vbox/trunk/src/VBox/Devices/Graphics/shaderlib/wine/include/tcpmib.h@ 53206

Last change on this file since 53206 was 53206, checked in by vboxsync, 10 years ago

Devices/vmsvga: header fixes

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 5.3 KB
Line 
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_TCPMIB_H
29#define __WINE_TCPMIB_H
30
31#define TCPIP_OWNING_MODULE_SIZE 16
32
33
34/* TCP tables */
35
36typedef enum
37{
38 MIB_TCP_STATE_CLOSED = 1,
39 MIB_TCP_STATE_LISTEN = 2,
40 MIB_TCP_STATE_SYN_SENT = 3,
41 MIB_TCP_STATE_SYN_RCVD = 4,
42 MIB_TCP_STATE_ESTAB = 5,
43 MIB_TCP_STATE_FIN_WAIT1 = 6,
44 MIB_TCP_STATE_FIN_WAIT2 = 7,
45 MIB_TCP_STATE_CLOSE_WAIT = 8,
46 MIB_TCP_STATE_CLOSING = 9,
47 MIB_TCP_STATE_LAST_ACK = 10,
48 MIB_TCP_STATE_TIME_WAIT = 11,
49 MIB_TCP_STATE_DELETE_TCB = 12,
50} MIB_TCP_STATE;
51
52typedef enum
53{
54 TcpConnectionOffloadStateInHost,
55 TcpConnectionOffloadStateOffloading,
56 TcpConnectionOffloadStateOffloaded,
57 TcpConnectionOffloadStateUploading,
58 TcpConnectionOffloadStateMax,
59} TCP_CONNECTION_OFFLOAD_STATE, *PTCP_CONNECTION_OFFLOAD_STATE;
60
61typedef struct _MIB_TCPROW
62{
63 union
64 {
65 DWORD dwState;
66 MIB_TCP_STATE State;
67 } DUMMYUNIONNAME;
68 DWORD dwLocalAddr;
69 DWORD dwLocalPort;
70 DWORD dwRemoteAddr;
71 DWORD dwRemotePort;
72} MIB_TCPROW, *PMIB_TCPROW;
73
74typedef struct _MIB_TCPTABLE
75{
76 DWORD dwNumEntries;
77 MIB_TCPROW table[1];
78} MIB_TCPTABLE, *PMIB_TCPTABLE;
79
80typedef struct _MIB_TCP6ROW {
81 MIB_TCP_STATE State;
82 IN6_ADDR LocalAddr;
83 DWORD dwLocalScopeId;
84 DWORD dwLocalPort;
85 IN6_ADDR RemoteAddr;
86 DWORD dwRemoteScopeId;
87 DWORD dwRemotePort;
88} MIB_TCP6ROW, *PMIB_TCP6ROW;
89
90typedef struct _MIB_TCP6TABLE {
91 DWORD dwNumEntries;
92 MIB_TCP6ROW table[1];
93} MIB_TCP6TABLE, *PMIB_TCP6TABLE;
94
95typedef struct _MIB_TCP6ROW2 {
96 IN6_ADDR LocalAddr;
97 DWORD dwLocalScopeId;
98 DWORD dwLocalPort;
99 IN6_ADDR RemoteAddr;
100 DWORD dwRemoteScopeId;
101 DWORD dwRemotePort;
102 MIB_TCP_STATE State;
103 DWORD dwOwningPid;
104 TCP_CONNECTION_OFFLOAD_STATE dwOffloadState;
105} MIB_TCP6ROW2, *PMIB_TCP6ROW2;
106
107typedef struct _MIB_TCP6TABLE2 {
108 DWORD dwNumEntries;
109 MIB_TCP6ROW2 table[1];
110} MIB_TCP6TABLE2, *PMIB_TCP6TABLE2;
111
112typedef struct _MIB_TCPROW_OWNER_PID
113{
114 DWORD dwState;
115 DWORD dwLocalAddr;
116 DWORD dwLocalPort;
117 DWORD dwRemoteAddr;
118 DWORD dwRemotePort;
119 DWORD dwOwningPid;
120} MIB_TCPROW_OWNER_PID, *PMIB_TCPROW_OWNER_PID;
121
122typedef struct _MIB_TCPTABLE_OWNER_PID
123{
124 DWORD dwNumEntries;
125 MIB_TCPROW_OWNER_PID table[1];
126} MIB_TCPTABLE_OWNER_PID, *PMIB_TCPTABLE_OWNER_PID;
127
128typedef struct _MIB_TCPROW_OWNER_MODULE
129{
130 DWORD dwState;
131 DWORD dwLocalAddr;
132 DWORD dwLocalPort;
133 DWORD dwRemoteAddr;
134 DWORD dwRemotePort;
135 DWORD dwOwningPid;
136 LARGE_INTEGER liCreateTimestamp;
137 ULONGLONG OwningModuleInfo[TCPIP_OWNING_MODULE_SIZE];
138} MIB_TCPROW_OWNER_MODULE, *PMIB_TCPROW_OWNER_MODULE;
139
140typedef struct _MIB_TCPTABLE_OWNER_MODULE
141{
142 DWORD dwNumEntries;
143 MIB_TCPROW_OWNER_MODULE table[1];
144} MIB_TCPTABLE_OWNER_MODULE, *PMIB_TCPTABLE_OWNER_MODULE;
145
146typedef struct _MIB_TCPROW2
147{
148 DWORD dwState;
149 DWORD dwLocalAddr;
150 DWORD dwLocalPort;
151 DWORD dwRemoteAddr;
152 DWORD dwRemotePort;
153 DWORD dwOwningPid;
154 TCP_CONNECTION_OFFLOAD_STATE dwOffloadState;
155} MIB_TCPROW2, *PMIB_TCPROW2;
156
157typedef struct _MIB_TCPTABLE2
158{
159 DWORD dwNumEntries;
160 MIB_TCPROW2 table[1];
161} MIB_TCPTABLE2, *PMIB_TCPTABLE2;
162
163
164/* TCP stats */
165
166typedef enum
167{
168 TcpRtoAlgorithmOther = 0,
169 TcpRtoAlgorithmConstant = 1,
170 TcpRtoAlgorithmRsre = 2,
171 TcpRtoAlgorithmVanj = 3,
172
173 MIB_TCP_RTO_OTHER = 1,
174 MIB_TCP_RTO_CONSTANT = 2,
175 MIB_TCP_RTO_RSRE = 3,
176 MIB_TCP_RTO_VANJ = 4,
177} TCP_RTO_ALGORITHM, *PTCP_RTO_ALGORITHM;
178
179typedef struct _MIB_TCPSTATS
180{
181 union
182 {
183 DWORD dwRtoAlgorithm;
184 TCP_RTO_ALGORITHM RtoAlgorithm;
185 } DUMMYUNIONNAME;
186 DWORD dwRtoMin;
187 DWORD dwRtoMax;
188 DWORD dwMaxConn;
189 DWORD dwActiveOpens;
190 DWORD dwPassiveOpens;
191 DWORD dwAttemptFails;
192 DWORD dwEstabResets;
193 DWORD dwCurrEstab;
194 DWORD dwInSegs;
195 DWORD dwOutSegs;
196 DWORD dwRetransSegs;
197 DWORD dwInErrs;
198 DWORD dwOutRsts;
199 DWORD dwNumConns;
200} MIB_TCPSTATS, *PMIB_TCPSTATS;
201
202#endif /* __WINE_TCPMIB_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