[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
ErrorModel
Hello:
I am using the ErrorModel to insert errors on a link.
There seems to be some problem with the initialization
of errPkt_ variable.
Although ns-default.tcl does include the initialization
ErrorModel set errPkt_ 0
the value seems to be inadvertently overwritten by another
number once in a while.
Two unintended effects of this are that
(a) adding a comment to ns-default.tcl changes behavior - without
the comment, no errors are introduced; with the comments,
errors are correctly introduced.
(b) same tcl script produces different results on two machines.
No errors introduced on one machine, while errors correctly
introduced on another one.
Seems like a memory management problem.
I can fix this by adding
ErrorModel set errPkt_ 0
to my tcl script. However, I do not like this fix too much.
How do I know what other initializations are getting messed up?
Any suggestions would be appreciated.
- nitin