[posix] enable all ICMPv6 echo handling for reference device (#7288)

Set `OT_ICMP6_ECHO_HANDLER_ALL` when building reference device Posix
border router.
This commit is contained in:
Eduardo Montoya
2022-01-05 12:05:58 -08:00
committed by GitHub
parent ba09f6894a
commit a793c94d61
+4
View File
@@ -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