don't call PeekData if we can
authorMathieu Lacage <mathieu.lacage@sophia.inria.fr>
Mon Jun 08 16:44:21 2009 +0200 (8 months ago)
changeset 4535c2b1a2145ae5
parent 4534 d3d369596c56
child 4536 981e2f0b696b
don't call PeekData if we can
src/applications/packet-sink/packet-sink.cc
     1.1 --- a/src/applications/packet-sink/packet-sink.cc	Mon Jun 08 16:43:55 2009 +0200
     1.2 +++ b/src/applications/packet-sink/packet-sink.cc	Mon Jun 08 16:44:21 2009 +0200
     1.3 @@ -142,8 +142,7 @@
     1.4          {
     1.5            InetSocketAddress address = InetSocketAddress::ConvertFrom (from);
     1.6            NS_LOG_INFO ("Received " << packet->GetSize() << " bytes from " << 
     1.7 -            address.GetIpv4() << " [" << address << "]---'" << 
     1.8 -            packet->PeekData() << "'");
     1.9 +            address.GetIpv4() << " [" << address << "]");
    1.10          }    
    1.11        m_rxTrace (packet, from);
    1.12      }