From a793c94d617084f45ff14af5c0b86148ae37a6ad Mon Sep 17 00:00:00 2001 From: Eduardo Montoya Date: Wed, 5 Jan 2022 21:05:58 +0100 Subject: [PATCH] [posix] enable all ICMPv6 echo handling for reference device (#7288) Set `OT_ICMP6_ECHO_HANDLER_ALL` when building reference device Posix border router. --- src/posix/platform/netif.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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