diff --git a/src/devices/csma/csma-channel.cc b/src/devices/csma/csma-channel.cc index 9809daa4e..30100b3c8 100644 --- a/src/devices/csma/csma-channel.cc +++ b/src/devices/csma/csma-channel.cc @@ -232,12 +232,14 @@ CsmaChannel::PropagationCompleteEvent() NS_LOG_LOGIC ("Receive"); std::vector::iterator it; + uint32_t devId = 0; for (it = m_deviceList.begin (); it < m_deviceList.end(); it++) { - if (it->IsActive ()) + if (it->IsActive () && m_currentSrc != devId) { it->devicePtr->Receive (m_currentPkt->Copy ()); } + devId++; } m_state = IDLE; }