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));