Skip to content

Commit 6c29685

Browse files
committed
[MRP] Log the local MRP values used when establishing a PASE or a CASE session
1 parent 88037d4 commit 6c29685

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

src/protocols/secure_channel/CASESession.cpp

+6-1
Original file line numberDiff line numberDiff line change
@@ -872,7 +872,12 @@ CHIP_ERROR CASESession::SendSigma1()
872872
mState = State::kSentSigma1;
873873
}
874874

875-
ChipLogProgress(SecureChannel, "Sent Sigma1 msg to " ChipLogFormatScopedNodeId, ChipLogValueScopedNodeId(GetPeer()));
875+
#if CHIP_PROGRESS_LOGGING
876+
const auto localMRPConfig = mLocalMRPConfig.Value();
877+
#endif // CHIP_PROGRESS_LOGGING
878+
ChipLogProgress(SecureChannel, "Sent Sigma1 msg to " ChipLogFormatScopedNodeId " [II:%" PRIu32 "ms AI:%" PRIu32 "ms AT:%ums]",
879+
ChipLogValueScopedNodeId(GetPeer()), localMRPConfig.mIdleRetransTimeout.count(),
880+
localMRPConfig.mActiveRetransTimeout.count(), localMRPConfig.mActiveThresholdTime.count());
876881

877882
mDelegate->OnSessionEstablishmentStarted();
878883

src/protocols/secure_channel/PASESession.cpp

+6-1
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,12 @@ CHIP_ERROR PASESession::SendPBKDFParamRequest()
314314

315315
mNextExpectedMsg.SetValue(MsgType::PBKDFParamResponse);
316316

317-
ChipLogDetail(SecureChannel, "Sent PBKDF param request");
317+
#if CHIP_PROGRESS_LOGGING
318+
const auto localMRPConfig = mLocalMRPConfig.Value();
319+
#endif // CHIP_PROGRESS_LOGGING
320+
ChipLogProgress(SecureChannel, "Sent PBKDF param request [II:%" PRIu32 "ms AI:%" PRIu32 "ms AT:%ums)",
321+
localMRPConfig.mIdleRetransTimeout.count(), localMRPConfig.mActiveRetransTimeout.count(),
322+
localMRPConfig.mActiveThresholdTime.count());
318323

319324
return CHIP_NO_ERROR;
320325
}

0 commit comments

Comments
 (0)