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.

73 lines
1.8 KiB

  1. /********************************************************************/
  2. /** Microsoft LAN Manager **/
  3. /** Copyright(c) Microsoft Corp., 1990-1993 **/
  4. /********************************************************************/
  5. /* :ts=4 */
  6. //** TCPDEB.H - TCP debug definitions.
  7. //
  8. // This file contains the definitions for the debug code.
  9. //
  10. #ifndef NO_TCP_DEFS
  11. #ifdef DEBUG
  12. extern void CheckRBList(IPRcvBuf *RBList, uint Size);
  13. extern void CheckTCBSends(TCB *SendTcb);
  14. extern void CheckTCBRcv(TCB *RcvTCB);
  15. #else
  16. #define CheckRBList(R, S)
  17. #define CheckTCBSends(T)
  18. #define CheckTCBRcv(T)
  19. #endif // DEBUG
  20. #endif // NO_TCP_DEFS
  21. //
  22. // Additional debugging support for NT
  23. //
  24. #if DBG
  25. extern ULONG TCPDebug;
  26. #define TCP_DEBUG_OPEN 0x00000001
  27. #define TCP_DEBUG_CLOSE 0x00000002
  28. #define TCP_DEBUG_ASSOCIATE 0x00000004
  29. #define TCP_DEBUG_CONNECT 0x00000008
  30. #define TCP_DEBUG_SEND 0x00000010
  31. #define TCP_DEBUG_RECEIVE 0x00000020
  32. #define TCP_DEBUG_INFO 0x00000040
  33. #define TCP_DEBUG_IRP 0x00000080
  34. #define TCP_DEBUG_SEND_DGRAM 0x00000100
  35. #define TCP_DEBUG_RECEIVE_DGRAM 0x00000200
  36. #define TCP_DEBUG_EVENT_HANDLER 0x00000400
  37. #define TCP_DEBUG_CLEANUP 0x00000800
  38. #define TCP_DEBUG_CANCEL 0x00001000
  39. #define TCP_DEBUG_RAW 0x00002000
  40. #define TCP_DEBUG_OPTIONS 0x00004000
  41. #define TCP_DEBUG_1323 0x00008000
  42. #define TCP_DEBUG_SACK 0x00010000
  43. #define TCP_DEBUG_CONUDP 0x00020000
  44. #define TCP_DEBUG_GPC 0x00040000
  45. #define TCP_DEBUG_OFFLOAD 0x00080000
  46. #define TCPTRACE(many_args) DbgPrint many_args
  47. #define IF_TCPDBG(flag) if (TCPDebug & flag)
  48. #else // DBG
  49. #define TCPTRACE(many_args)
  50. #define IF_TCPDBG(flag) if (0)
  51. #endif // DBG
  52.