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.

116 lines
2.1 KiB

  1. /*++
  2. Copyright (c) 1995 Microsoft Corporation
  3. Module Name:
  4. globals.c
  5. Abstract:
  6. globals
  7. Author:
  8. Stefan Solomon 07/06/1995
  9. Revision History:
  10. --*/
  11. #include "precomp.h"
  12. #pragma hdrstop
  13. // *** registry parameters
  14. ULONG SendGenReqOnWkstaDialLinks = 1;
  15. ULONG CheckUpdateTime = 10;
  16. // *** broadcast and null values for net & node ***
  17. UCHAR bcastnet[4] = { 0xff, 0xff, 0xff, 0xff };
  18. UCHAR bcastnode[6] = { 0xff, 0xff, 0xff, 0xff, 0xff, 0xff };
  19. UCHAR nullnet[4] = { 0, 0, 0, 0 };
  20. // *** Rip operational state ***
  21. ULONG RipOperState = OPER_STATE_DOWN;
  22. //
  23. // *** Database Lock - protects: ***
  24. //
  25. // Interface Database, i.e:
  26. //
  27. // List of interface CBs ordered by interface index
  28. // Hash table of interface CBs hashed by interface index
  29. // Hash table of interface CBs hashed by adapter index
  30. // Discarded interfaces list
  31. //
  32. CRITICAL_SECTION DbaseCritSec;
  33. // List of interface CBs ordered by interface index
  34. LIST_ENTRY IndexIfList;
  35. // Hash table of interface CBs hashed by interface index
  36. LIST_ENTRY IfIndexHt[IF_INDEX_HASH_TABLE_SIZE];
  37. // Hash table of interface CBs hashed by adapter index
  38. LIST_ENTRY AdapterIndexHt[ADAPTER_INDEX_HASH_TABLE_SIZE];
  39. // List of discarded interface CBs waiting for all references to terminate
  40. // before being freed
  41. LIST_ENTRY DiscardedIfList;
  42. // *** Queues Lock - protects: ***
  43. //
  44. // Repost receive packets queue
  45. // Work items queue
  46. // Timer queue
  47. //
  48. // Receiver ref count
  49. // Queue of event messages for the router manager
  50. CRITICAL_SECTION QueuesCritSec;
  51. // workers queue
  52. // LIST_ENTRY WorkersQueue;
  53. // timer queue
  54. LIST_ENTRY TimerQueue;
  55. // queue of rcv packets used by the worker and waiting to be reposted (or freed)
  56. // by the rcv thread
  57. LIST_ENTRY RepostRcvPacketsQueue;
  58. // queue of event messages
  59. LIST_ENTRY RipMessageQueue;
  60. //*** Worker Thread Wait Objects Table ***
  61. HANDLE WorkerThreadObjects[MAX_WORKER_THREAD_OBJECTS];
  62. //*** Timer Timeout ***
  63. ULONG TimerTimeout = INFINITE;
  64. // IO Handle
  65. HANDLE RipSocketHandle;
  66. // Io Completion Port
  67. HANDLE IoCompletionPortHandle;