p2p: Use cached variable

This commit is contained in:
Eduardo Almeida
2023-10-20 07:28:00 +01:00
parent 4bb239b8ce
commit f917fc0fec

View File

@@ -197,7 +197,7 @@ PointToPointHelper::EnableAsciiInternal(Ptr<OutputStreamWrapper> 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));