[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Correction to wireless-mip-test.tcl and dsragent.cc



Hi,

This file works fine, no need to change anything if you don't use
the --enable-debug.

No need to write the pattern file and the scenario file, all
instructions are included in the wireless-mip-test.tcl 

A problem occurs when ns is built with --enable-debug.
An assertion fails and it should not:

assert(logtarget != 0);
(line 537 in ~ns/dsr/dsragent.cc)

When running wireless-mip-test.tcl , logtarget == 0, but it is not bug.
logtarget is a Trace object and can be equal to 0 if the user doesn't
want any trace. In the trace method it tested (line 1728 in
~ns/dsr/dsragent.cc):

if (!logtarget) return;

I think line 537 should be removed form the file ~ns/dsr/dsragent.cc
if it should be able to debug ns without tracing in dsragent.

In attachement I give the ~ns/tcl/ex/wireless-mip-test.tcl that will not
complain.

-- 
Vera Mickael Stagiaire

wireless-mip-test.tcl