mirror of
https://github.com/espressif/openthread.git
synced 2026-08-05 10:27:49 +00:00
[platform-netif] disable icmp echo (#3590)
This commit is contained in:
@@ -52,6 +52,7 @@
|
||||
#include <sys/types.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#include <openthread/icmp6.h>
|
||||
#include <openthread/instance.h>
|
||||
#include <openthread/ip6.h>
|
||||
#include <openthread/message.h>
|
||||
@@ -392,6 +393,8 @@ void platformNetifInit(otInstance *aInstance)
|
||||
sNetlinkFd = socket(AF_NETLINK, SOCK_DGRAM, NETLINK_ROUTE);
|
||||
VerifyOrExit(sNetlinkFd > 0);
|
||||
|
||||
otIcmp6SetEchoMode(aInstance, OT_ICMP6_ECHO_HANDLER_DISABLED);
|
||||
|
||||
{
|
||||
struct sockaddr_nl sa;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user