Skip to content

Commit 23a87ba

Browse files
committed
[MRP] Log the local MRP values used when establishing a PASE or a CASE session
1 parent 53ace16 commit 23a87ba

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

src/protocols/secure_channel/CASESession.cpp

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

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

877881
mDelegate->OnSessionEstablishmentStarted();
878882

src/protocols/secure_channel/PASESession.cpp

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

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

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

319322
return CHIP_NO_ERROR;
320323
}

0 commit comments

Comments
 (0)