|
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 |
{ |