--- a/examples/socket/socket-bound-static-routing.cc Sat May 14 03:49:21 2011 -0400
+++ b/examples/socket/socket-bound-static-routing.cc Sat May 14 03:57:30 2011 -0400
@@ -193,8 +193,7 @@
Ptr<Packet> packet = socket->RecvFrom (from);
packet->RemoveAllPacketTags ();
packet->RemoveAllByteTags ();
- InetSocketAddress address = InetSocketAddress::ConvertFrom (from);
- NS_LOG_INFO ("Source Received " << packet->GetSize () << " bytes from " << address.GetIpv4());
+ NS_LOG_INFO ("Source Received " << packet->GetSize () << " bytes from " << InetSocketAddress::ConvertFrom (from).GetIpv4());
if (socket->GetBoundNetDevice ())
{
NS_LOG_INFO ("Socket was bound");