Skip to content

Commit

Permalink
[utils] OTNS CoAP emit source address and port information.
Browse files Browse the repository at this point in the history
  • Loading branch information
EskoDijk committed Oct 9, 2024
1 parent 16d710a commit b940a6d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/core/utils/otns.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -161,8 +161,9 @@ void Otns::EmitCoapSend(const Coap::Message &aMessage, const Ip6::MessageInfo &a

SuccessOrExit(error = aMessage.ReadUriPathOptions(uriPath));

EmitStatus("coap=send,%d,%d,%d,%s,%s,%d", aMessage.GetMessageId(), aMessage.GetType(), aMessage.GetCode(), uriPath,
aMessageInfo.GetPeerAddr().ToString().AsCString(), aMessageInfo.GetPeerPort());
EmitStatus("coap=send,%d,%d,%d,%s,%s,%d,%s,%d", aMessage.GetMessageId(), aMessage.GetType(), aMessage.GetCode(), uriPath,
aMessageInfo.GetPeerAddr().ToString().AsCString(), aMessageInfo.GetPeerPort(),
aMessageInfo.GetSockAddr().ToString().AsCString(), aMessageInfo.GetSockPort());

exit:
LogWarnOnError(error, "EmitCoapSend");
Expand Down

0 comments on commit b940a6d

Please sign in to comment.