[platform-netif] disable icmp echo (#3590)

This commit is contained in:
Yakun Xu
2019-02-13 21:37:54 -08:00
committed by Jonathan Hui
parent 7a69ae36a1
commit 2f2aba80dd
+3
View File
@@ -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;