\r
/* Assign the next port in the range. */\r
taskENTER_CRITICAL();\r
+ {\r
usNextPortToUse++;\r
- taskEXIT_CRITICAL();\r
\r
- /* Has it overflowed? */\r
- if( usNextPortToUse == 0U )\r
- {\r
- /* Don't go right back to the start of the dynamic/private port\r
- range numbers as any persistent sockets are likely to have been\r
- create first so the early port numbers may still be in use. */\r
- usNextPortToUse = socketAUTO_PORT_ALLOCATION_RESET_NUMBER;\r
+ /* Has it overflowed? */\r
+ if( usNextPortToUse == 0U )\r
+ {\r
+ /* Don't go right back to the start of the dynamic/private port\r
+ range numbers as any persistent sockets are likely to have been\r
+ create first so the early port numbers may still be in use. */\r
+ usNextPortToUse = socketAUTO_PORT_ALLOCATION_RESET_NUMBER;\r
+ }\r
}\r
+ taskEXIT_CRITICAL();\r
\r
usReturn = FreeRTOS_htons( usNextPortToUse );\r
\r
#endif\r
\r
#ifndef iptraceWAITING_FOR_TX_DMA_DESCRIPTOR\r
- #define iptraceWAITING_FOR_TX_DMA_DESCRIPTOR\r
+ #define iptraceWAITING_FOR_TX_DMA_DESCRIPTOR()\r
#endif\r
\r
#ifndef ipconfigINCLUDE_EXAMPLE_FREERTOS_PLUS_TRACE_CALLS\r
#ifndef iptraceFAILED_TO_NOTIFY_SELECT_GROUP\r
#define iptraceFAILED_TO_NOTIFY_SELECT_GROUP( xSocket )\r
#endif\r
+\r
+#ifndef iptraceRECVFROM_TIMEOUT\r
+ #define iptraceRECVFROM_TIMEOUT()\r
+#endif\r
+\r
+#ifndef iptraceNO_BUFFER_FOR_SENDTO\r
+ #define iptraceNO_BUFFER_FOR_SENDTO()\r
+#endif\r
+\r
+#ifndef iptraceSENDTO_SOCKET_NOT_BOUND\r
+ #define iptraceSENDTO_SOCKET_NOT_BOUND()\r
+#endif\r
+\r
+#ifndef iptraceSENDTO_DATA_TOO_LONG\r
+ #define iptraceSENDTO_DATA_TOO_LONG()\r
+#endif\r
+\r
#endif /* UDP_TRACE_MACRO_DEFAULTS_H */\r