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.

77 lines
1.8 KiB

  1. /*++
  2. Copyright (c) Microsoft Corporation
  3. Module Name:
  4. globals.h
  5. Abstract:
  6. Author:
  7. Revision History:
  8. --*/
  9. #ifndef __GLOBALS__
  10. #define __GLOBALS__
  11. #include <ntosp.h>
  12. #include <windef.h>
  13. #include <ndis.h>
  14. #include <tdikrnl.h>
  15. #include <zwapi.h>
  16. #include "defs.h"
  17. #include "cache.h"
  18. #include <ipexport.h>
  19. #include <cxport.h>
  20. #include <ip.h>
  21. #include <ipfilter.h>
  22. #include <ntddip.h>
  23. #include <ipfltdrv.h>
  24. #include "logger.h"
  25. #include "filter.h"
  26. #include "proto.h"
  27. extern FILTER_DRIVER g_filters;
  28. extern EXTENSION_DRIVER g_Extension;
  29. extern DWORD g_dwCacheSize;
  30. extern DWORD g_dwHashLists;
  31. extern KSPIN_LOCK g_lOutFilterLock;
  32. extern KSPIN_LOCK g_lInFilterLock;
  33. extern LIST_ENTRY g_freeOutFilters;
  34. extern LIST_ENTRY g_freeInFilters;
  35. extern DWORD g_dwNumHitsDefaultIn;
  36. extern DWORD g_dwNumHitsDefaultOut;
  37. extern DWORD g_FragThresholdSize;
  38. extern ERESOURCE FilterListResourceLock;
  39. extern ULONG g_ulBoundInterfaceCount;
  40. extern NPAGED_LOOKASIDE_LIST g_llFragCacheBlocks;
  41. extern LONGLONG g_llInactivityTime;
  42. extern KSPIN_LOCK g_kslFragLock;
  43. extern DWORD g_dwFragTableSize;
  44. extern PLIST_ENTRY g_pleFragTable;
  45. extern DWORD g_dwNumFragsAllocs;
  46. extern ULONG TraceClassesEnabled;
  47. #define FILTER_INTERFACE_SIZE (sizeof(FILTER_INTERFACE) - sizeof(LIST_ENTRY) \
  48. + ((g_dwHashLists + 2) * sizeof(LIST_ENTRY)))
  49. #define PAGED_INTERFACE_SIZE (sizeof(PAGED_FILTER_INTERFACE) - \
  50. sizeof(LIST_ENTRY) + (2 * (g_dwHashLists * sizeof(LIST_ENTRY))))
  51. #ifdef DRIVER_PERF
  52. extern DWORD g_dwFragments,g_dwNumPackets, g_dwCache1,g_dwCache2;
  53. extern DWORD g_dwWalk1,g_dwWalk2,g_dwForw,g_dwWalkCache;
  54. extern KSPIN_LOCK g_slPerfLock;
  55. extern LARGE_INTEGER g_liTotalTime;
  56. #endif
  57. #endif