diff --git a/src/posix/platform/netif.cpp b/src/posix/platform/netif.cpp index b0243617f..d47210eb7 100644 --- a/src/posix/platform/netif.cpp +++ b/src/posix/platform/netif.cpp @@ -1623,7 +1623,11 @@ void platformNetifSetUp(void) OT_ASSERT(gInstance != nullptr); otIp6SetReceiveFilterEnabled(gInstance, true); +#if OPENTHREAD_CONFIG_REFERENCE_DEVICE_ENABLE + otIcmp6SetEchoMode(gInstance, OT_ICMP6_ECHO_HANDLER_ALL); +#else otIcmp6SetEchoMode(gInstance, OT_ICMP6_ECHO_HANDLER_DISABLED); +#endif otIp6SetReceiveCallback(gInstance, processReceive, gInstance); otIp6SetAddressCallback(gInstance, processAddressChange, gInstance); #if OPENTHREAD_POSIX_MULTICAST_PROMISCUOUS_REQUIRED