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"] {
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
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