Forum Replies Created
yup thats what m asking if its
as its wriiten over there a
bdepartures_ : Running total of bytes contained in packets that have departed (not dropped).
so if i was multiplying by 8 to make it byte then i was doing a wrong calculation
right??
thnx for the reply
yes there was a scope problem and i have done it as you have said
now list is maintain correctly and now that problem is resolved
but when i call
Agent/rtProto/SLRA instproc madd-route {peerAddr dst check nodeid} {
$self instvar nextHop_
global multi test target_list
puts "check $check"
set node_ [$self id2handle $nodeid]
set dest_ [$self id2handle $dst]
# $node_ set multi $multipath_
if { $multi !=1} {
puts "for subnet $dst the link is $peerAddr"
set ns_ [Simulator instance]
set nullAgent_ [$ns_ set nullAgent_]
set a [$dest_ set address_]
set b [$ns_ link $node_ $peerAddr]
#set target [$b head]
if { $test == 1 } {
lset target_list 0 $b
set test 2
} else {
lappend target_list $b
puts " target list $target_list"
}
set num [llength target_list]
puts "nos of element in target list $num"
foreach link $target_list {
puts " link $link is in array"
}
if { $check == 1 } {
#$node_ delete-routes [$dst id] $nextHop_($dst) $nullAgent_
if { $nextHop_($dest_) != "" } {
$node_ delete-route [$dst id] $nextHop_($dst) $nullAgent_
}
$node_ add-routes $dst $target_list
$node_ set multipath_ 1
#Node set multipath_ 1
}
}
}
it gives following error
ns: _o371 madd-route 3 5 1 2: can’t read “class::”: no such variable
while executing
“warn “$class::$proc cannot install multiple routes””
invoked from within
“if !$multiPath_ {
if {[llength $ifs] > 1} {
warn “$class::$proc cannot install multiple routes”
set ifs [lindex $ifs 0]
}
$self add-route $id [$ifs he…”
(procedure “_o16” line 3)
(Node add-routes line 3)
invoked from within
“$node_ add-routes $dst $target_list”
(procedure “_o371” line 44)
(Agent/rtProto/SLRA madd-route line 44)
invoked from within
“_o371 madd-route 3 5 1 2”
[/code]
yeah what do you mean ??
by the way code is there under ns2.34/tcl/rtglib/route-proto.tcl