windows-nt/Source/XPSP1/NT/net/tcpip/tpipv6/tcpip6/inc/tcpcfg.h

82 lines
2.4 KiB
C
Raw Normal View History

2020-09-26 03:20:57 -05:00
// -*- mode: C++; tab-width: 4; indent-tabs-mode: nil -*- (for GNU Emacs)
//
// Copyright (c) 1985-2000 Microsoft Corporation
//
// This file is part of the Microsoft Research IPv6 Network Protocol Stack.
// You should have received a copy of the Microsoft End-User License Agreement
// for this software along with this release; see the file "license.txt".
// If not, please see http://www.research.microsoft.com/msripv6/license.htm,
// or write to Microsoft Research, One Microsoft Way, Redmond, WA 98052-6399.
//
// Abstract:
//
// Transmission Control Protocol configuration information.
//
#ifndef FALSE
#define FALSE 0
#endif
#ifndef TRUE
#define TRUE 1
#endif
//
// TCP global configuration variables.
//
extern uint AllowUserRawAccess;
extern uint DeadGWDetect;
extern uint PMTUDiscovery;
extern uint PMTUBHDetect;
extern uint ISNStoreSize;
extern uint KeepAliveTime;
extern uint KAInterval;
extern uint DefaultRcvWin;
extern uint MaxConnections;
extern uint MaxConnBlocks;
extern uint TcbTableSize;
extern uint MaxConnectRexmitCount;
extern uint MaxDataRexmitCount;
extern uint BSDUrgent;
extern uint PreloadCount;
extern uint FinWait2TO;
extern uint NTWMaxConnectCount;
extern uint NTWMaxConnectTime;
extern uint MaxUserPort;
extern uint SynAttackProtect;
//
// Default values for many of the above globals.
//
#define DEFAULT_DEAD_GW_DETECT TRUE
#define DEFAULT_PMTU_DISCOVERY TRUE
#define DEFAULT_PMTU_BHDETECT FALSE
#define DEFAULT_KA_TIME 7200000
#define DEFAULT_KA_INTERVAL 1000
#define DEFAULT_RCV_WIN (8192 * 2)
#define DEFAULT_MAX_CONNECTIONS (INVALID_CONN_INDEX - 1)
#define DEFAULT_MAX_CONN_BLOCKS_WS_SMALL 16
#define DEFAULT_MAX_CONN_BLOCKS_WS_MEDIUM 32
#define DEFAULT_MAX_CONN_BLOCKS_WS_LARGE 128
#define DEFAULT_MAX_CONN_BLOCKS_AS_SMALL 128
#define DEFAULT_MAX_CONN_BLOCKS_AS_MEDIUM 256
#define DEFAULT_MAX_CONN_BLOCKS_AS_LARGE 1024
#define DEFAULT_MAX_CONN_BLOCKS_AS_LARGE64 4096
#define DEFAULT_CONNECT_REXMIT_CNT 3
#define DEFAULT_DATA_REXMIT_CNT 5
#define DEFAULT_BSD_URGENT TRUE
#define DEFAULT_PRELOAD_COUNT 0
#define MAX_PRELOAD_COUNT 32
#define PRELOAD_BLOCK_SIZE 16384
#define NTW_MAX_CONNECT_COUNT 15
#define NTW_MAX_CONNECT_TIME 600
#define DEFAULT_TCB_TABLE_SIZE (128 * KeNumberProcessors * KeNumberProcessors)
#define MIN_TCB_TABLE_SIZE 64
#define MAX_TCB_TABLE_SIZE 0x10000
#define DEFAULT_AO_TABLE_SIZE_WS 31
#define DEFAULT_AO_TABLE_SIZE_AS 257
#define DEFAULT_AO_TABLE_SIZE_AS64 1021