Bugzilla – Bug 807
ns2-mobility-helper.cc: node id parsed wrong
Last modified: 2010-04-16 13:26:31 UTC
Created attachment 755 [details] ns2-mobility-helper Hi, The Node Id is parsed wrong in ns2-mobility-helper.cc It is just a small error i think it doesnt affect the parsing, but if you output the node id it is e.g. "5)" the number with the closing bracket. it has to be: line.substr (startNodeId + 1, endNodeId - (startNodeId + 1)) instead of line.substr (startNodeId + 1, endNodeId - startNodeId) I also added a debug output to echo the nodeid. I attach my changed sourcecode where i correct this bug and added a few comments. Thomas
changeset 617ac18757e6