]> git.sur5r.net Git - freertos/blob - FreeRTOS-Plus/Source/FreeRTOS-Plus-UDP/include/FreeRTOSIPConfigDefaults.h
Improve DCHP handling by removing the yiaddr field from outgoing DHCP packets and...
[freertos] / FreeRTOS-Plus / Source / FreeRTOS-Plus-UDP / include / FreeRTOSIPConfigDefaults.h
1 /*\r
2  * FreeRTOS+UDP V1.0.0 (C) 2013 Real Time Engineers ltd.\r
3  *\r
4  * This file is part of the FreeRTOS+UDP distribution.  The FreeRTOS+UDP license\r
5  * terms are different to the FreeRTOS license terms.\r
6  *\r
7  * FreeRTOS+UDP uses a dual license model that allows the software to be used \r
8  * under a standard GPL open source license, or a commercial license.  The \r
9  * standard GPL license (unlike the modified GPL license under which FreeRTOS \r
10  * itself is distributed) requires that all software statically linked with \r
11  * FreeRTOS+UDP is also distributed under the same GPL V2 license terms.  \r
12  * Details of both license options follow:\r
13  *\r
14  * - Open source licensing -\r
15  * FreeRTOS+UDP is a free download and may be used, modified, evaluated and\r
16  * distributed without charge provided the user adheres to version two of the\r
17  * GNU General Public License (GPL) and does not remove the copyright notice or\r
18  * this text.  The GPL V2 text is available on the gnu.org web site, and on the\r
19  * following URL: http://www.FreeRTOS.org/gpl-2.0.txt.\r
20  *\r
21  * - Commercial licensing -\r
22  * Businesses and individuals that for commercial or other reasons cannot comply\r
23  * with the terms of the GPL V2 license must obtain a commercial license before \r
24  * incorporating FreeRTOS+UDP into proprietary software for distribution in any \r
25  * form.  Commercial licenses can be purchased from http://shop.freertos.org/udp \r
26  * and do not require any source files to be changed.\r
27  *\r
28  * FreeRTOS+UDP is distributed in the hope that it will be useful.  You cannot\r
29  * use FreeRTOS+UDP unless you agree that you use the software 'as is'.\r
30  * FreeRTOS+UDP is provided WITHOUT ANY WARRANTY; without even the implied\r
31  * warranties of NON-INFRINGEMENT, MERCHANTABILITY or FITNESS FOR A PARTICULAR\r
32  * PURPOSE. Real Time Engineers Ltd. disclaims all conditions and terms, be they\r
33  * implied, expressed, or statutory.\r
34  *\r
35  * 1 tab == 4 spaces!\r
36  *\r
37  * http://www.FreeRTOS.org\r
38  * http://www.FreeRTOS.org/udp\r
39  *\r
40  */\r
41 \r
42 #ifndef FREERTOS_DEFAULT_IP_CONFIG_H\r
43 #define FREERTOS_DEFAULT_IP_CONFIG_H\r
44 \r
45 /* This file provides default values for configuration options that are missing\r
46 from the FreeRTOSIPConfig.h configuration header file. */\r
47 \r
48 #ifndef ipconfigUSE_NETWORK_EVENT_HOOK\r
49         #define ipconfigUSE_NETWORK_EVENT_HOOK 0\r
50 #endif\r
51 \r
52 #ifndef ipconfigMAX_SEND_BLOCK_TIME_TICKS\r
53         #define ipconfigMAX_SEND_BLOCK_TIME_TICKS ( 20 / portTICK_RATE_MS )\r
54 #endif\r
55 \r
56 #ifndef ipconfigARP_CACHE_ENTRIES\r
57         #define ipconfigARP_CACHE_ENTRIES               10\r
58 #endif\r
59 \r
60 #ifndef ipconfigMAX_ARP_RETRANSMISSIONS\r
61         #define ipconfigMAX_ARP_RETRANSMISSIONS ( 5 )\r
62 #endif\r
63 \r
64 #ifndef ipconfigMAX_ARP_AGE\r
65         #define ipconfigMAX_ARP_AGE                     150\r
66 #endif\r
67 \r
68 #ifndef ipconfigINCLUDE_FULL_INET_ADDR\r
69         #define ipconfigINCLUDE_FULL_INET_ADDR  1\r
70 #endif\r
71 \r
72 #ifndef ipconfigNUM_NETWORK_BUFFERS\r
73         #define ipconfigNUM_NETWORK_BUFFERS             45\r
74 #endif\r
75 \r
76 #ifndef ipconfigEVENT_QUEUE_LENGTH\r
77         #define ipconfigEVENT_QUEUE_LENGTH              ( ipconfigNUM_NETWORK_BUFFERS + 5 )\r
78 #endif\r
79 \r
80 #ifndef ipconfigALLOW_SOCKET_SEND_WITHOUT_BIND\r
81         #define ipconfigALLOW_SOCKET_SEND_WITHOUT_BIND 1\r
82 #endif\r
83 \r
84 #ifndef updconfigIP_TIME_TO_LIVE\r
85         #define updconfigIP_TIME_TO_LIVE                128\r
86 #endif\r
87 \r
88 #ifndef ipconfigCAN_FRAGMENT_OUTGOING_PACKETS\r
89         #define ipconfigCAN_FRAGMENT_OUTGOING_PACKETS 0\r
90 #endif\r
91 \r
92 #ifndef ipconfigNETWORK_MTU\r
93         #define ipconfigNETWORK_MTU 1500\r
94 #endif\r
95 \r
96 #ifndef ipconfigUSE_DHCP\r
97         #define ipconfigUSE_DHCP        1\r
98 #endif\r
99 \r
100 #ifndef ipconfigMAXIMUM_DISCOVER_TX_PERIOD\r
101         #ifdef _WINDOWS_\r
102                 #define ipconfigMAXIMUM_DISCOVER_TX_PERIOD              ( 999 / portTICK_RATE_MS )\r
103         #else\r
104                 #define ipconfigMAXIMUM_DISCOVER_TX_PERIOD              ( 30000 / portTICK_RATE_MS )\r
105         #endif /* _WINDOWS_ */\r
106 #endif /* ipconfigMAXIMUM_DISCOVER_TX_PERIOD */\r
107 \r
108 #ifndef ipconfigUSE_DNS\r
109         #define ipconfigUSE_DNS         1\r
110 #endif\r
111 \r
112 #ifndef ipconfigREPLY_TO_INCOMING_PINGS\r
113         #define ipconfigREPLY_TO_INCOMING_PINGS                         1\r
114 #endif\r
115 \r
116 #ifndef ipconfigSUPPORT_OUTGOING_PINGS\r
117         #define ipconfigSUPPORT_OUTGOING_PINGS                          0\r
118 #endif\r
119 \r
120 #ifndef updconfigLOOPBACK_ETHERNET_PACKETS\r
121         #define updconfigLOOPBACK_ETHERNET_PACKETS      0\r
122 #endif\r
123 \r
124 #ifndef ipconfigFILTER_OUT_NON_ETHERNET_II_FRAMES\r
125         #define ipconfigFILTER_OUT_NON_ETHERNET_II_FRAMES 1\r
126 #endif\r
127 \r
128 #ifndef ipconfigETHERNET_DRIVER_FILTERS_FRAME_TYPES\r
129         #define ipconfigETHERNET_DRIVER_FILTERS_FRAME_TYPES     1\r
130 #endif\r
131 \r
132 #ifndef configINCLUDE_TRACE_RELATED_CLI_COMMANDS\r
133         #define ipconfigINCLUDE_EXAMPLE_FREERTOS_PLUS_TRACE_CALLS 0\r
134 #else\r
135         #define ipconfigINCLUDE_EXAMPLE_FREERTOS_PLUS_TRACE_CALLS configINCLUDE_TRACE_RELATED_CLI_COMMANDS\r
136 #endif\r
137 \r
138 #ifndef ipconfigFREERTOS_PLUS_NABTO\r
139         #define ipconfigFREERTOS_PLUS_NABTO 0\r
140 #endif\r
141 \r
142 #ifndef ipconfigNABTO_TASK_STACK_SIZE\r
143         #define ipconfigNABTO_TASK_STACK_SIZE ( configMINIMAL_STACK_SIZE * 2 )\r
144 #endif\r
145 \r
146 #ifndef ipconfigNABTO_TASK_PRIORITY\r
147         #define ipconfigNABTO_TASK_PRIORITY      ( ipconfigUDP_TASK_PRIORITY + 1 )\r
148 #endif\r
149 \r
150 #endif /* FREERTOS_DEFAULT_IP_CONFIG_H */\r