Skip to content

Commit

Permalink
[MRP] Log the local MRP values used when establishing a PASE or a CAS…
Browse files Browse the repository at this point in the history
…E session
  • Loading branch information
vivien-apple committed Sep 20, 2024
1 parent 53ace16 commit 23a87ba
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
6 changes: 5 additions & 1 deletion src/protocols/secure_channel/CASESession.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -872,7 +872,11 @@ CHIP_ERROR CASESession::SendSigma1()
mState = State::kSentSigma1;
}

ChipLogProgress(SecureChannel, "Sent Sigma1 msg to " ChipLogFormatScopedNodeId, ChipLogValueScopedNodeId(GetPeer()));
const auto localMRPConfig = mLocalMRPConfig.Value();
ChipLogProgress(SecureChannel,
"Sent Sigma1 msg to " ChipLogFormatScopedNodeId " [II:%" PRIu32 "ms AI:%" PRIu32 "ms AT:%" PRIu16 "ms]",
ChipLogValueScopedNodeId(GetPeer()), localMRPConfig.mIdleRetransTimeout.count(),
localMRPConfig.mActiveRetransTimeout.count(), localMRPConfig.mActiveThresholdTime.count());

mDelegate->OnSessionEstablishmentStarted();

Expand Down
5 changes: 4 additions & 1 deletion src/protocols/secure_channel/PASESession.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,10 @@ CHIP_ERROR PASESession::SendPBKDFParamRequest()

mNextExpectedMsg.SetValue(MsgType::PBKDFParamResponse);

ChipLogDetail(SecureChannel, "Sent PBKDF param request");
const auto localMRPConfig = mLocalMRPConfig.Value();
ChipLogProgress(SecureChannel, "Sent PBKDF param request [II:%" PRIu32 "ms AI:%" PRIu32 "ms AT:%" PRIu16 "ms)",
localMRPConfig.mIdleRetransTimeout.count(), localMRPConfig.mActiveRetransTimeout.count(),
localMRPConfig.mActiveThresholdTime.count());

return CHIP_NO_ERROR;
}
Expand Down

0 comments on commit 23a87ba

Please sign in to comment.