1 /*
2  *  Copyright (c) 2018, The OpenThread Authors.
3  *  All rights reserved.
4  *
5  *  Redistribution and use in source and binary forms, with or without
6  *  modification, are permitted provided that the following conditions are met:
7  *  1. Redistributions of source code must retain the above copyright
8  *     notice, this list of conditions and the following disclaimer.
9  *  2. Redistributions in binary form must reproduce the above copyright
10  *     notice, this list of conditions and the following disclaimer in the
11  *     documentation and/or other materials provided with the distribution.
12  *  3. Neither the name of the copyright holder nor the
13  *     names of its contributors may be used to endorse or promote products
14  *     derived from this software without specific prior written permission.
15  *
16  *  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
17  *  AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
18  *  IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
19  *  ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
20  *  LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
21  *  CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
22  *  SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
23  *  INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
24  *  CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
25  *  ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
26  *  POSSIBILITY OF SUCH DAMAGE.
27  */
28 
29 /**
30  * @file
31  *   Checking for configuration options. Removed or replaced OPENTHREAD_CONFIG options.
32  *
33  * The checks below verify that none of the older configuration definition are
34  * still defined and being used. The list below is not necessarily complete and
35  * the error message is only intended to give a hint of what the possible new
36  * configuration name may be. Please check the documentation of the new
37  * configuration parameter for details about behavior of each option before use.
38  *
39  */
40 
41 #ifndef OPENTHREAD_CORE_CONFIG_CHECK_H_
42 #define OPENTHREAD_CORE_CONFIG_CHECK_H_
43 
44 #if defined(OPENTHREAD_CONFIG_DISABLE_CCA_ON_LAST_ATTEMPT) ||     \
45     defined(OPENTHREAD_CONFIG_DISABLE_CSMA_CA_ON_LAST_ATTEMPT) || \
46     defined(OPENTHREAD_CONFIG_MAC_DISABLE_CSMA_CA_ON_LAST_ATTEMPT)
47 #error \
48     "OPENTHREAD_CONFIG_DISABLE_CCA_ON_LAST_ATTEMPT, OPENTHREAD_CONFIG_DISABLE_CSMA_CA_ON_LAST_ATTEMPT and OPENTHREAD_CONFIG_MAC_DISABLE_CSMA_CA_ON_LAST_ATTEMPT were removed."
49 #endif
50 
51 #ifdef OPENTHREAD_CONFIG_MAX_TX_ATTEMPTS_DIRECT
52 #error "OPENTHREAD_CONFIG_MAX_TX_ATTEMPTS_DIRECT was replaced by OPENTHREAD_CONFIG_MAC_MAX_FRAME_RETRIES_DIRECT."
53 #endif
54 
55 #ifdef OPENTHREAD_CONFIG_MAX_TX_ATTEMPTS_INDIRECT_PER_POLL
56 #error \
57     "OPENTHREAD_CONFIG_MAX_TX_ATTEMPTS_INDIRECT_PER_POLL was replaced by OPENTHREAD_CONFIG_MAC_MAX_FRAME_RETRIES_INDIRECT."
58 #endif
59 
60 #ifdef OPENTHREAD_CONFIG_MAX_SERVER_ALOCS
61 #error "OPENTHREAD_CONFIG_MAX_SERVER_ALOCS was replaced by OPENTHREAD_CONFIG_TMF_NETDATA_SERVICE_MAX_ALOCS."
62 #endif
63 
64 #ifdef OPENTHREAD_CONFIG_ENABLE_AUTO_START_SUPPORT
65 #error "OPENTHREAD_CONFIG_ENABLE_AUTO_START_SUPPORT was removed."
66 #endif
67 
68 #ifdef OPENTHREAD_ENABLE_CERT_LOG
69 #error "OPENTHREAD_ENABLE_CERT_LOG was replaced by OPENTHREAD_CONFIG_REFERENCE_DEVICE_ENABLE."
70 #endif
71 
72 #ifdef OPENTHREAD_ENABLE_MULTIPLE_INSTANCES
73 #error "OPENTHREAD_ENABLE_MULTIPLE_INSTANCES was replaced by OPENTHREAD_CONFIG_MULTIPLE_INSTANCE_ENABLE."
74 #endif
75 
76 #ifdef OPENTHREAD_CONFIG_NCP_UART_ENABLE
77 #error "OPENTHREAD_CONFIG_NCP_UART_ENABLE was replaced by OPENTHREAD_CONFIG_NCP_HDLC_ENABLE."
78 #endif
79 
80 #ifdef OPENTHREAD_ENABLE_NCP_UART
81 #error "OPENTHREAD_ENABLE_NCP_UART was replaced by OPENTHREAD_CONFIG_NCP_HDLC_ENABLE."
82 #endif
83 
84 #ifdef OPENTHREAD_ENABLE_NCP_SPI
85 #error "OPENTHREAD_ENABLE_NCP_SPI was replaced by OPENTHREAD_CONFIG_NCP_SPI_ENABLE."
86 #endif
87 
88 #ifdef OPENTHREAD_ENABLE_UDP_FORWARD
89 #error "OPENTHREAD_ENABLE_UDP_FORWARD was replaced by OPENTHREAD_CONFIG_UDP_FORWARD_ENABLE."
90 #endif
91 
92 #ifdef OPENTHREAD_ENABLE_BORDER_AGENT
93 #error "OPENTHREAD_ENABLE_BORDER_AGENT was replaced by OPENTHREAD_CONFIG_BORDER_AGENT_ENABLE."
94 #endif
95 
96 #ifdef OPENTHREAD_ENABLE_MTD_NETWORK_DIAGNOSTIC
97 #error "OPENTHREAD_ENABLE_MTD_NETWORK_DIAGNOSTIC was replaces by OPENTHREAD_CONFIG_TMF_NETWORK_DIAG_MTD_ENABLE."
98 #endif
99 
100 #ifdef OPENTHREAD_ENABLE_APPLICATION_COAP_SECURE
101 #error "OPENTHREAD_ENABLE_APPLICATION_COAP_SECURE was replaced by OPENTHREAD_CONFIG_COAP_SECURE_API_ENABLE."
102 #endif
103 
104 #ifdef OPENTHREAD_ENABLE_PLATFORM_UDP
105 #error "OPENTHREAD_ENABLE_PLATFORM_UDP was replaced by OPENTHREAD_CONFIG_PLATFORM_UDP_ENABLE."
106 #endif
107 
108 #ifdef OPENTHREAD_ENABLE_PLATFORM_NETIF
109 #error "OPENTHREAD_ENABLE_PLATFORM_NETIF was replaced by OPENTHREAD_CONFIG_PLATFORM_NETIF_ENABLE."
110 #endif
111 
112 #ifdef OPENTHREAD_ENABLE_COMMISSIONER
113 #error "OPENTHREAD_ENABLE_COMMISSIONER was replaced by OPENTHREAD_CONFIG_COMMISSIONER_ENABLE."
114 #endif
115 
116 #ifdef OPENTHREAD_ENABLE_JOINER
117 #error "OPENTHREAD_ENABLE_JOINER was replaced by OPENTHREAD_CONFIG_JOINER_ENABLE."
118 #endif
119 
120 #ifdef OPENTHREAD_ENABLE_DTLS
121 #error "OPENTHREAD_ENABLE_DTLS was replaced by OPENTHREAD_CONFIG_DTLS_ENABLE."
122 #endif
123 
124 #ifdef OPENTHREAD_ENABLE_JAM_DETECTION
125 #error "OPENTHREAD_ENABLE_JAM_DETECTION was replaced by OPENTHREAD_CONFIG_JAM_DETECTION_ENABLE."
126 #endif
127 
128 #ifdef OPENTHREAD_ENABLE_CHANNEL_MONITOR
129 #error "OPENTHREAD_ENABLE_CHANNEL_MONITOR was replaced by OPENTHREAD_CONFIG_CHANNEL_MONITOR_ENABLE."
130 #endif
131 
132 #ifdef OPENTHREAD_ENABLE_CHANNEL_MANAGER
133 #error "OPENTHREAD_ENABLE_CHANNEL_MANAGER was replaced by OPENTHREAD_CONFIG_CHANNEL_MANAGER_ENABLE."
134 #endif
135 
136 #ifdef OPENTHREAD_ENABLE_MAC_FILTER
137 #error "OPENTHREAD_ENABLE_MAC_FILTER was replaced by OPENTHREAD_CONFIG_MAC_FILTER_ENABLE."
138 #endif
139 
140 #ifdef OPENTHREAD_ENABLE_DIAG
141 #error "OPENTHREAD_ENABLE_DIAG was replaced by OPENTHREAD_CONFIG_DIAG_ENABLE."
142 #endif
143 
144 #ifdef OPENTHREAD_ENABLE_LEGACY
145 #error "OPENTHREAD_ENABLE_LEGACY was replaced by OPENTHREAD_CONFIG_LEGACY_ENABLE."
146 #endif
147 
148 #ifdef OPENTHREAD_ENABLE_CHILD_SUPERVISION
149 #error "OPENTHREAD_ENABLE_CHILD_SUPERVISION was replaced by OPENTHREAD_CONFIG_CHILD_SUPERVISION_ENABLE."
150 #endif
151 
152 #ifdef OPENTHREAD_ENABLE_DHCP6_SERVER
153 #error "OPENTHREAD_ENABLE_DHCP6_SERVER was replaced by OPENTHREAD_CONFIG_DHCP6_SERVER_ENABLE."
154 #endif
155 
156 #ifdef OPENTHREAD_ENABLE_DNS_CLIENT
157 #error "OPENTHREAD_ENABLE_DNS_CLIENT was replaced by OPENTHREAD_CONFIG_DNS_CLIENT_ENABLE."
158 #endif
159 
160 #ifdef OPENTHREAD_ENABLE_SNTP_CLIENT
161 #error "OPENTHREAD_ENABLE_SNTP_CLIENT was replaced by OPENTHREAD_CONFIG_SNTP_CLIENT_ENABLE."
162 #endif
163 
164 #ifdef OPENTHREAD_ENABLE_APPLICATION_COAP
165 #error "OPENTHREAD_ENABLE_APPLICATION_COAP was replaced by OPENTHREAD_CONFIG_COAP_API_ENABLE."
166 #endif
167 
168 #ifdef OPENTHREAD_ENABLE_RAW_LINK_API
169 #error "OPENTHREAD_ENABLE_RAW_LINK_API was replaced by OPENTHREAD_CONFIG_LINK_RAW_ENABLE."
170 #endif
171 
172 #ifdef OPENTHREAD_ENABLE_BORDER_ROUTER
173 #error "OPENTHREAD_ENABLE_BORDER_ROUTER was replaced by OPENTHREAD_CONFIG_BORDER_ROUTER_ENABLE."
174 #endif
175 
176 #ifdef OPENTHREAD_ENABLE_SERVICE
177 #error "OPENTHREAD_ENABLE_SERVICE was replaced by OPENTHREAD_CONFIG_TMF_NETDATA_SERVICE_ENABLE."
178 #endif
179 
180 #ifdef OPENTHREAD_ENABLE_ECDSA
181 #error "OPENTHREAD_ENABLE_ECDSA was replaced by OPENTHREAD_CONFIG_ECDSA_ENABLE."
182 #endif
183 
184 #ifdef OPENTHREAD_CONFIG_ENABLE_TIME_SYNC
185 #error "OPENTHREAD_CONFIG_ENABLE_TIME_SYNC was replaced by OPENTHREAD_CONFIG_TIME_SYNC_ENABLE."
186 #endif
187 
188 #ifdef OPENTHREAD_ENABLE_REFERENCE_DEVICE
189 #error "OPENTHREAD_ENABLE_REFERENCE_DEVICE was replaced by OPENTHREAD_CONFIG_REFERENCE_DEVICE_ENABLE."
190 #endif
191 
192 #ifdef OPENTHREAD_ENABLE_DHCP6_CLIENT
193 #error "OPENTHREAD_ENABLE_DHCP6_CLIENT was replaced by OPENTHREAD_CONFIG_DHCP6_CLIENT_ENABLE."
194 #endif
195 
196 #ifdef OPENTHREAD_ENABLE_SPINEL_VENDOR_SUPPORT
197 #error "OPENTHREAD_ENABLE_SPINEL_VENDOR_SUPPORT was replaced by OPENTHREAD_ENABLE_NCP_VENDOR_HOOK."
198 #endif
199 
200 #ifdef OPENTHREAD_CONFIG_MAX_TX_ATTEMPTS_INDIRECT_POLLS
201 #error \
202     "OPENTHREAD_CONFIG_MAX_TX_ATTEMPTS_INDIRECT_POLLS was replaced by OPENTHREAD_CONFIG_MAC_MAX_TX_ATTEMPTS_INDIRECT_POLLS."
203 #endif
204 
205 #ifdef OPENTHREAD_CONFIG_TX_NUM_BCAST
206 #error "OPENTHREAD_CONFIG_TX_NUM_BCAST was replaced by OPENTHREAD_CONFIG_MAC_TX_NUM_BCAST."
207 #endif
208 
209 #ifdef OPENTHREAD_CONFIG_ATTACH_DATA_POLL_PERIOD
210 #error "OPENTHREAD_CONFIG_ATTACH_DATA_POLL_PERIOD was replaced by OPENTHREAD_CONFIG_MAC_ATTACH_DATA_POLL_PERIOD."
211 #endif
212 
213 #ifdef OPENTHREAD_CONFIG_ADDRESS_CACHE_ENTRIES
214 #error "OPENTHREAD_CONFIG_ADDRESS_CACHE_ENTRIES was replaced by OPENTHREAD_CONFIG_TMF_ADDRESS_CACHE_ENTRIES."
215 #endif
216 
217 #ifdef OPENTHREAD_CONFIG_ADDRESS_QUERY_TIMEOUT
218 #error "OPENTHREAD_CONFIG_ADDRESS_QUERY_TIMEOUT was replaced by OPENTHREAD_CONFIG_TMF_ADDRESS_QUERY_TIMEOUT."
219 #endif
220 
221 #ifdef OPENTHREAD_CONFIG_ADDRESS_QUERY_INITIAL_RETRY_DELAY
222 #error \
223     "OPENTHREAD_CONFIG_ADDRESS_QUERY_INITIAL_RETRY_DELAY was replaced by OPENTHREAD_CONFIG_TMF_ADDRESS_QUERY_INITIAL_RETRY_DELAY."
224 #endif
225 
226 #ifdef OPENTHREAD_CONFIG_ADDRESS_QUERY_MAX_RETRY_DELAY
227 #error \
228     "OPENTHREAD_CONFIG_ADDRESS_QUERY_MAX_RETRY_DELAY was replaced by OPENTHREAD_CONFIG_TMF_ADDRESS_QUERY_MAX_RETRY_DELAY."
229 #endif
230 
231 #ifdef OPENTHREAD_CONFIG_MAX_ROUTERS
232 #error "OPENTHREAD_CONFIG_MAX_ROUTERS was replaced by OPENTHREAD_CONFIG_MLE_MAX_ROUTERS."
233 #endif
234 
235 #ifdef OPENTHREAD_CONFIG_MAX_CHILDREN
236 #error "OPENTHREAD_CONFIG_MAX_CHILDREN was replaced by OPENTHREAD_CONFIG_MLE_MAX_CHILDREN."
237 #endif
238 
239 #ifdef OPENTHREAD_CONFIG_DEFAULT_CHILD_TIMEOUT
240 #error "OPENTHREAD_CONFIG_DEFAULT_CHILD_TIMEOUT was replaced by OPENTHREAD_CONFIG_MLE_CHILD_TIMEOUT_DEFAULT."
241 #endif
242 
243 #ifdef OPENTHREAD_CONFIG_IP_ADDRS_PER_CHILD
244 #error "OPENTHREAD_CONFIG_IP_ADDRS_PER_CHILD was replaced by OPENTHREAD_CONFIG_MLE_IP_ADDRS_PER_CHILD."
245 #endif
246 
247 #ifdef OPENTHREAD_CONFIG_IP_ADDRS_TO_REGISTER
248 #error "OPENTHREAD_CONFIG_IP_ADDRS_TO_REGISTER was replaced by OPENTHREAD_CONFIG_MLE_IP_ADDRS_TO_REGISTER."
249 #endif
250 
251 #ifdef OPENTHREAD_CONFIG_MAX_EXT_IP_ADDRS
252 #error "OPENTHREAD_CONFIG_MAX_EXT_IP_ADDRS was replaced by OPENTHREAD_CONFIG_IP6_MAX_EXT_UCAST_ADDRS."
253 #endif
254 
255 #ifdef OPENTHREAD_CONFIG_MAX_EXT_MULTICAST_IP_ADDRS
256 #error "OPENTHREAD_CONFIG_MAX_EXT_MULTICAST_IP_ADDRS was replaced by OPENTHREAD_CONFIG_IP6_MAX_EXT_MCAST_ADDRS."
257 #endif
258 
259 #ifdef OPENTHREAD_CONFIG_MAX_SERVICE_ALOCS
260 #error "OPENTHREAD_CONFIG_MAX_SERVICE_ALOCS was replaced by OPENTHREAD_CONFIG_TMF_NETDATA_SERVICE_MAX_ALOCS."
261 #endif
262 
263 #ifdef OPENTHREAD_CONFIG_MAX_ENERGY_RESULTS
264 #error "OPENTHREAD_CONFIG_MAX_ENERGY_RESULTS was replaced by OPENTHREAD_CONFIG_TMF_ENERGY_SCAN_MAX_RESULTS."
265 #endif
266 
267 #ifdef OPENTHREAD_CONFIG_MAX_JOINER_ROUTER_ENTRIES
268 #error "OPENTHREAD_CONFIG_MAX_JOINER_ROUTER_ENTRIES was replaced by OPENTHREAD_CONFIG_JOINER_MAX_CANDIDATES."
269 #endif
270 
271 #ifdef OPENTHREAD_CONFIG_SNTP_RESPONSE_TIMEOUT
272 #error "OPENTHREAD_CONFIG_SNTP_RESPONSE_TIMEOUT was replaced by OPENTHREAD_CONFIG_SNTP_CLIENT_RESPONSE_TIMEOUT."
273 #endif
274 
275 #ifdef OPENTHREAD_CONFIG_SNTP_MAX_RETRANSMIT
276 #error "OPENTHREAD_CONFIG_SNTP_MAX_RETRANSMIT was replaced by OPENTHREAD_CONFIG_SNTP_CLIENT_MAX_RETRANSMIT."
277 #endif
278 
279 #ifdef OPENTHREAD_CONFIG_JOIN_BEACON_VERSION
280 #error "OPENTHREAD_CONFIG_JOIN_BEACON_VERSION was replaced by OPENTHREAD_CONFIG_MAC_JOIN_BEACON_VERSION."
281 #endif
282 
283 #ifdef OPENTHREAD_CONFIG_MESHCOP_PENDING_DATASET_MINIMUM_DELAY
284 #error \
285     "OPENTHREAD_CONFIG_MESHCOP_PENDING_DATASET_MINIMUM_DELAY was replaced by OPENTHREAD_CONFIG_TMF_PENDING_DATASET_MINIMUM_DELAY."
286 #endif
287 
288 #ifdef OPENTHREAD_CONFIG_MESHCOP_PENDING_DATASET_DEFAULT_DELAY
289 #error \
290     "OPENTHREAD_CONFIG_MESHCOP_PENDING_DATASET_DEFAULT_DELAY was replaced by OPENTHREAD_CONFIG_TMF_PENDING_DATASET_DEFAULT_DELAY."
291 #endif
292 
293 #ifdef OPENTHREAD_CONFIG_ENABLE_SLAAC
294 #error "OPENTHREAD_CONFIG_ENABLE_SLAAC was replaced by OPENTHREAD_CONFIG_IP6_SLAAC_ENABLE."
295 #endif
296 
297 #ifdef OPENTHREAD_CONFIG_NUM_SLAAC_ADDRESSES
298 #error "OPENTHREAD_CONFIG_NUM_SLAAC_ADDRESSES was replaced by OPENTHREAD_CONFIG_IP6_SLAAC_NUM_ADDRESSES."
299 #endif
300 
301 #ifdef OPENTHREAD_CONFIG_ENABLE_SOFTWARE_ACK_TIMEOUT
302 #error \
303     "OPENTHREAD_CONFIG_ENABLE_SOFTWARE_ACK_TIMEOUT was replaced by OPENTHREAD_CONFIG_MAC_SOFTWARE_ACK_TIMEOUT_ENABLE."
304 #endif
305 
306 #ifdef OPENTHREAD_CONFIG_SOFTWARE_ACK_TIMEOUT_ENABLE
307 #error \
308     "OPENTHREAD_CONFIG_SOFTWARE_ACK_TIMEOUT_ENABLE was replaced by OPENTHREAD_CONFIG_MAC_SOFTWARE_ACK_TIMEOUT_ENABLE."
309 #endif
310 
311 #ifdef OPENTHREAD_CONFIG_ENABLE_SOFTWARE_RETRANSMIT
312 #error "OPENTHREAD_CONFIG_ENABLE_SOFTWARE_RETRANSMIT was replaced by OPENTHREAD_CONFIG_MAC_SOFTWARE_RETRANSMIT_ENABLE."
313 #endif
314 
315 #ifdef OPENTHREAD_CONFIG_SOFTWARE_RETRANSMIT_ENABLE
316 #error "OPENTHREAD_CONFIG_SOFTWARE_RETRANSMIT_ENABLE was replaced by OPENTHREAD_CONFIG_MAC_SOFTWARE_RETRANSMIT_ENABLE."
317 #endif
318 
319 #ifdef OPENTHREAD_CONFIG_ENABLE_SOFTWARE_CSMA_BACKOFF
320 #error \
321     "OPENTHREAD_CONFIG_ENABLE_SOFTWARE_CSMA_BACKOFF was replaced by OPENTHREAD_CONFIG_MAC_SOFTWARE_CSMA_BACKOFF_ENABLE."
322 #endif
323 
324 #ifdef OPENTHREAD_CONFIG_SOFTWARE_CSMA_BACKOFF_ENABLE
325 #error \
326     "OPENTHREAD_CONFIG_SOFTWARE_CSMA_BACKOFF_ENABLE was replaced by OPENTHREAD_CONFIG_MAC_SOFTWARE_CSMA_BACKOFF_ENABLE."
327 #endif
328 
329 #ifdef OPENTHREAD_CONFIG_ENABLE_SOFTWARE_ENERGY_SCAN
330 #error \
331     "OPENTHREAD_CONFIG_ENABLE_SOFTWARE_ENERGY_SCAN was replaced by OPENTHREAD_CONFIG_MAC_SOFTWARE_ENERGY_SCAN_ENABLE."
332 #endif
333 
334 #ifdef OPENTHREAD_CONFIG_SOFTWARE_ENERGY_SCAN_ENABLE
335 #error \
336     "OPENTHREAD_CONFIG_SOFTWARE_ENERGY_SCAN_ENABLE was replaced by OPENTHREAD_CONFIG_MAC_SOFTWARE_ENERGY_SCAN_ENABLE."
337 #endif
338 
339 #ifdef OPENTHREAD_CONFIG_ENABLE_PLATFORM_USEC_TIMER
340 #error "OPENTHREAD_CONFIG_ENABLE_PLATFORM_USEC_TIMER was replaced by OPENTHREAD_CONFIG_PLATFORM_USEC_TIMER_ENABLE."
341 #endif
342 
343 #ifdef OPENTHREAD_CONFIG_ENABLE_BEACON_RSP_WHEN_JOINABLE
344 #error \
345     "OPENTHREAD_CONFIG_ENABLE_BEACON_RSP_WHEN_JOINABLE was replaced by OPENTHREAD_CONFIG_MAC_BEACON_RSP_WHEN_JOINABLE_ENABLE."
346 #endif
347 
348 #ifdef OPENTHREAD_CONFIG_ENABLE_STEERING_DATA_SET_OOB
349 #error \
350     "OPENTHREAD_CONFIG_ENABLE_STEERING_DATA_SET_OOB was replaced by OPENTHREAD_CONFIG_MLE_STEERING_DATA_SET_OOB_ENABLE."
351 #endif
352 
353 #ifdef OPENTHREAD_CONFIG_SUPERVISION_CHECK_TIMEOUT
354 #error "OPENTHREAD_CONFIG_SUPERVISION_CHECK_TIMEOUT was replaced by OPENTHREAD_CONFIG_CHILD_SUPERVISION_CHECK_TIMEOUT."
355 #endif
356 
357 #ifdef OPENTHREAD_CONFIG_SUPERVISION_MSG_NO_ACK_REQUEST
358 #error \
359     "OPENTHREAD_CONFIG_SUPERVISION_MSG_NO_ACK_REQUEST was replaced by OPENTHREAD_CONFIG_CHILD_SUPERVISION_MSG_NO_ACK_REQUEST."
360 #endif
361 
362 #ifdef OPENTHREAD_CONFIG_ENABLE_PERIODIC_PARENT_SEARCH
363 #error "OPENTHREAD_CONFIG_ENABLE_PERIODIC_PARENT_SEARCH was replaced by OPENTHREAD_CONFIG_PARENT_SEARCH_ENABLE."
364 #endif
365 
366 #ifdef OPENTHREAD_CONFIG_ENABLE_ATTACH_BACKOFF
367 #error "OPENTHREAD_CONFIG_ENABLE_ATTACH_BACKOFF was replaced by OPENTHREAD_CONFIG_MLE_ATTACH_BACKOFF_ENABLE."
368 #endif
369 
370 #ifdef OPENTHREAD_CONFIG_ATTACH_BACKOFF_MINIMUM_INTERVAL
371 #error \
372     "OPENTHREAD_CONFIG_ATTACH_BACKOFF_MINIMUM_INTERVAL was replaced by OPENTHREAD_CONFIG_MLE_ATTACH_BACKOFF_MINIMUM_INTERVAL."
373 #endif
374 
375 #ifdef OPENTHREAD_CONFIG_ATTACH_BACKOFF_MAXIMUM_INTERVAL
376 #error \
377     "OPENTHREAD_CONFIG_ATTACH_BACKOFF_MAXIMUM_INTERVAL was replaced by OPENTHREAD_CONFIG_MLE_ATTACH_BACKOFF_MAXIMUM_INTERVAL."
378 #endif
379 
380 #ifdef OPENTHREAD_CONFIG_ATTACH_BACKOFF_JITTER_INTERVAL
381 #error \
382     "OPENTHREAD_CONFIG_ATTACH_BACKOFF_JITTER_INTERVAL was replaced by OPENTHREAD_CONFIG_MLE_ATTACH_BACKOFF_JITTER_INTERVAL."
383 #endif
384 
385 #ifdef OPENTHREAD_CONFIG_SEND_UNICAST_ANNOUNCE_RESPONSE
386 #error \
387     "OPENTHREAD_CONFIG_SEND_UNICAST_ANNOUNCE_RESPONSE was replaced by OPENTHREAD_CONFIG_MLE_SEND_UNICAST_ANNOUNCE_RESPONSE."
388 #endif
389 
390 #ifdef OPENTHREAD_CONFIG_ENABLE_ANNOUNCE_SENDER
391 #error "OPENTHREAD_CONFIG_ENABLE_ANNOUNCE_SENDER was replaced by OPENTHREAD_CONFIG_ANNOUNCE_SENDER_ENABLE."
392 #endif
393 
394 #ifdef OPENTHREAD_CONFIG_STAY_AWAKE_BETWEEN_FRAGMENTS
395 #error \
396     "OPENTHREAD_CONFIG_STAY_AWAKE_BETWEEN_FRAGMENTS was replaced by OPENTHREAD_CONFIG_MAC_STAY_AWAKE_BETWEEN_FRAGMENTS."
397 #endif
398 
399 #ifdef OPENTHREAD_CONFIG_ENABLE_DYNAMIC_MPL_INTERVAL
400 #error "OPENTHREAD_CONFIG_ENABLE_DYNAMIC_MPL_INTERVAL was replaced by OPENTHREAD_CONFIG_MPL_DYNAMIC_INTERVAL_ENABLE."
401 #endif
402 
403 #ifdef OPENTHREAD_CONFIG_ENABLE_LONG_ROUTES
404 #error "OPENTHREAD_CONFIG_ENABLE_LONG_ROUTES was replaced by OPENTHREAD_CONFIG_MLE_LONG_ROUTES_ENABLE."
405 #endif
406 
407 #ifdef OPENTHREAD_CONFIG_MINIMUM_POLL_PERIOD
408 #error "OPENTHREAD_CONFIG_MINIMUM_POLL_PERIOD was replaced by OPENTHREAD_CONFIG_MAC_MINIMUM_POLL_PERIOD."
409 #endif
410 
411 #ifdef OPENTHREAD_CONFIG_RETX_POLL_PERIOD
412 #error "OPENTHREAD_CONFIG_RETX_POLL_PERIOD was replaced by OPENTHREAD_CONFIG_MAC_RETX_POLL_PERIOD."
413 #endif
414 
415 #ifdef OPENTHREAD_CONFIG_IPV6_DEFAULT_HOP_LIMIT
416 #error "OPENTHREAD_CONFIG_IPV6_DEFAULT_HOP_LIMIT was replaced by OPENTHREAD_CONFIG_IP6_HOP_LIMIT_DEFAULT."
417 #endif
418 
419 #ifdef OPENTHREAD_CONFIG_IPV6_DEFAULT_MAX_DATAGRAM
420 #error "OPENTHREAD_CONFIG_IPV6_DEFAULT_MAX_DATAGRAM was replaced by OPENTHREAD_CONFIG_IP6_MAX_DATAGRAM_LENGTH."
421 #endif
422 
423 #ifdef OPENTHREAD_CONFIG_HEADER_IE_SUPPORT
424 #error "OPENTHREAD_CONFIG_HEADER_IE_SUPPORT was replaced by OPENTHREAD_CONFIG_MAC_HEADER_IE_SUPPORT."
425 #endif
426 
427 #ifdef OPENTHREAD_CONFIG_MAX_JOINER_ENTRIES
428 #error "OPENTHREAD_CONFIG_MAX_JOINER_ENTRIES was replaced by OPENTHREAD_CONFIG_COMMISSIONER_MAX_JOINER_ENTRIES."
429 #endif
430 
431 #ifdef OPENTHREAD_CONFIG_NUM_DHCP_PREFIXES
432 #error "OPENTHREAD_CONFIG_NUM_DHCP_PREFIXES was replaced by OPENTHREAD_CONFIG_DHCP6_SERVER_NUM_PREFIXES."
433 #endif
434 
435 #ifdef OPENTHREAD_CONFIG_INFORM_PREVIOUS_PARENT_ON_REATTACH
436 #error \
437     "OPENTHREAD_CONFIG_INFORM_PREVIOUS_PARENT_ON_REATTACH was replaced by OPENTHREAD_CONFIG_MLE_INFORM_PREVIOUS_PARENT_ON_REATTACH."
438 #endif
439 
440 #ifdef OPENTHREAD_CONFIG_PLATFORM_RADIO_COEX_METRICS_ENABLE
441 #error \
442     "OPENTHREAD_CONFIG_PLATFORM_RADIO_COEX_METRICS_ENABLE was replaced by OPENTHREAD_CONFIG_PLATFORM_RADIO_COEX_ENABLE."
443 #endif
444 
445 #ifdef OPENTHREAD_CONFIG_MAC_MAX_FRAME_RETRIES_DIRECT
446 #error \
447     "OPENTHREAD_CONFIG_MAC_MAX_FRAME_RETRIES_DIRECT was replaced by OPENTHREAD_CONFIG_MAC_DEFAULT_MAX_FRAME_RETRIES_DIRECT."
448 #endif
449 
450 #ifdef OPENTHREAD_CONFIG_MAC_MAX_FRAME_RETRIES_INDIRECT
451 #error \
452     "OPENTHREAD_CONFIG_MAC_MAX_FRAME_RETRIES_INDIRECT was replaced by OPENTHREAD_CONFIG_MAC_DEFAULT_MAX_FRAME_RETRIES_INDIRECT."
453 #endif
454 
455 #ifdef OPENTHREAD_CONFIG_ENABLE_TX_ERROR_RATE_TRACKING
456 #error "OPENTHREAD_CONFIG_ENABLE_TX_ERROR_RATE_TRACKING was removed."
457 #endif
458 
459 #ifdef OPENTHREAD_CONFIG_ENABLE_DYNAMIC_LOG_LEVEL
460 #error "OPENTHREAD_CONFIG_ENABLE_DYNAMIC_LOG_LEVEL was replaced by OPENTHREAD_CONFIG_LOG_LEVEL_DYNAMIC_ENABLE."
461 #endif
462 
463 #ifdef OPENTHREAD_CONFIG_INITIAL_LOG_LEVEL
464 #error "OPENTHREAD_CONFIG_INITIAL_LOG_LEVEL was replaced by OPENTHREAD_CONFIG_LOG_LEVEL_INIT."
465 #endif
466 
467 #ifdef OPENTHREAD_CONFIG_COAP_ACK_TIMEOUT
468 #error \
469     "OPENTHREAD_CONFIG_COAP_ACK_TIMEOUT was removed. Use otCoapSendRequestWithParameters to configure CoAP transmission parameters."
470 #endif
471 
472 #ifdef OPENTHREAD_CONFIG_COAP_ACK_TIMEOUT_MILLIS
473 #error \
474     "OPENTHREAD_CONFIG_COAP_ACK_TIMEOUT_MILLIS was removed. Use otCoapSendRequestWithParameters to configure CoAP transmission parameters."
475 #endif
476 
477 #ifdef OPENTHREAD_CONFIG_LOG_OUTPUT_NCP_SPINEL
478 #error "OPENTHREAD_CONFIG_LOG_OUTPUT_NCP_SPINEL is removed, use OPENTHREAD_CONFIG_LOG_OUTPUT_APP instead"
479 #endif
480 
481 #ifdef OPENTHREAD_CONFIG_PLAT_LOG_FUNCTION
482 #error "OPENTHREAD_CONFIG_PLAT_LOG_FUNCTION was replaced by OPENTHREAD_CONFIG_PLAT_LOG_MACRO_NAME " \
483        "(and OPENTHREAD_CONFIG_LOG_DEFINE_AS_MACRO_ONLY)"
484 #endif
485 
486 #ifdef OPENTHREAD_CONFIG_DNS_RESPONSE_TIMEOUT
487 #error "OPENTHREAD_CONFIG_DNS_RESPONSE_TIMEOUT was replaced by OPENTHREAD_CONFIG_DNS_CLIENT_DEFAULT_RESPONSE_TIMEOUT"
488 #endif
489 
490 #ifdef OPENTHREAD_CONFIG_DNS_MAX_RETRANSMIT
491 #error "OPENTHREAD_CONFIG_DNS_MAX_RETRANSMIT was replaced by OPENTHREAD_CONFIG_DNS_CLIENT_DEFAULT_MAX_TX_ATTEMPTS"
492 #endif
493 
494 #ifdef OPENTHREAD_CONFIG_SRP_CLIENT_BUFFERS_MAX_HOST_ADDRSSES
495 #error "OPENTHREAD_CONFIG_SRP_CLIENT_BUFFERS_MAX_HOST_ADDRSSES was replaced by "\
496        "OPENTHREAD_CONFIG_SRP_CLIENT_BUFFERS_MAX_HOST_ADDRESSES"
497 #endif
498 
499 #ifdef OPENTHREAD_CONFIG_ANNOUNCE_SENDER_INTERVAL_ROUTER
500 #error "OPENTHREAD_CONFIG_ANNOUNCE_SENDER_INTERVAL_ROUTER was replaced by OPENTHREAD_CONFIG_ANNOUNCE_SENDER_INTERVAL"
501 #endif
502 
503 #ifdef OPENTHREAD_CONFIG_ANNOUNCE_SENDER_INTERVAL_REED
504 #error "OPENTHREAD_CONFIG_ANNOUNCE_SENDER_INTERVAL_REED was replaced by OPENTHREAD_CONFIG_ANNOUNCE_SENDER_INTERVAL"
505 #endif
506 
507 #ifdef OPENTHREAD_CONFIG_SRP_SERVER_SERVICE_NUMBER
508 #error "OPENTHREAD_CONFIG_SRP_SERVER_SERVICE_NUMBER was removed. "\
509        "Service numbers are defined in `network_data_servcie.hpp` per spec"
510 #endif
511 
512 #ifdef OPENTHREAD_CONFIG_SRP_SERVER_UDP_PORT
513 #error "OPENTHREAD_CONFIG_SRP_SERVER_UDP_PORT was removed. "\
514        "You can make OPENTHREAD_CONFIG_SRP_SERVER_UDP_PORT_MIN = OPENTHREAD_CONFIG_SRP_SERVER_UDP_PORT_MAX to specify a static UDP port. "
515 #endif
516 
517 #ifdef OPENTHREAD_CONFIG_MLE_LINK_METRICS_ENABLE
518 #error "OPENTHREAD_CONFIG_MLE_LINK_METRICS_ENABLE was replaced by OPENTHREAD_CONFIG_MLE_LINK_METRICS_INITIATOR_ENABLE" \
519        " and OPENTHREAD_CONFIG_MLE_LINK_METRICS_SUBJECT_ENABLE"
520 #endif
521 
522 #endif // OPENTHREAD_CORE_CONFIG_CHECK_H_
523