mirror of
https://github.com/espressif/openthread.git
synced 2026-09-06 01:00:09 +00:00
[ICMPv6] Allow application to register ICMPv6 handler. (#1380)
This commit is contained in:
committed by
Jonathan Hui
parent
fc45943f8c
commit
4f35cdb854
@@ -786,7 +786,7 @@ otLwfEventWorkerThread(
|
||||
NT_ASSERT(otCtxToFilter(pFilter->otCtx) == pFilter);
|
||||
|
||||
// Disable Icmp (ping) handling
|
||||
otSetIcmpEchoEnabled(pFilter->otCtx, FALSE);
|
||||
otIcmp6SetEchoEnabled(pFilter->otCtx, FALSE);
|
||||
|
||||
// Register callbacks with OpenThread
|
||||
otSetStateChangedCallback(pFilter->otCtx, otLwfStateChangedCallback, pFilter);
|
||||
|
||||
@@ -62,6 +62,7 @@ RtlCopyBufferToMdl(
|
||||
#include <openthread-windows-config.h>
|
||||
#include <openthread-core-config.h>
|
||||
#include <openthread.h>
|
||||
#include <openthread-icmp6.h>
|
||||
#include <openthread-ip6.h>
|
||||
#include <openthread-tasklet.h>
|
||||
#include <commissioning/commissioner.h>
|
||||
|
||||
@@ -85,7 +85,7 @@ otPlatReset(
|
||||
NT_ASSERT(otCtxToFilter(pFilter->otCtx) == pFilter);
|
||||
|
||||
// Disable Icmp (ping) handling
|
||||
otSetIcmpEchoEnabled(pFilter->otCtx, FALSE);
|
||||
otIcmp6SetEchoEnabled(pFilter->otCtx, FALSE);
|
||||
|
||||
// Register callbacks with OpenThread
|
||||
otSetStateChangedCallback(pFilter->otCtx, otLwfStateChangedCallback, pFilter);
|
||||
|
||||
Reference in New Issue
Block a user