bugfix: CsmaNetDevice ErrorModel not discarding packet (reported by Rafal Mielniczuk)
authorTom Henderson <tomh@tomh.org>
Wed, 26 Jan 2011 09:53:49 -0800
changeset 6786 17f9a64dd4f6
parent 6785 afe95f44de93
child 6787 0cae5ded589d
bugfix: CsmaNetDevice ErrorModel not discarding packet (reported by Rafal Mielniczuk)
RELEASE_NOTES
src/devices/csma/csma-net-device.cc
--- a/RELEASE_NOTES	Wed Jan 26 10:56:33 2011 -0800
+++ b/RELEASE_NOTES	Wed Jan 26 09:53:49 2011 -0800
@@ -28,6 +28,7 @@
 since ns-3.10, in many cases referencing the Bugzilla bug number.
 
    - Fixed the UanPhyGen::IsStateBusy method, error with logical OR
+   - CsmaNetDevice ReceiveErrorModel was not dropping the packet
 
 Known issues
 ------------
--- a/src/devices/csma/csma-net-device.cc	Wed Jan 26 10:56:33 2011 -0800
+++ b/src/devices/csma/csma-net-device.cc	Wed Jan 26 09:53:49 2011 -0800
@@ -681,6 +681,7 @@
     {
       NS_LOG_LOGIC ("Dropping pkt due to error model ");
       m_phyRxDropTrace (packet);
+      return;
     }
 
   //