Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

80 lines
2.4 KiB

  1. // -*- mode: C++; tab-width: 4; indent-tabs-mode: nil -*- (for GNU Emacs)
  2. //
  3. // Copyright (c) 1985-2000 Microsoft Corporation
  4. //
  5. // This file is part of the Microsoft Research IPv6 Network Protocol Stack.
  6. // You should have received a copy of the Microsoft End-User License Agreement
  7. // for this software along with this release; see the file "license.txt".
  8. // If not, please see http://www.research.microsoft.com/msripv6/license.htm,
  9. // or write to Microsoft Research, One Microsoft Way, Redmond, WA 98052-6399.
  10. //
  11. // Abstract:
  12. //
  13. // Transmission Control Protocol configuration information.
  14. //
  15. #ifndef FALSE
  16. #define FALSE 0
  17. #endif
  18. #ifndef TRUE
  19. #define TRUE 1
  20. #endif
  21. //
  22. // TCP global configuration variables.
  23. //
  24. extern uint AllowUserRawAccess;
  25. extern uint PMTUDiscovery;
  26. extern uint PMTUBHDetect;
  27. extern uint ISNStoreSize;
  28. extern uint KeepAliveTime;
  29. extern uint KAInterval;
  30. extern uint DefaultRcvWin;
  31. extern uint MaxConnections;
  32. extern uint MaxConnBlocks;
  33. extern uint TcbTableSize;
  34. extern uint MaxConnectRexmitCount;
  35. extern uint MaxDataRexmitCount;
  36. extern uint BSDUrgent;
  37. extern uint PreloadCount;
  38. extern uint FinWait2TO;
  39. extern uint NTWMaxConnectCount;
  40. extern uint NTWMaxConnectTime;
  41. extern uint MaxUserPort;
  42. extern uint SynAttackProtect;
  43. //
  44. // Default values for many of the above globals.
  45. //
  46. #define DEFAULT_DEAD_GW_DETECT TRUE
  47. #define DEFAULT_PMTU_DISCOVERY TRUE
  48. #define DEFAULT_PMTU_BHDETECT FALSE
  49. #define DEFAULT_KA_TIME 7200000
  50. #define DEFAULT_KA_INTERVAL 1000
  51. #define DEFAULT_RCV_WIN (8192 * 2)
  52. #define DEFAULT_MAX_CONNECTIONS (INVALID_CONN_INDEX - 1)
  53. #define DEFAULT_MAX_CONN_BLOCKS_WS_SMALL 16
  54. #define DEFAULT_MAX_CONN_BLOCKS_WS_MEDIUM 32
  55. #define DEFAULT_MAX_CONN_BLOCKS_WS_LARGE 128
  56. #define DEFAULT_MAX_CONN_BLOCKS_AS_SMALL 128
  57. #define DEFAULT_MAX_CONN_BLOCKS_AS_MEDIUM 256
  58. #define DEFAULT_MAX_CONN_BLOCKS_AS_LARGE 1024
  59. #define DEFAULT_MAX_CONN_BLOCKS_AS_LARGE64 4096
  60. #define DEFAULT_CONNECT_REXMIT_CNT 3
  61. #define DEFAULT_DATA_REXMIT_CNT 5
  62. #define DEFAULT_BSD_URGENT TRUE
  63. #define DEFAULT_PRELOAD_COUNT 0
  64. #define MAX_PRELOAD_COUNT 32
  65. #define PRELOAD_BLOCK_SIZE 16384
  66. #define NTW_MAX_CONNECT_COUNT 15
  67. #define NTW_MAX_CONNECT_TIME 600
  68. #define DEFAULT_TCB_TABLE_SIZE (128 * KeNumberProcessors * KeNumberProcessors)
  69. #define MIN_TCB_TABLE_SIZE 64
  70. #define MAX_TCB_TABLE_SIZE 0x10000
  71. #define DEFAULT_AO_TABLE_SIZE_WS 31
  72. #define DEFAULT_AO_TABLE_SIZE_AS 257
  73. #define DEFAULT_AO_TABLE_SIZE_AS64 1021