I follow the instruction about how to add a new routing protocol to ns2
and I am sure that I do all steps,however,I suffer the follow mistake,and I 
search a lot in internet and get nothing useful
the error follows:
num_nodes is set 3
extra switch pattern with no body
    while executing
"switch -exact $routingAgent_ {
set ragent [$self create-dsdv-agent $node]
$self at 0.0 "$node start-dsr"
set ragent [$self cre..."
    (procedure "_o3" line 14)
    (Simulator create-wireless-node line 14)
    invoked from within
"_o3 create-wireless-node"
    ("eval" body line 1)
    invoked from within
"eval $self create-wireless-node $args"
    (procedure "_o3" line 23)
    (Simulator node line 23)
    invoked from within
"$ns node"
    invoked from within
"set n(0) [$ns node] "
    (file "mflood.tcl" line 55)
Could any one help me !
Thanks a lot!

Reply via email to