[Ns-developers] RandomWaypointMobilityModel broken

Tortonesi Mauro mauro.tortonesi at unife.it
Wed Jan 7 09:40:50 PST 2009


Dear NS3 developers,

my colleague Stefano Formaggi (in CC) and I have found a couple of
bugs in the RandomWaypointMobilityModel code:

1) both the constructor and the DoSetPosition method forget to set m_event
2) the BeginWalk method forgets to call m_helper.Unpause ()

These bugs effectively break support for random waypoint mobility in ns3.

The patch in attachment fixes both problems. It applies on both ns-3.3
and current ns-3-dev trunk.


Mauro Tortonesi

-- 
Mauro Tortonesi, Ph.D.

Research Assistant
Distributed Systems Research Group
Engineering Department
University of Ferrara
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ns3-rwp-fix.diff
Type: text/x-patch
Size: 1087 bytes
Desc: not available
Url : http://mailman.isi.edu/pipermail/ns-developers/attachments/20090107/9796eba8/ns3-rwp-fix.bin


More information about the Ns-developers mailing list