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