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.

88 lines
2.5 KiB

  1. /*++
  2. Copyright (c) 1997 Microsoft Corporation
  3. Module Name:
  4. debug.h
  5. Abstract:
  6. This module contains declarations related to the NAT's debug-code.
  7. Author:
  8. Abolade Gbadegesin (t-abolag) 16-July-1997
  9. Revision History:
  10. --*/
  11. #ifndef _NAT_DEBUG_H_
  12. #define _NAT_DEBUG_H_
  13. //
  14. // Kernel-debugger output definitions
  15. //
  16. #if DBG
  17. #define TRACE(Class,Args) \
  18. if ((TRACE_CLASS_ ## Class) & (TraceClassesEnabled)) { DbgPrint Args; }
  19. #define ERROR(Args) DbgPrint Args
  20. #define CALLTRACE(Args) TRACE(CALLS, Args)
  21. #else
  22. #define TRACE(Class,Args)
  23. #define ERROR(Args)
  24. #define CALLTRACE(Args)
  25. #endif
  26. #define TRACE_CLASS_CALLS 0x00000001
  27. #define TRACE_CLASS_MAPPING 0x00000002
  28. #define TRACE_CLASS_POOL 0x00000004
  29. #define TRACE_CLASS_XLATE 0x00000008
  30. #define TRACE_CLASS_EDIT 0x00000010
  31. #define TRACE_CLASS_ICMP 0x00000020
  32. #define TRACE_CLASS_PER_PACKET 0x00000040
  33. #define TRACE_CLASS_PPTP 0x00000080
  34. #define TRACE_CLASS_TICKET 0x00000100
  35. #define TRACE_CLASS_NBT 0x00000200
  36. #define TRACE_CLASS_XSUM 0x00000400
  37. #define TRACE_CLASS_IP 0x00000800
  38. #define TRACE_CLASS_REDIRECT 0x00001000
  39. #define TRACE_CLASS_WMI 0x00002000
  40. #define TRACE_CLASS_RHIZOME 0x00004000
  41. //
  42. // Pool-tag value definitions, sorted by tag value
  43. //
  44. #define NAT_TAG_RANGE_ARRAY 'ARaN'
  45. #define NAT_TAG_ADDRESS 'AtaN'
  46. #define NAT_TAG_BINDING 'BtaN'
  47. #define NAT_TAG_ICMP 'CIaN'
  48. #define NAT_TAG_IF_CONFIG 'CtaN'
  49. #define NAT_TAG_SD 'DSaN'
  50. #define NAT_TAG_DIRECTOR 'DtaN'
  51. #define NAT_TAG_EDITOR 'EtaN'
  52. #define NAT_TAG_HOOK 'HtaN'
  53. #define NAT_TAG_INTERFACE 'ItaN'
  54. #define NAT_TAG_BITMAP 'MBaN'
  55. #define NAT_TAG_FREE_MAP 'MFaN'
  56. #define NAT_TAG_MAPPING 'MtaN'
  57. #define NAT_TAG_NBT 'NtaN'
  58. #define NAT_TAG_IOCTL 'OIaN'
  59. #define NAT_TAG_IP 'PIaN'
  60. #define NAT_TAG_PPTP 'PtaN'
  61. #define NAT_TAG_REDIRECT 'RtaN'
  62. #define NAT_TAG_SORT 'StaN'
  63. #define NAT_TAG_DYNAMIC_TICKET 'TDaN'
  64. #define NAT_TAG_TICKET 'TtaN'
  65. #define NAT_TAG_USED_ADDRESS 'AUaN'
  66. #define NAT_TAG_WORK_ITEM 'WtaN'
  67. #define NAT_TAG_WMI 'mWaN'
  68. #define NAT_TAG_RHIZOME 'zRaN'
  69. #endif // _NAT_DEBUG_H_