Re: [ns] about command "$ns rtmodel-at 1.0 down $n(1) $n(2)"

2011-05-10 Thread ma-haiyuan
Thanks for your reply! but there is no command "Iif" in tcl/lib/ns-link.tcl. it is " Link instproc all-connectors op { foreach c [$self info vars] { $self instvar $c if ![info exists $c] continue if [array size $c] continue foreach var [$self set $c] { if [catch "$var info class"] {

Re: [ns] about command "$ns rtmodel-at 1.0 down $n(1) $n(2)"

2011-05-07 Thread fivos
Go to tcl/lib/ns-link.tcl and try renaming lif to if and recompile ns . it should work then. Iif ![$var info class Node] { ;# $op on most everything - > if ![$var info class Node] { ;# $op on most everything cheers 2011/5/6 ma-haiyuan : > > > Hello everyone! > > When I do the tutorial for

[ns] about command "$ns rtmodel-at 1.0 down $n(1) $n(2)"

2011-05-06 Thread ma-haiyuan
Hello everyone! When I do the tutorial for the network simulator "NS" originally developed by Mac Greis, the subsection VI.2, the example can not run on my ns(version 2.31). The error is as follows: invalid command name "Iif" while executing "Iif ![$var info class Node] { ;# $op on most