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.

60 lines
950 B

  1. /*++
  2. Copyright (c) 1997-2001 Microsoft Corporation
  3. Module Name:
  4. NsInit.h
  5. Abstract:
  6. Declarations for IpSec NAT shim initialization and shutdown routines
  7. Author:
  8. Jonathan Burstein (jonburs) 11-July-2001
  9. Environment:
  10. Kernel mode
  11. Revision History:
  12. --*/
  13. #pragma once
  14. //
  15. // Macros for handling network-order shorts and longs
  16. //
  17. #define ADDRESS_BYTES(a) \
  18. ((a) & 0x000000FF), (((a) & 0x0000FF00) >> 8), \
  19. (((a) & 0x00FF0000) >> 16), (((a) & 0xFF000000) >> 24)
  20. //
  21. // Define a macro version of ntohs which can be applied to constants,
  22. // and which can thus be computed at compile time.
  23. //
  24. #define NTOHS(p) ((((p) & 0xFF00) >> 8) | (((UCHAR)(p) << 8)))
  25. //
  26. // Global Variables
  27. //
  28. extern PDEVICE_OBJECT NsIpSecDeviceObject;
  29. #if DBG
  30. extern ULONG NsTraceClassesEnabled;
  31. #endif
  32. //
  33. // Function Prototypes
  34. //
  35. NTSTATUS
  36. NsCleanupShim(
  37. VOID
  38. );