From 9a4098fdb518f056b7dd07cce515848bb99c40eb Mon Sep 17 00:00:00 2001 From: Jiacheng Guo Date: Tue, 25 Feb 2020 14:16:48 +0800 Subject: [PATCH] [posix-host] enable platform udp/netif by default in daemon mode (#4568) --- src/posix/platform/openthread-core-posix-config.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/posix/platform/openthread-core-posix-config.h b/src/posix/platform/openthread-core-posix-config.h index 9280cb2eb..ddae4a06e 100644 --- a/src/posix/platform/openthread-core-posix-config.h +++ b/src/posix/platform/openthread-core-posix-config.h @@ -81,4 +81,17 @@ #ifndef OPENTHREAD_CONFIG_PLATFORM_RADIO_COEX_ENABLE #define OPENTHREAD_CONFIG_PLATFORM_RADIO_COEX_ENABLE 1 #endif + +#if OPENTHREAD_ENABLE_POSIX_APP_DAEMON + +#ifndef OPENTHREAD_CONFIG_PLATFORM_NETIF_ENABLE +#define OPENTHREAD_CONFIG_PLATFORM_NETIF_ENABLE 1 +#endif + +#ifndef OPENTHREAD_CONFIG_PLATFORM_UDP_ENABLE +#define OPENTHREAD_CONFIG_PLATFORM_UDP_ENABLE 1 +#endif + +#endif + #endif // OPENTHREAD_CORE_POSIX_CONFIG_H_