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.

75 lines
2.2 KiB

  1. // -*- mode: C++; tab-width: 4; indent-tabs-mode: nil -*- (for GNU Emacs)
  2. //
  3. // Copyright (c) 1985-2000 Microsoft Corporation
  4. //
  5. // This file is part of the Microsoft Research IPv6 Network Protocol Stack.
  6. // You should have received a copy of the Microsoft End-User License Agreement
  7. // for this software along with this release; see the file "license.txt".
  8. // If not, please see http://www.research.microsoft.com/msripv6/license.htm,
  9. // or write to Microsoft Research, One Microsoft Way, Redmond, WA 98052-6399.
  10. //
  11. // Abstract:
  12. //
  13. // Transmission Control Protocol debug code definitions.
  14. //
  15. #ifndef NO_TCP_DEFS
  16. #if DBG
  17. #ifndef UDP_ONLY
  18. extern void CheckPacketList(IPv6Packet *Chain, uint Size);
  19. extern void CheckTCBSends(TCB *SendTcb);
  20. extern void CheckTCBRcv(TCB *RcvTCB);
  21. #else
  22. #define CheckPacketList(C, S)
  23. #define CheckRBList(R, S)
  24. #define CheckTCBSends(T)
  25. #define CheckTCBRcv(T)
  26. #endif // UDP_ONLY
  27. #else
  28. #define CheckPacketList(C, S)
  29. #define CheckRBList(R, S)
  30. #define CheckTCBSends(T)
  31. #define CheckTCBRcv(T)
  32. #endif // DBG
  33. #endif // NO_TCP_DEFS
  34. //
  35. // Additional debugging support for NT
  36. //
  37. #if DBG
  38. extern ULONG TCPDebug;
  39. #define TCP_DEBUG_OPEN 0x00000001
  40. #define TCP_DEBUG_CLOSE 0x00000002
  41. #define TCP_DEBUG_ASSOCIATE 0x00000004
  42. #define TCP_DEBUG_CONNECT 0x00000008
  43. #define TCP_DEBUG_SEND 0x00000010
  44. #define TCP_DEBUG_RECEIVE 0x00000020
  45. #define TCP_DEBUG_INFO 0x00000040
  46. #define TCP_DEBUG_IRP 0x00000080
  47. #define TCP_DEBUG_SEND_DGRAM 0x00000100
  48. #define TCP_DEBUG_RECEIVE_DGRAM 0x00000200
  49. #define TCP_DEBUG_EVENT_HANDLER 0x00000400
  50. #define TCP_DEBUG_CLEANUP 0x00000800
  51. #define TCP_DEBUG_CANCEL 0x00001000
  52. #define TCP_DEBUG_RAW 0x00002000
  53. #define TCP_DEBUG_OPTIONS 0x00004000
  54. #define TCP_DEBUG_MSS 0x00008000
  55. #define IF_TCPDBG(flag) if (TCPDebug & flag)
  56. #define CHECK_STRUCT(s, t) \
  57. ASSERTMSG("Structure assertion failure for type " #t, \
  58. (s)->t##_sig == t##_signature)
  59. #else // DBG
  60. #define IF_TCPDBG(flag) if (0)
  61. #define CHECK_STRUCT(s, t)
  62. #endif // DBG