3 * Copyright (C) 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
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:
12 * The above copyright notice and this permission notice shall be included in all
13 * copies or substantial portions of the Software.
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.
22 * http://aws.amazon.com/freertos
23 * http://www.FreeRTOS.org
26 /* This file provides default (empty) implementations for any IP trace macros
27 that are not defined by the user. See
28 http://www.FreeRTOS.org/FreeRTOS-Plus/FreeRTOS_Plus_TCP/TCP_IP_Trace.html */
30 #ifndef UDP_TRACE_MACRO_DEFAULTS_H
31 #define UDP_TRACE_MACRO_DEFAULTS_H
33 #ifndef iptraceNETWORK_DOWN
34 #define iptraceNETWORK_DOWN()
37 #ifndef iptraceNETWORK_BUFFER_RELEASED
38 #define iptraceNETWORK_BUFFER_RELEASED( pxBufferAddress )
41 #ifndef iptraceNETWORK_BUFFER_OBTAINED
42 #define iptraceNETWORK_BUFFER_OBTAINED( pxBufferAddress )
45 #ifndef iptraceNETWORK_BUFFER_OBTAINED_FROM_ISR
46 #define iptraceNETWORK_BUFFER_OBTAINED_FROM_ISR( pxBufferAddress )
49 #ifndef iptraceFAILED_TO_OBTAIN_NETWORK_BUFFER
50 #define iptraceFAILED_TO_OBTAIN_NETWORK_BUFFER()
53 #ifndef iptraceFAILED_TO_OBTAIN_NETWORK_BUFFER_FROM_ISR
54 #define iptraceFAILED_TO_OBTAIN_NETWORK_BUFFER_FROM_ISR()
57 #ifndef iptraceCREATING_ARP_REQUEST
58 #define iptraceCREATING_ARP_REQUEST( ulIPAddress )
61 #ifndef iptraceARP_TABLE_ENTRY_WILL_EXPIRE
62 #define iptraceARP_TABLE_ENTRY_WILL_EXPIRE( ulIPAddress )
65 #ifndef iptraceARP_TABLE_ENTRY_EXPIRED
66 #define iptraceARP_TABLE_ENTRY_EXPIRED( ulIPAddress )
69 #ifndef iptraceARP_TABLE_ENTRY_CREATED
70 #define iptraceARP_TABLE_ENTRY_CREATED( ulIPAddress, ucMACAddress )
73 #ifndef iptraceSENDING_UDP_PACKET
74 #define iptraceSENDING_UDP_PACKET( ulIPAddress )
77 #ifndef iptracePACKET_DROPPED_TO_GENERATE_ARP
78 #define iptracePACKET_DROPPED_TO_GENERATE_ARP( ulIPAddress )
81 #ifndef iptraceICMP_PACKET_RECEIVED
82 #define iptraceICMP_PACKET_RECEIVED()
85 #ifndef iptraceSENDING_PING_REPLY
86 #define iptraceSENDING_PING_REPLY( ulIPAddress )
89 #ifndef traceARP_PACKET_RECEIVED
90 #define traceARP_PACKET_RECEIVED()
93 #ifndef iptracePROCESSING_RECEIVED_ARP_REPLY
94 #define iptracePROCESSING_RECEIVED_ARP_REPLY( ulIPAddress )
97 #ifndef iptraceSENDING_ARP_REPLY
98 #define iptraceSENDING_ARP_REPLY( ulIPAddress )
101 #ifndef iptraceFAILED_TO_CREATE_SOCKET
102 #define iptraceFAILED_TO_CREATE_SOCKET()
105 #ifndef iptraceFAILED_TO_CREATE_EVENT_GROUP
106 #define iptraceFAILED_TO_CREATE_EVENT_GROUP()
109 #ifndef iptraceRECVFROM_DISCARDING_BYTES
110 #define iptraceRECVFROM_DISCARDING_BYTES( xNumberOfBytesDiscarded )
113 #ifndef iptraceETHERNET_RX_EVENT_LOST
114 #define iptraceETHERNET_RX_EVENT_LOST()
117 #ifndef iptraceSTACK_TX_EVENT_LOST
118 #define iptraceSTACK_TX_EVENT_LOST( xEvent )
121 #ifndef iptraceNETWORK_EVENT_RECEIVED
122 #define iptraceNETWORK_EVENT_RECEIVED( eEvent )
125 #ifndef iptraceBIND_FAILED
126 #define iptraceBIND_FAILED( xSocket, usPort )
129 #ifndef iptraceDHCP_REQUESTS_FAILED_USING_DEFAULT_IP_ADDRESS
130 #define iptraceDHCP_REQUESTS_FAILED_USING_DEFAULT_IP_ADDRESS( ulIPAddress )
133 #ifndef iptraceSENDING_DHCP_DISCOVER
134 #define iptraceSENDING_DHCP_DISCOVER()
137 #ifndef iptraceSENDING_DHCP_REQUEST
138 #define iptraceSENDING_DHCP_REQUEST()
141 #ifndef iptraceDHCP_SUCCEDEED
142 #define iptraceDHCP_SUCCEDEED( address )
145 #ifndef iptraceNETWORK_INTERFACE_TRANSMIT
146 #define iptraceNETWORK_INTERFACE_TRANSMIT()
149 #ifndef iptraceNETWORK_INTERFACE_RECEIVE
150 #define iptraceNETWORK_INTERFACE_RECEIVE()
153 #ifndef iptraceSENDING_DNS_REQUEST
154 #define iptraceSENDING_DNS_REQUEST()
157 #ifndef iptraceWAITING_FOR_TX_DMA_DESCRIPTOR
158 #define iptraceWAITING_FOR_TX_DMA_DESCRIPTOR()
161 #ifndef ipconfigINCLUDE_EXAMPLE_FREERTOS_PLUS_TRACE_CALLS
162 #define ipconfigINCLUDE_EXAMPLE_FREERTOS_PLUS_TRACE_CALLS 0
165 #ifndef iptraceFAILED_TO_NOTIFY_SELECT_GROUP
166 #define iptraceFAILED_TO_NOTIFY_SELECT_GROUP( xSocket )
169 #ifndef pvPortMallocSocket
170 #define pvPortMallocSocket(xSize) pvPortMalloc( ( xSize ) )
173 #ifndef iptraceRECVFROM_TIMEOUT
174 #define iptraceRECVFROM_TIMEOUT()
177 #ifndef iptraceRECVFROM_INTERRUPTED
178 #define iptraceRECVFROM_INTERRUPTED()
181 #ifndef iptraceNO_BUFFER_FOR_SENDTO
182 #define iptraceNO_BUFFER_FOR_SENDTO()
185 #ifndef iptraceSENDTO_SOCKET_NOT_BOUND
186 #define iptraceSENDTO_SOCKET_NOT_BOUND()
189 #ifndef iptraceSENDTO_DATA_TOO_LONG
190 #define iptraceSENDTO_DATA_TOO_LONG()
193 #endif /* UDP_TRACE_MACRO_DEFAULTS_H */