mirror of
https://github.com/reactos/wine.git
synced 2024-11-25 12:49:45 +00:00
cf76be61b2
Include them where appropriate.
80 lines
2.2 KiB
C
80 lines
2.2 KiB
C
/*
|
|
* 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
|
|
|
|
|
|
/* TCP tables */
|
|
|
|
#define MIB_TCP_STATE_CLOSED 1
|
|
#define MIB_TCP_STATE_LISTEN 2
|
|
#define MIB_TCP_STATE_SYN_SENT 3
|
|
#define MIB_TCP_STATE_SYN_RCVD 4
|
|
#define MIB_TCP_STATE_ESTAB 5
|
|
#define MIB_TCP_STATE_FIN_WAIT1 6
|
|
#define MIB_TCP_STATE_FIN_WAIT2 7
|
|
#define MIB_TCP_STATE_CLOSE_WAIT 8
|
|
#define MIB_TCP_STATE_CLOSING 9
|
|
#define MIB_TCP_STATE_LAST_ACK 10
|
|
#define MIB_TCP_STATE_TIME_WAIT 11
|
|
#define MIB_TCP_STATE_DELETE_TCB 12
|
|
|
|
typedef struct _MIB_TCPROW
|
|
{
|
|
DWORD dwState;
|
|
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;
|
|
|
|
|
|
/* TCP stats */
|
|
|
|
#define MIB_TCP_RTO_OTHER 1
|
|
#define MIB_TCP_RTO_CONSTANT 2
|
|
#define MIB_TCP_RTO_RSRE 3
|
|
#define MIB_TCP_RTO_VANJ 4
|
|
|
|
typedef struct _MIB_TCPSTATS
|
|
{
|
|
DWORD dwRtoAlgorithm;
|
|
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 */
|