[tmf] add Backbone TMF agent (#5471)

This commit is contained in:
Simon Lin
2020-09-11 10:11:42 -07:00
committed by GitHub
parent 5e3b169068
commit d783c7abc8
25 changed files with 555 additions and 53 deletions
+1 -10
View File
@@ -40,16 +40,7 @@ namespace Tmf {
otError TmfAgent::Start(void)
{
otError error;
SuccessOrExit(error = Coap::Start(kUdpPort));
#if OPENTHREAD_CONFIG_PLATFORM_UDP_ENABLE
error = mSocket.BindToNetif(OT_NETIF_THREAD);
VerifyOrExit(OT_ERROR_NONE == error, IgnoreError(mSocket.Close()));
#endif
exit:
return error;
return Coap::Start(kUdpPort, OT_NETIF_THREAD);
}
otError TmfAgent::Filter(const ot::Coap::Message &aMessage, const Ip6::MessageInfo &aMessageInfo, void *aContext)