From 2ae6d337a31d3732e37692c9bb14873751e2587f Mon Sep 17 00:00:00 2001 From: Mathieu Lacage Date: Mon, 8 Jun 2009 16:44:21 +0200 Subject: [PATCH] don't call PeekData if we can --- src/applications/packet-sink/packet-sink.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/applications/packet-sink/packet-sink.cc b/src/applications/packet-sink/packet-sink.cc index 3a86f5416..a7e9b6db1 100644 --- a/src/applications/packet-sink/packet-sink.cc +++ b/src/applications/packet-sink/packet-sink.cc @@ -142,8 +142,7 @@ void PacketSink::HandleRead (Ptr 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); }