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.

69 lines
1.8 KiB

  1. /*******************************************************************/
  2. /* Copyright(c) 1993 Microsoft Corporation */
  3. /*******************************************************************/
  4. //***
  5. //
  6. // Filename: debug.h
  7. //
  8. // Description: Debug macros definitions
  9. //
  10. // Author: Stefan Solomon (stefans) October 4, 1993.
  11. //
  12. // Revision History:
  13. //
  14. //***
  15. #ifndef _IPXFWD_DEBUG_
  16. #define _IPXFWD_DEBUG_
  17. #if DBG
  18. #define DBG_PACKET_ALLOC ((ULONG)0x00000001)
  19. #define DBG_INTF_TABLE ((ULONG)0x00000002)
  20. #define DBG_ROUTE_TABLE ((ULONG)0x00000004)
  21. #define DBG_NBROUTE_TABLE ((ULONG)0x00000008)
  22. #define DBG_IOCTLS ((ULONG)0x00000010)
  23. #define DBG_LINEIND ((ULONG)0x00000020)
  24. #define DBG_IPXBIND ((ULONG)0x00000040)
  25. #define DBG_REGISTRY ((ULONG)0x00000080)
  26. #define DBG_INT_RECV ((ULONG)0x00000100)
  27. #define DBG_RECV ((ULONG)0x00000200)
  28. #define DBG_SEND ((ULONG)0x00000400)
  29. #define DBG_INT_SEND ((ULONG)0x00000800)
  30. #define DBG_NETBIOS ((ULONG)0x00001000)
  31. #define DBG_IPXROUTE ((ULONG)0x00002000)
  32. #define DBG_DIALREQS ((ULONG)0x00004000)
  33. #define DBG_SPOOFING ((ULONG)0x00008000)
  34. #define DBG_INFORMATION ((ULONG)0x10000000)
  35. #define DBG_WARNING ((ULONG)0x20000000)
  36. #define DBG_ERROR ((ULONG)0x40000000)
  37. #define DEF_DBG_LEVEL ( \
  38. DBG_ERROR|DBG_WARNING \
  39. | DBG_INTF_TABLE \
  40. | DBG_LINEIND \
  41. | DBG_IPXBIND \
  42. | DBG_REGISTRY \
  43. | DBG_IPXROUTE \
  44. | DBG_IOCTLS \
  45. | DBG_DIALREQS \
  46. | DBG_SPOOFING \
  47. )
  48. extern ULONG DbgLevel;
  49. extern LONGLONG ActivityTreshhold;
  50. extern LARGE_INTEGER CounterFrequency;
  51. #define IpxFwdDbgPrint(COMPONENT,LEVEL,ARGS) \
  52. do { \
  53. if ((DbgLevel & ((COMPONENT)|(LEVEL)))==((COMPONENT)|(LEVEL))){ \
  54. DbgPrint ARGS; \
  55. } \
  56. } while (0)
  57. #else
  58. #define IpxFwdDbgPrint(COMPONENT,LEVEL,ARGS) do {NOTHING;} while (0)
  59. #endif
  60. #endif