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.

59 lines
1.2 KiB

  1. /*++
  2. Copyright (c) 1997-2001 Microsoft Corporation
  3. Module Name:
  4. NsConn.h
  5. Abstract:
  6. IpSec NAT shim debug code
  7. Author:
  8. Jonathan Burstein (jonburs) 23-July-2001
  9. Environment:
  10. Kernel mode
  11. Revision History:
  12. --*/
  13. #pragma once
  14. //
  15. // Kernel-debugger output definitions
  16. //
  17. #if DBG
  18. #define TRACE(Class,Args) \
  19. if ((TRACE_CLASS_ ## Class) & (NsTraceClassesEnabled)) { DbgPrint Args; }
  20. #define ERROR(Args) TRACE(ERRORS, Args)
  21. #define CALLTRACE(Args) TRACE(CALLS, Args)
  22. #else
  23. #define TRACE(Class,Args)
  24. #define ERROR(Args)
  25. #define CALLTRACE(Args)
  26. #endif
  27. #define TRACE_CLASS_CALLS 0x00000001
  28. #define TRACE_CLASS_CONN_LIFETIME 0x00000002
  29. #define TRACE_CLASS_CONN_LOOKUP 0x00000004
  30. #define TRACE_CLASS_PORT_ALLOC 0x00000008
  31. #define TRACE_CLASS_PACKET 0x00000010
  32. #define TRACE_CLASS_TIMER 0x00000020
  33. #define TRACE_CLASS_ICMP 0x00000040
  34. #define TRACE_CLASS_ERRORS 0x00000080
  35. //
  36. // Pool-tag value definitions, sorted by tag value
  37. //
  38. #define NS_TAG_ICMP 'cIsN'
  39. #define NS_TAG_CONNECTION 'eCsN'