mirror of
https://github.com/espressif/openthread.git
synced 2026-07-30 23:57:47 +00:00
Enable IPv6 datagram filter by default from NcpBase constructor (#1256)
* Enable IPv6 datagram filter by default from `NcpBase` constructor * Enable RLOC pass through when in Tunnel mode
This commit is contained in:
committed by
Jonathan Hui
parent
5a258ef052
commit
428b3759ef
@@ -102,6 +102,20 @@ otLwfTunInitialize(
|
||||
KeSetEvent(&pFilter->TunWorkerThreadStopEvent, IO_NO_INCREMENT, FALSE);
|
||||
}
|
||||
|
||||
// Make sure to enable RLOC passthrough
|
||||
Status =
|
||||
otLwfCmdSetProp(
|
||||
pFilter,
|
||||
SPINEL_PROP_THREAD_RLOC16_DEBUG_PASSTHRU,
|
||||
SPINEL_DATATYPE_BOOL_S,
|
||||
TRUE
|
||||
);
|
||||
if (!NT_SUCCESS(Status))
|
||||
{
|
||||
LogError(DRIVER_DEFAULT, "Enabling RLOC pass through failed, %!STATUS!", Status);
|
||||
goto error;
|
||||
}
|
||||
|
||||
// TODO - Query other values and capabilities
|
||||
|
||||
error:
|
||||
|
||||
@@ -514,6 +514,7 @@ NcpBase::NcpBase(otInstance *aInstance):
|
||||
otSetReceiveIp6DatagramCallback(mInstance, &NcpBase::HandleDatagramFromStack, this);
|
||||
otSetLinkPcapCallback(mInstance, &NcpBase::HandleRawFrame, static_cast<void*>(this));
|
||||
otSetIcmpEchoEnabled(mInstance, false);
|
||||
otSetReceiveIp6DatagramFilterEnabled(mInstance, true);
|
||||
|
||||
mUpdateChangedPropsTask.Post();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user