From 2f2aba80dd2f882fd6d795e92b6628f456d26db5 Mon Sep 17 00:00:00 2001 From: Yakun Xu Date: Thu, 14 Feb 2019 13:37:54 +0800 Subject: [PATCH] [platform-netif] disable icmp echo (#3590) --- src/posix/platform/netif.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/posix/platform/netif.cpp b/src/posix/platform/netif.cpp index aa7cd195b..4cab7c1ea 100644 --- a/src/posix/platform/netif.cpp +++ b/src/posix/platform/netif.cpp @@ -52,6 +52,7 @@ #include #include +#include #include #include #include @@ -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;