don't call PeekData if we can

This commit is contained in:
Mathieu Lacage
2009-06-08 16:44:21 +02:00
parent 1825edbc27
commit 2ae6d337a3

View File

@@ -142,8 +142,7 @@ void PacketSink::HandleRead (Ptr<Socket> socket)
{
InetSocketAddress address = InetSocketAddress::ConvertFrom (from);
NS_LOG_INFO ("Received " << packet->GetSize() << " bytes from " <<
address.GetIpv4() << " [" << address << "]---'" <<
packet->PeekData() << "'");
address.GetIpv4() << " [" << address << "]");
}
m_rxTrace (packet, from);
}