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

(-)a/src/internet-stack/ipv4-raw-socket-impl.cc (+4 lines)
 Lines 184-193    Link Here 
184
        {
184
        {
185
          NS_LOG_LOGIC ("Route exists");
185
          NS_LOG_LOGIC ("Route exists");
186
          ipv4->Send (p, route->GetSource (), dst, m_protocol, route);
186
          ipv4->Send (p, route->GetSource (), dst, m_protocol, route);
187
          NotifyDataSent (p->GetSize ());
188
          NotifySend (GetTxAvailable ());
189
          return p->GetSize();
187
        }
190
        }
188
      else
191
      else
189
        {
192
        {
190
          NS_LOG_DEBUG ("dropped because no outgoing route.");
193
          NS_LOG_DEBUG ("dropped because no outgoing route.");
194
          return -1;
191
        }
195
        }
192
    }
196
    }
193
  return 0;
197
  return 0;
(-)a/src/internet-stack/udp-socket-impl.cc (+3 lines)
 Lines 414-419    Link Here 
414
    {
414
    {
415
      m_udp->Send(p->Copy (), m_endPoint->GetLocalAddress(), dest,
415
      m_udp->Send(p->Copy (), m_endPoint->GetLocalAddress(), dest,
416
                  m_endPoint->GetLocalPort(), port, 0);
416
                  m_endPoint->GetLocalPort(), port, 0);
417
      NotifyDataSent (p->GetSize ());
418
      NotifySend (GetTxAvailable ());
419
      return p->GetSize();
417
    }
420
    }
418
  else if (ipv4->GetRoutingProtocol () != 0)
421
  else if (ipv4->GetRoutingProtocol () != 0)
419
    {
422
    {

Return to bug 864