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

[ns] Trouble with scenario generation under ns-2.1b7 release



Hi all,

I used the scenario generator from the ns page under ns-2.1b6 and everything
kind of worked (it "kind of" worked because after generating the scenario
files, I had to change something in the agent file ... I think it was a
"create-connection something" line .... but that was just a minor change).

Now, I need to get it to run under ns-2.1b7 - but this is what I get by
calling my script, which uses the generated "topo1.tcl", "route1.tcl" and
"agent1.tcl" files:


syntax error in expression "0.8.3 & 2147483647 << 0"
    while executing
"expr $addrstr & [AddrParams NodeMask 1] <<  [AddrParams NodeShift 1"
    (procedure "AddrParams" line 6)
    (AddrParams addr2id line 6)
    invoked from within
"AddrParams addr2id $address_"
    (procedure "_o256" line 5)
    (Node attach line 5)
    invoked from within
"$node attach $agent"
    (procedure "_o4" line 2)
    (Simulator attach-agent line 2)
    invoked from within
"$ns_ attach-agent $node_ $decapagent_"
    (procedure "_o4627" line 12)
    (CtrMcast init line 12)
    invoked from within
"_o4627 init _o4 _o256"
    (Class create line 1)
    invoked from within
"CtrMcast create _o4627 _o4 _o256"
    invoked from within
"catch "$className create $o $args" msg"
    (procedure "new" line 3)
    invoked from within
"new $mproto $self $node"
    (procedure "_o4" line 2)
    (Simulator mrtproto-iifs line 2)
    invoked from within
"$self mrtproto-iifs $mproto $Node_($n) """
    (procedure "_o4" line 23)
    (Simulator mrtproto line 23)
    invoked from within
"$ns mrtproto CtrMcast {}"
    (procedure "create-routing" line 4)
    invoked from within
"create-routing ns"
    (file "measure.tcl" line 69)


Any idea about how to deal with this?
It's a shame that nobody seems to care about the scenario generator  :(
It is pretty outdated.

Cheers,
Michael