View | Details | Raw Unified | Return to bug 1152
Collapse All | Expand All

(-)a/examples/socket/socket-bound-static-routing.cc (-4 / +1 lines)
 Lines 131-138    Link Here 
131
  staticRoutingDstRtr->AddHostRouteTo (Ipv4Address ("10.1.1.1"), Ipv4Address ("10.10.2.1"), 2);
131
  staticRoutingDstRtr->AddHostRouteTo (Ipv4Address ("10.1.1.1"), Ipv4Address ("10.10.2.1"), 2);
132
  staticRoutingRtr2->AddHostRouteTo (Ipv4Address ("10.1.1.1"), Ipv4Address ("10.1.2.1"), 1);
132
  staticRoutingRtr2->AddHostRouteTo (Ipv4Address ("10.1.1.1"), Ipv4Address ("10.1.2.1"), 1);
133
133
134
  Ipv4InterfaceAddress ifInAddrSrc=ipv4Src->GetAddress (1,0);
135
136
  // There are no apps that can utilize the Socket Option so doing the work directly..
134
  // There are no apps that can utilize the Socket Option so doing the work directly..
137
  // Taken from tcp-large-transfer example
135
  // Taken from tcp-large-transfer example
138
136
 Lines 195-202    Link Here 
195
  Ptr<Packet> packet = socket->RecvFrom (from);
193
  Ptr<Packet> packet = socket->RecvFrom (from);
196
  packet->RemoveAllPacketTags ();
194
  packet->RemoveAllPacketTags ();
197
  packet->RemoveAllByteTags ();
195
  packet->RemoveAllByteTags ();
198
  InetSocketAddress address = InetSocketAddress::ConvertFrom (from);
196
  NS_LOG_INFO ("Source Received " << packet->GetSize () << " bytes from " << InetSocketAddress::ConvertFrom (from).GetIpv4());
199
  NS_LOG_INFO ("Source Received " << packet->GetSize () << " bytes from " << address.GetIpv4());
200
  if (socket->GetBoundNetDevice ())
197
  if (socket->GetBoundNetDevice ())
201
    {
198
    {
202
      NS_LOG_INFO ("Socket was bound");
199
      NS_LOG_INFO ("Socket was bound");

Return to bug 1152