From f917fc0fece6bfae9e671582c2f1357091fece30 Mon Sep 17 00:00:00 2001 From: Eduardo Almeida Date: Fri, 20 Oct 2023 07:28:00 +0100 Subject: [PATCH] p2p: Use cached variable --- src/point-to-point/helper/point-to-point-helper.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/point-to-point/helper/point-to-point-helper.cc b/src/point-to-point/helper/point-to-point-helper.cc index 274446441..d23bfbf2c 100644 --- a/src/point-to-point/helper/point-to-point-helper.cc +++ b/src/point-to-point/helper/point-to-point-helper.cc @@ -197,7 +197,7 @@ PointToPointHelper::EnableAsciiInternal(Ptr stream, uint32_t deviceid = nd->GetIfIndex(); std::ostringstream oss; - oss << "/NodeList/" << nd->GetNode()->GetId() << "/DeviceList/" << deviceid + oss << "/NodeList/" << nodeid << "/DeviceList/" << deviceid << "/$ns3::PointToPointNetDevice/MacRx"; Config::Connect(oss.str(), MakeBoundCallback(&AsciiTraceHelper::DefaultReceiveSinkWithContext, stream));