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