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.

69 lines
2.0 KiB

  1. /********************************************************************/
  2. /** Microsoft LAN Manager **/
  3. /** Copyright(c) Microsoft Corp., 1990-2000 **/
  4. /********************************************************************/
  5. /* :ts=4 */
  6. //* TCPCFG.H - Definitions of configuration information for TCP.
  7. //
  8. /*NOINC*/
  9. extern uint DeadGWDetect;
  10. extern uint PMTUDiscovery;
  11. extern uint PMTUBHDetect;
  12. extern uint KeepAliveTime;
  13. extern uint KAInterval;
  14. extern uint DefaultRcvWin;
  15. extern uint MaxConnections;
  16. extern uint MaxConnectRexmitCount;
  17. extern uint MaxConnectResponseRexmitCount;
  18. extern uint MaxDataRexmitCount;
  19. extern uint SynAttackProtect;
  20. extern uint TCPHalfOpen;
  21. extern uint TCPHalfOpenRetried;
  22. extern uint TCPMaxHalfOpen;
  23. extern uint TCPMaxHalfOpenRetried;
  24. extern uint TCPMaxHalfOpenRetriedLW;
  25. extern uint MaxConnectResponseRexmitCountTmp;
  26. extern CACHE_LINE_KSPIN_LOCK SynAttLock;
  27. extern uint BSDUrgent;
  28. extern uint PreloadCount;
  29. extern uint FinWait2TO;
  30. extern uint NTWMaxConnectCount;
  31. extern uint NTWMaxConnectTime;
  32. extern uint MaxUserPort;
  33. extern uint SecurityFilteringEnabled;
  34. /*INC*/
  35. #define DEFAULT_DEAD_GW_DETECT TRUE
  36. #define DEFAULT_PMTU_DISCOVERY TRUE
  37. #define DEFAULT_PMTU_BHDETECT FALSE
  38. #define DEFAULT_KA_TIME 7200000
  39. #define DEFAULT_KA_INTERVAL 1000
  40. #define DEFAULT_RCV_WIN 8192*2
  41. #define DEFAULT_PRELOAD_COUNT 0
  42. #define MAX_PRELOAD_COUNT 32
  43. #define PRELOAD_BLOCK_SIZE 16384
  44. #define DEFAULT_MAX_USER_PORT 5000 // Maximum value for a user port.
  45. #define FIN_WAIT2_TO 120
  46. /*NOINC*/
  47. #ifndef VXD
  48. #define DEFAULT_MAX_CONNECTIONS (INVALID_CONN_INDEX - 1)
  49. #define NTW_MAX_CONNECT_TIME 600
  50. #define NTW_MAX_CONNECT_COUNT 15
  51. #else
  52. /*INC*/
  53. #define DEFAULT_MAX_CONNECTIONS 100
  54. /*NOINC*/
  55. #endif
  56. /*INC*/
  57. #define DEFAULT_CONNECT_REXMIT_CNT 3
  58. #define DEFAULT_DATA_REXMIT_CNT 5
  59. #define DEFAULT_BSD_URGENT TRUE