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

(-)a/src/devices/point-to-point/point-to-point-net-device.cc (-5 / +13 lines)
 Lines 511-521    Link Here 
511
      // Even if the transmitter is immediately available, we still enqueue and
511
      // Even if the transmitter is immediately available, we still enqueue and
512
      // dequeue the packet to hit the tracing hooks.
512
      // dequeue the packet to hit the tracing hooks.
513
      //
513
      //
514
      m_queue->Enqueue (packet);
514
      if (m_queue->Enqueue (packet) == true)
515
      packet = m_queue->Dequeue ();
515
        {
516
      m_snifferTrace (packet);
516
          packet = m_queue->Dequeue ();
517
      m_promiscSnifferTrace (packet);
517
          m_snifferTrace (packet);
518
      return TransmitStart (packet);
518
          m_promiscSnifferTrace (packet);
519
          return TransmitStart (packet);
520
        }
521
      else
522
        {
523
          // Enqueue may fail (overflow)
524
          m_macTxDropTrace (packet);
525
          return false;
526
        }
519
    }
527
    }
520
  else
528
  else
521
    {
529
    {

Return to bug 731