Source code of Windows XP (NT5)
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.

72 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 TCPPortsExhausted;
  26. extern uint TCPMaxPortsExhausted;
  27. extern uint TCPMaxPortsExhaustedLW;
  28. extern uint MaxConnectResponseRexmitCountTmp;
  29. extern CACHE_LINE_KSPIN_LOCK SynAttLock;
  30. extern uint BSDUrgent;
  31. extern uint PreloadCount;
  32. extern uint FinWait2TO;
  33. extern uint NTWMaxConnectCount;
  34. extern uint NTWMaxConnectTime;
  35. extern uint MaxUserPort;
  36. extern uint SecurityFilteringEnabled;
  37. /*INC*/
  38. #define DEFAULT_DEAD_GW_DETECT TRUE
  39. #define DEFAULT_PMTU_DISCOVERY TRUE
  40. #define DEFAULT_PMTU_BHDETECT FALSE
  41. #define DEFAULT_KA_TIME 7200000
  42. #define DEFAULT_KA_INTERVAL 1000
  43. #define DEFAULT_RCV_WIN 8192*2
  44. #define DEFAULT_PRELOAD_COUNT 0
  45. #define MAX_PRELOAD_COUNT 32
  46. #define PRELOAD_BLOCK_SIZE 16384
  47. #define DEFAULT_MAX_USER_PORT 5000 // Maximum value for a user port.
  48. #define FIN_WAIT2_TO 120
  49. /*NOINC*/
  50. #ifndef VXD
  51. #define DEFAULT_MAX_CONNECTIONS (INVALID_CONN_INDEX - 1)
  52. #define NTW_MAX_CONNECT_TIME 600
  53. #define NTW_MAX_CONNECT_COUNT 15
  54. #else
  55. /*INC*/
  56. #define DEFAULT_MAX_CONNECTIONS 100
  57. /*NOINC*/
  58. #endif
  59. /*INC*/
  60. #define DEFAULT_CONNECT_REXMIT_CNT 3
  61. #define DEFAULT_DATA_REXMIT_CNT 5
  62. #define DEFAULT_BSD_URGENT TRUE