From c7b02326b5fafc5775777a21b23fa69610048fa0 Mon Sep 17 00:00:00 2001 From: rongli Date: Fri, 13 Oct 2017 01:13:34 -0500 Subject: [PATCH] [network-diagnostic] use default source selection (#2260) --- src/core/thread/network_diagnostic.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/core/thread/network_diagnostic.cpp b/src/core/thread/network_diagnostic.cpp index e8393eb66..ef3909f88 100644 --- a/src/core/thread/network_diagnostic.cpp +++ b/src/core/thread/network_diagnostic.cpp @@ -117,7 +117,6 @@ otError NetworkDiagnostic::SendDiagnosticGet(const Ip6::Address &aDestination, c SuccessOrExit(error = message->Append(aTlvTypes, aCount)); messageInfo.SetPeerAddr(aDestination); - messageInfo.SetSockAddr(netif.GetMle().GetMeshLocal16()); messageInfo.SetPeerPort(kCoapUdpPort); messageInfo.SetInterfaceId(netif.GetInterfaceId()); @@ -488,7 +487,6 @@ void NetworkDiagnostic::HandleDiagnosticGetQuery(Coap::Header &aHeader, Message VerifyOrExit((message = netif.GetCoap().NewMessage(header)) != NULL, error = OT_ERROR_NO_BUFS); messageInfo.SetPeerAddr(aMessageInfo.GetPeerAddr()); - messageInfo.SetSockAddr(netif.GetMle().GetMeshLocal16()); messageInfo.SetPeerPort(kCoapUdpPort); messageInfo.SetInterfaceId(netif.GetInterfaceId()); @@ -584,7 +582,6 @@ otError NetworkDiagnostic::SendDiagnosticReset(const Ip6::Address &aDestination, SuccessOrExit(error = message->Append(aTlvTypes, aCount)); messageInfo.SetPeerAddr(aDestination); - messageInfo.SetSockAddr(netif.GetMle().GetMeshLocal16()); messageInfo.SetPeerPort(kCoapUdpPort); messageInfo.SetInterfaceId(netif.GetInterfaceId());