examples/socket/socket-bound-static-routing.cc
changeset 7217 09c515917388
parent 7215 a70267cd4047
child 7256 b04ba6772f8c
equal deleted inserted replaced
7216:31d6aadf369c 7217:09c515917388
   191 {
   191 {
   192   Address from;
   192   Address from;
   193   Ptr<Packet> packet = socket->RecvFrom (from);
   193   Ptr<Packet> packet = socket->RecvFrom (from);
   194   packet->RemoveAllPacketTags ();
   194   packet->RemoveAllPacketTags ();
   195   packet->RemoveAllByteTags ();
   195   packet->RemoveAllByteTags ();
   196   InetSocketAddress address = InetSocketAddress::ConvertFrom (from);
   196   NS_LOG_INFO ("Source Received " << packet->GetSize () << " bytes from " << InetSocketAddress::ConvertFrom (from).GetIpv4());
   197   NS_LOG_INFO ("Source Received " << packet->GetSize () << " bytes from " << address.GetIpv4());
       
   198   if (socket->GetBoundNetDevice ())
   197   if (socket->GetBoundNetDevice ())
   199     {
   198     {
   200       NS_LOG_INFO ("Socket was bound");
   199       NS_LOG_INFO ("Socket was bound");
   201     } 
   200     } 
   202   else
   201   else