Use scheduler to call up the stack in SimpleNetDevice (bug 287)
authorRaj Bhattacharjea <raj.b@gatech.edu>
Fri Aug 15 11:25:18 2008 -0400 (18 months ago)
changeset 3550e170f2c17e03
parent 3549 46446b2e3c9d
child 3551 016c70fa60d8
Use scheduler to call up the stack in SimpleNetDevice (bug 287)
src/node/simple-channel.cc
     1.1 --- a/src/node/simple-channel.cc	Thu Aug 14 18:25:33 2008 -0400
     1.2 +++ b/src/node/simple-channel.cc	Fri Aug 15 11:25:18 2008 -0400
     1.3 @@ -19,6 +19,7 @@
     1.4   */
     1.5  #include "simple-channel.h"
     1.6  #include "simple-net-device.h"
     1.7 +#include "ns3/simulator.h"
     1.8  #include "ns3/packet.h"
     1.9  
    1.10  namespace ns3 {
    1.11 @@ -48,7 +49,7 @@
    1.12  	{
    1.13  	  continue;
    1.14  	}
    1.15 -      tmp->Receive (p->Copy (), protocol, to, from);
    1.16 +      Simulator::ScheduleNow (&SimpleNetDevice::Receive, tmp, p->Copy (), protocol, to, from);
    1.17      }
    1.18  }
    1.19