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.

66 lines
1.8 KiB

  1. /*++
  2. Copyright (c) 1989-1993 Microsoft Corporation
  3. Module Name:
  4. spxreg.h
  5. Abstract:
  6. Private include file for the ISN SPX module.
  7. file defines all constants and structures necessary for support of
  8. the dynamic configuration of ST.
  9. Revision History:
  10. --*/
  11. #define HALFSEC_TO_MS_FACTOR 500
  12. #define IPX_REG_PATH L"NwlnkIpx\\Linkage"
  13. // These are used to index into the Parameters array in CONFIG.
  14. #define CONFIG_CONNECTION_COUNT 0
  15. #define CONFIG_CONNECTION_TIMEOUT 1
  16. #define CONFIG_INIT_PACKETS 2
  17. #define CONFIG_MAX_PACKETS 3
  18. #define CONFIG_INITIAL_RETRANSMIT_TIMEOUT 4
  19. #define CONFIG_KEEPALIVE_COUNT 5
  20. #define CONFIG_KEEPALIVE_TIMEOUT 6
  21. #define CONFIG_WINDOW_SIZE 7
  22. #define CONFIG_SOCKET_RANGE_START 8
  23. #define CONFIG_SOCKET_RANGE_END 9
  24. #define CONFIG_SOCKET_UNIQUENESS 10
  25. #define CONFIG_MAX_PACKET_SIZE 11
  26. #define CONFIG_REXMIT_COUNT 12
  27. // Hidden parameters
  28. #define CONFIG_DISABLE_SPX2 13
  29. #define CONFIG_ROUTER_MTU 14
  30. #define CONFIG_BACKCOMP_SPX 15
  31. #define CONFIG_DISABLE_RTT 16
  32. #define CONFIG_PARAMETERS 17
  33. // Main configuration structure.
  34. typedef struct _CONFIG {
  35. ULONG cf_Parameters[CONFIG_PARAMETERS]; // index defined above
  36. NDIS_STRING cf_DeviceName; // device name exported
  37. PWSTR cf_RegistryPathBuffer; // path to config info
  38. } CONFIG, * PCONFIG;
  39. #define PARAM(x) (SpxDevice->dev_ConfigInfo->cf_Parameters[(x)])
  40. NTSTATUS
  41. SpxInitGetConfiguration (
  42. IN PUNICODE_STRING RegistryPath,
  43. OUT PCONFIG * ConfigPtr);
  44. VOID
  45. SpxInitFreeConfiguration (
  46. IN PCONFIG Config);