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

[ns] (no subject)



I am wondering if the following should work and since it doesn't why not.   
Thanks in advance.

In Greis wireless tutorial, the first .tcl file  I am adding the 'Added for 
Flow' code after the nodes get connected.  The error messages follow.  

printall() and printdrops() are procedures I have written but they don't seem 
to be the problem


/////////////////////////////////////////////
$ns_ at 10.0 $ftp start

##################### Added for Flow ###########################
$node_(0) set fid_ 0
$node_(1) set fid_ 1
set slink1 [$ns_ link $node_(0) $node_(1)]
set fmon1 [$ns_ makeflowmon Fid]
$ns_ attach-fmon $slink1 $fmon1
$ns_ at $val(stop) "printall $fmon1"
$ns_ at $val(stop) "printdrops 0 $fmon1"
$ns_ at $val(stop) "printdrops 1 
$fmon1"################################################################invalid
 command name ""    while executing"$lnk attach-monitors $isnoop $osnoop 
$dsnoop $fm"    (procedure "_o3" line 5)    (Simulator attach-fmon line 5)    
invoked from within"$ns_ attach-fmon $slink1 $fmon1"    (file "geoff1.tcl" 
line 167)