2011-12-13 21:04:41 +01:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2003 Juan Lang
|
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
|
|
|
*/
|
|
|
|
#ifndef __WINE_TCPMIB_H
|
|
|
|
#define __WINE_TCPMIB_H
|
|
|
|
|
2011-12-15 10:06:24 +01:00
|
|
|
#define TCPIP_OWNING_MODULE_SIZE 16
|
|
|
|
|
2011-12-13 21:04:41 +01:00
|
|
|
|
|
|
|
/* TCP tables */
|
|
|
|
|
2011-12-15 10:06:24 +01:00
|
|
|
typedef enum
|
|
|
|
{
|
|
|
|
MIB_TCP_STATE_CLOSED = 1,
|
|
|
|
MIB_TCP_STATE_LISTEN = 2,
|
|
|
|
MIB_TCP_STATE_SYN_SENT = 3,
|
|
|
|
MIB_TCP_STATE_SYN_RCVD = 4,
|
|
|
|
MIB_TCP_STATE_ESTAB = 5,
|
|
|
|
MIB_TCP_STATE_FIN_WAIT1 = 6,
|
|
|
|
MIB_TCP_STATE_FIN_WAIT2 = 7,
|
|
|
|
MIB_TCP_STATE_CLOSE_WAIT = 8,
|
|
|
|
MIB_TCP_STATE_CLOSING = 9,
|
|
|
|
MIB_TCP_STATE_LAST_ACK = 10,
|
|
|
|
MIB_TCP_STATE_TIME_WAIT = 11,
|
|
|
|
MIB_TCP_STATE_DELETE_TCB = 12,
|
|
|
|
} MIB_TCP_STATE;
|
|
|
|
|
|
|
|
typedef enum
|
|
|
|
{
|
|
|
|
TcpConnectionOffloadStateInHost,
|
|
|
|
TcpConnectionOffloadStateOffloading,
|
|
|
|
TcpConnectionOffloadStateOffloaded,
|
|
|
|
TcpConnectionOffloadStateUploading,
|
|
|
|
TcpConnectionOffloadStateMax,
|
|
|
|
} TCP_CONNECTION_OFFLOAD_STATE, *PTCP_CONNECTION_OFFLOAD_STATE;
|
2011-12-13 21:04:41 +01:00
|
|
|
|
|
|
|
typedef struct _MIB_TCPROW
|
|
|
|
{
|
2011-12-15 10:06:24 +01:00
|
|
|
union
|
|
|
|
{
|
|
|
|
DWORD dwState;
|
|
|
|
MIB_TCP_STATE State;
|
|
|
|
} DUMMYUNIONNAME;
|
2011-12-13 21:04:41 +01:00
|
|
|
DWORD dwLocalAddr;
|
|
|
|
DWORD dwLocalPort;
|
|
|
|
DWORD dwRemoteAddr;
|
|
|
|
DWORD dwRemotePort;
|
|
|
|
} MIB_TCPROW, *PMIB_TCPROW;
|
|
|
|
|
|
|
|
typedef struct _MIB_TCPTABLE
|
|
|
|
{
|
|
|
|
DWORD dwNumEntries;
|
|
|
|
MIB_TCPROW table[1];
|
|
|
|
} MIB_TCPTABLE, *PMIB_TCPTABLE;
|
|
|
|
|
2011-12-15 10:06:24 +01:00
|
|
|
typedef struct _MIB_TCPROW_OWNER_PID
|
|
|
|
{
|
|
|
|
DWORD dwState;
|
|
|
|
DWORD dwLocalAddr;
|
|
|
|
DWORD dwLocalPort;
|
|
|
|
DWORD dwRemoteAddr;
|
|
|
|
DWORD dwRemotePort;
|
|
|
|
DWORD dwOwningPid;
|
|
|
|
} MIB_TCPROW_OWNER_PID, *PMIB_TCPROW_OWNER_PID;
|
|
|
|
|
|
|
|
typedef struct _MIB_TCPTABLE_OWNER_PID
|
|
|
|
{
|
|
|
|
DWORD dwNumEntries;
|
|
|
|
MIB_TCPROW_OWNER_PID table[1];
|
|
|
|
} MIB_TCPTABLE_OWNER_PID, *PMIB_TCPTABLE_OWNER_PID;
|
|
|
|
|
|
|
|
typedef struct _MIB_TCPROW2
|
|
|
|
{
|
|
|
|
DWORD dwState;
|
|
|
|
DWORD dwLocalAddr;
|
|
|
|
DWORD dwLocalPort;
|
|
|
|
DWORD dwRemoteAddr;
|
|
|
|
DWORD dwRemotePort;
|
|
|
|
DWORD dwOwningPid;
|
|
|
|
TCP_CONNECTION_OFFLOAD_STATE dwOffloadState;
|
|
|
|
} MIB_TCPROW2, *PMIB_TCPROW2;
|
|
|
|
|
|
|
|
typedef struct _MIB_TCPTABLE2
|
|
|
|
{
|
|
|
|
DWORD dwNumEntries;
|
|
|
|
MIB_TCPROW2 table[1];
|
|
|
|
} MIB_TCPTABLE2, *PMIB_TCPTABLE2;
|
|
|
|
|
2011-12-13 21:04:41 +01:00
|
|
|
|
|
|
|
/* TCP stats */
|
|
|
|
|
2011-12-15 10:06:24 +01:00
|
|
|
typedef enum
|
|
|
|
{
|
|
|
|
TcpRtoAlgorithmOther = 0,
|
|
|
|
TcpRtoAlgorithmConstant = 1,
|
|
|
|
TcpRtoAlgorithmRsre = 2,
|
|
|
|
TcpRtoAlgorithmVanj = 3,
|
|
|
|
|
|
|
|
MIB_TCP_RTO_OTHER = 1,
|
|
|
|
MIB_TCP_RTO_CONSTANT = 2,
|
|
|
|
MIB_TCP_RTO_RSRE = 3,
|
|
|
|
MIB_TCP_RTO_VANJ = 4,
|
|
|
|
} TCP_RTO_ALGORITHM, *PTCP_RTO_ALGORITHM;
|
2011-12-13 21:04:41 +01:00
|
|
|
|
|
|
|
typedef struct _MIB_TCPSTATS
|
|
|
|
{
|
2011-12-15 10:06:24 +01:00
|
|
|
union
|
|
|
|
{
|
|
|
|
DWORD dwRtoAlgorithm;
|
|
|
|
TCP_RTO_ALGORITHM RtoAlgorithm;
|
|
|
|
} DUMMYUNIONNAME;
|
2011-12-13 21:04:41 +01:00
|
|
|
DWORD dwRtoMin;
|
|
|
|
DWORD dwRtoMax;
|
|
|
|
DWORD dwMaxConn;
|
|
|
|
DWORD dwActiveOpens;
|
|
|
|
DWORD dwPassiveOpens;
|
|
|
|
DWORD dwAttemptFails;
|
|
|
|
DWORD dwEstabResets;
|
|
|
|
DWORD dwCurrEstab;
|
|
|
|
DWORD dwInSegs;
|
|
|
|
DWORD dwOutSegs;
|
|
|
|
DWORD dwRetransSegs;
|
|
|
|
DWORD dwInErrs;
|
|
|
|
DWORD dwOutRsts;
|
|
|
|
DWORD dwNumConns;
|
|
|
|
} MIB_TCPSTATS, *PMIB_TCPSTATS;
|
|
|
|
|
|
|
|
#endif /* __WINE_TCPMIB_H */
|