/*\r
- * FreeRTOS+TCP 191100 experimental\r
- * Copyright (C) 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.\r
+ * FreeRTOS+TCP V2.2.0\r
+ * Copyright (C) 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.\r
*\r
* Permission is hereby granted, free of charge, to any person obtaining a copy of\r
* this software and associated documentation files (the "Software"), to deal in\r
#define ipconfigSOCK_DEFAULT_SEND_BLOCK_TIME portMAX_DELAY\r
#endif\r
\r
+\r
+#ifndef ipconfigDNS_RECEIVE_BLOCK_TIME_TICKS\r
+ #define ipconfigDNS_RECEIVE_BLOCK_TIME_TICKS pdMS_TO_TICKS( 500u )\r
+#endif\r
+\r
+#ifndef ipconfigDNS_SEND_BLOCK_TIME_TICKS\r
+ #define ipconfigDNS_SEND_BLOCK_TIME_TICKS pdMS_TO_TICKS( 500u )\r
+#endif\r
/*\r
* FreeRTOS debug logging routine (proposal)\r
* The macro will be called in the printf() style. Users can define\r
#endif /* _WINDOWS_ */\r
#endif /* ipconfigMAXIMUM_DISCOVER_TX_PERIOD */\r
\r
+#if( ipconfigUSE_DNS == 0 )\r
+ /* The DNS module will not be included. */\r
+ #if( ( ipconfigUSE_LLMNR != 0 ) || ( ipconfigUSE_NBNS != 0 ) )\r
+ /* LLMNR and NBNS depend on DNS because those protocols share a lot of code. */\r
+ #error When either LLMNR or NBNS is used, ipconfigUSE_DNS must be defined\r
+ #endif\r
+#endif\r
+\r
#ifndef ipconfigUSE_DNS\r
#define ipconfigUSE_DNS 1\r
#endif\r
#define ipconfigUSE_LLMNR ( 0 )\r
#endif\r
\r
-#if( !defined( ipconfigUSE_DNS ) )\r
- #if( ( ipconfigUSE_LLMNR != 0 ) || ( ipconfigUSE_NBNS != 0 ) )\r
- /* LLMNR and NBNS depend on DNS because those protocols share a lot of code. */\r
- #error When either LLMNR or NBNS is used, ipconfigUSE_DNS must be defined\r
- #endif\r
-#endif\r
-\r
#ifndef ipconfigREPLY_TO_INCOMING_PINGS\r
#define ipconfigREPLY_TO_INCOMING_PINGS 1\r
#endif\r
#define ipconfigSOCKET_HAS_USER_WAKE_CALLBACK 0\r
#endif\r
\r
-#ifndef ipconfigSOCKET_HAS_USER_WAKE_CALLBACK_WITH_CONTEXT\r
- #define ipconfigSOCKET_HAS_USER_WAKE_CALLBACK_WITH_CONTEXT 0\r
-#endif\r
-\r
-#if( ipconfigSOCKET_HAS_USER_WAKE_CALLBACK != 0 ) && ( ipconfigSOCKET_HAS_USER_WAKE_CALLBACK_WITH_CONTEXT != 0 )\r
- #error ipconfigSOCKET_HAS_USER_WAKE_CALLBACK_WITH_CONTEXT cannot be used with ipconfigSOCKET_HAS_USER_WAKE_CALLBACK - undefine one of them\r
-#endif\r
-\r
#ifndef ipconfigSUPPORT_SELECT_FUNCTION\r
#define ipconfigSUPPORT_SELECT_FUNCTION 0\r
#endif\r
#define ipconfigUSE_NBNS 0\r
#endif\r
\r
-/* As an attack surface reduction for ports that listen for inbound\r
+/* As an attack surface reduction for ports that listen for inbound \r
connections, hang protection can help reduce the impact of SYN floods. */\r
#ifndef ipconfigTCP_HANG_PROTECTION\r
#define ipconfigTCP_HANG_PROTECTION 1\r