Hi all,

I' m using the protocol Noah and i have to built up a multihop comunication 
between 2 nodes on a line of nodes.

I have read at the following site

http://icapeople.epfl.ch/widmer/uwb/ns-2/noah/

that is possible to make static routing with Naoh through the command 
"routing", and so i insert the code

for {set i 0} {$i < $val(nn) } {incr i} {
    set cmd "[$node_($i) set ragent_] routing $val(nn)"
    for {set to 0} {$to < $val(nn) } {incr to} {
        if {$to < $i} {
            set hop [expr $i - 1]
        } elseif {$to > $i} {
            set hop [expr $i + 1]
        } else {
            set hop $i
        }
        set cmd "$cmd $to $hop"
    }
    eval $cmd
}

But when i issues the simulation the following error appears:

(_o17 cmd line 1)
    invoked from within
"_o17 cmd routing 3 0 0 1 1 2 1"
    invoked from within
"catch "$self cmd $args" ret"
    (procedure "_o17" line 2)
    (SplitObject unknown line 2)
    invoked from within
"_o17 routing 3 0 0 1 1 2 1"
    ("eval" body line 1)
    invoked from within
"eval $cmd"
    ("for" body line 25)
    invoked from within
"for {set i 0} {$i < $num_nodi } {incr i} {

    set cmd "[$node_($i) set ragent_] routing $num_nodi"

    for {set to 0} {$to < $num_nodi } {incr to} ..."


Can someone explain me why??
Please help me because i don't understand the reason...
Thanks

_________________________________________________________________
Videochiamata? Prova MSN Messenger: divertente, facile, veloce, gratuito! 
http://www.msn.it/messenger/v7

Reply via email to