IPTraceMacroDefaults.h 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243
  1. /*
  2. * FreeRTOS+TCP V2.3.2 LTS Patch 1
  3. * Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
  4. *
  5. * Permission is hereby granted, free of charge, to any person obtaining a copy of
  6. * this software and associated documentation files (the "Software"), to deal in
  7. * the Software without restriction, including without limitation the rights to
  8. * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
  9. * the Software, and to permit persons to whom the Software is furnished to do so,
  10. * subject to the following conditions:
  11. *
  12. * The above copyright notice and this permission notice shall be included in all
  13. * copies or substantial portions of the Software.
  14. *
  15. * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  16. * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
  17. * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
  18. * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
  19. * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
  20. * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  21. *
  22. * http://aws.amazon.com/freertos
  23. * http://www.FreeRTOS.org
  24. */
  25. /* This file provides default (empty) implementations for any IP trace macros
  26. * that are not defined by the user. See
  27. * http://www.FreeRTOS.org/FreeRTOS-Plus/FreeRTOS_Plus_TCP/TCP_IP_Trace.html */
  28. #ifndef UDP_TRACE_MACRO_DEFAULTS_H
  29. #define UDP_TRACE_MACRO_DEFAULTS_H
  30. #ifndef iptraceNETWORK_DOWN
  31. #define iptraceNETWORK_DOWN()
  32. #endif
  33. #ifndef iptraceNETWORK_BUFFER_RELEASED
  34. #define iptraceNETWORK_BUFFER_RELEASED( pxBufferAddress )
  35. #endif
  36. #ifndef iptraceNETWORK_BUFFER_OBTAINED
  37. #define iptraceNETWORK_BUFFER_OBTAINED( pxBufferAddress )
  38. #endif
  39. #ifndef iptraceNETWORK_BUFFER_OBTAINED_FROM_ISR
  40. #define iptraceNETWORK_BUFFER_OBTAINED_FROM_ISR( pxBufferAddress )
  41. #endif
  42. #ifndef iptraceNETWORK_INTERFACE_INPUT
  43. /* An Ethernet packet has been received. */
  44. #define iptraceNETWORK_INTERFACE_INPUT( uxDataLength, pucEthernetBuffer )
  45. #endif
  46. #ifndef iptraceNETWORK_INTERFACE_OUTPUT
  47. /* An Ethernet packet will be sent. */
  48. #define iptraceNETWORK_INTERFACE_OUTPUT( uxDataLength, pucEthernetBuffer )
  49. #endif
  50. #ifndef iptraceFAILED_TO_OBTAIN_NETWORK_BUFFER
  51. #define iptraceFAILED_TO_OBTAIN_NETWORK_BUFFER()
  52. #endif
  53. #ifndef iptraceFAILED_TO_OBTAIN_NETWORK_BUFFER_FROM_ISR
  54. #define iptraceFAILED_TO_OBTAIN_NETWORK_BUFFER_FROM_ISR()
  55. #endif
  56. #ifndef iptraceCREATING_ARP_REQUEST
  57. #define iptraceCREATING_ARP_REQUEST( ulIPAddress )
  58. #endif
  59. #ifndef iptraceARP_TABLE_ENTRY_WILL_EXPIRE
  60. #define iptraceARP_TABLE_ENTRY_WILL_EXPIRE( ulIPAddress )
  61. #endif
  62. #ifndef iptraceARP_TABLE_ENTRY_EXPIRED
  63. #define iptraceARP_TABLE_ENTRY_EXPIRED( ulIPAddress )
  64. #endif
  65. #ifndef iptraceARP_TABLE_ENTRY_CREATED
  66. #define iptraceARP_TABLE_ENTRY_CREATED( ulIPAddress, ucMACAddress )
  67. #endif
  68. #ifndef iptraceSENDING_UDP_PACKET
  69. #define iptraceSENDING_UDP_PACKET( ulIPAddress )
  70. #endif
  71. #ifndef iptracePACKET_DROPPED_TO_GENERATE_ARP
  72. #define iptracePACKET_DROPPED_TO_GENERATE_ARP( ulIPAddress )
  73. #endif
  74. #ifndef iptraceICMP_PACKET_RECEIVED
  75. #define iptraceICMP_PACKET_RECEIVED()
  76. #endif
  77. #ifndef iptraceSENDING_PING_REPLY
  78. #define iptraceSENDING_PING_REPLY( ulIPAddress )
  79. #endif
  80. #ifndef traceARP_PACKET_RECEIVED
  81. #define traceARP_PACKET_RECEIVED()
  82. #endif
  83. #ifndef iptracePROCESSING_RECEIVED_ARP_REPLY
  84. #define iptracePROCESSING_RECEIVED_ARP_REPLY( ulIPAddress )
  85. #endif
  86. #ifndef iptraceSENDING_ARP_REPLY
  87. #define iptraceSENDING_ARP_REPLY( ulIPAddress )
  88. #endif
  89. #ifndef iptraceFAILED_TO_CREATE_SOCKET
  90. #define iptraceFAILED_TO_CREATE_SOCKET()
  91. #endif
  92. #ifndef iptraceFAILED_TO_CREATE_EVENT_GROUP
  93. #define iptraceFAILED_TO_CREATE_EVENT_GROUP()
  94. #endif
  95. #ifndef iptraceRECVFROM_DISCARDING_BYTES
  96. #define iptraceRECVFROM_DISCARDING_BYTES( xNumberOfBytesDiscarded )
  97. #endif
  98. #ifndef iptraceETHERNET_RX_EVENT_LOST
  99. #define iptraceETHERNET_RX_EVENT_LOST()
  100. #endif
  101. #ifndef iptraceSTACK_TX_EVENT_LOST
  102. #define iptraceSTACK_TX_EVENT_LOST( xEvent )
  103. #endif
  104. #ifndef iptraceNETWORK_EVENT_RECEIVED
  105. #define iptraceNETWORK_EVENT_RECEIVED( eEvent )
  106. #endif
  107. #ifndef iptraceBIND_FAILED
  108. #define iptraceBIND_FAILED( xSocket, usPort )
  109. #endif
  110. #ifndef iptraceDHCP_REQUESTS_FAILED_USING_DEFAULT_IP_ADDRESS
  111. #define iptraceDHCP_REQUESTS_FAILED_USING_DEFAULT_IP_ADDRESS( ulIPAddress )
  112. #endif
  113. #ifndef iptraceSENDING_DHCP_DISCOVER
  114. #define iptraceSENDING_DHCP_DISCOVER()
  115. #endif
  116. #ifndef iptraceSENDING_DHCP_REQUEST
  117. #define iptraceSENDING_DHCP_REQUEST()
  118. #endif
  119. #ifndef iptraceDHCP_SUCCEDEED
  120. #define iptraceDHCP_SUCCEDEED( address )
  121. #endif
  122. #ifndef iptraceNETWORK_INTERFACE_TRANSMIT
  123. #define iptraceNETWORK_INTERFACE_TRANSMIT()
  124. #endif
  125. #ifndef iptraceNETWORK_INTERFACE_RECEIVE
  126. #define iptraceNETWORK_INTERFACE_RECEIVE()
  127. #endif
  128. #ifndef iptraceSENDING_DNS_REQUEST
  129. #define iptraceSENDING_DNS_REQUEST()
  130. #endif
  131. #ifndef iptraceWAITING_FOR_TX_DMA_DESCRIPTOR
  132. #define iptraceWAITING_FOR_TX_DMA_DESCRIPTOR()
  133. #endif
  134. #ifndef ipconfigINCLUDE_EXAMPLE_FREERTOS_PLUS_TRACE_CALLS
  135. #define ipconfigINCLUDE_EXAMPLE_FREERTOS_PLUS_TRACE_CALLS 0
  136. #endif
  137. #ifndef iptraceFAILED_TO_NOTIFY_SELECT_GROUP
  138. #define iptraceFAILED_TO_NOTIFY_SELECT_GROUP( xSocket )
  139. #endif
  140. #ifndef pvPortMallocSocket
  141. #define pvPortMallocSocket( xSize ) pvPortMalloc( ( xSize ) )
  142. #endif
  143. #ifndef iptraceRECVFROM_TIMEOUT
  144. #define iptraceRECVFROM_TIMEOUT()
  145. #endif
  146. #ifndef iptraceRECVFROM_INTERRUPTED
  147. #define iptraceRECVFROM_INTERRUPTED()
  148. #endif
  149. #ifndef iptraceNO_BUFFER_FOR_SENDTO
  150. #define iptraceNO_BUFFER_FOR_SENDTO()
  151. #endif
  152. #ifndef iptraceSENDTO_SOCKET_NOT_BOUND
  153. #define iptraceSENDTO_SOCKET_NOT_BOUND()
  154. #endif
  155. #ifndef iptraceSENDTO_DATA_TOO_LONG
  156. #define iptraceSENDTO_DATA_TOO_LONG()
  157. #endif
  158. #ifndef ipconfigUSE_TCP_MEM_STATS
  159. #define ipconfigUSE_TCP_MEM_STATS 0
  160. #endif
  161. #if ( ipconfigUSE_TCP_MEM_STATS == 0 )
  162. /* See tools/tcp_mem_stat.c */
  163. #ifndef iptraceMEM_STATS_CREATE
  164. #define iptraceMEM_STATS_CREATE( xMemType, pxObject, uxSize )
  165. #endif
  166. #ifndef iptraceMEM_STATS_DELETE
  167. #define iptraceMEM_STATS_DELETE( pxObject )
  168. #endif
  169. #ifndef iptraceMEM_STATS_CLOSE
  170. #define iptraceMEM_STATS_CLOSE()
  171. #endif
  172. #endif /* ( ipconfigUSE_TCP_MEM_STATS != 0 ) */
  173. #ifndef ipconfigUSE_DUMP_PACKETS
  174. #define ipconfigUSE_DUMP_PACKETS 0
  175. #endif
  176. #if ( ipconfigUSE_DUMP_PACKETS == 0 )
  177. /* See tools/tcp_dump_packets.c */
  178. #ifndef iptraceDUMP_INIT
  179. #define iptraceDUMP_INIT( pcFileName, pxEntries )
  180. #endif
  181. #ifndef iptraceDUMP_PACKET
  182. #define iptraceDUMP_PACKET( pucBuffer, uxLength, xIncoming )
  183. #endif
  184. #endif /* ( ipconfigUSE_DUMP_PACKETS != 0 ) */
  185. #endif /* UDP_TRACE_MACRO_DEFAULTS_H */