mirror of
https://github.com/espressif/openthread.git
synced 2026-08-13 06:07:48 +00:00
[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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user