> Dear respect NS-users,
Hello! :-))) In general, a good way to start to troubleshoot a problem
on your own is to type (or copy and paste) the warning into google and
see what you find. :-) If you're having this problem, someone else has
probably had it, too.
> warning: Please use -channel as shown in tcl/ex/wireless-mitf.tcl
I also find it helpful to *read* the warning messages and do as suggested. :-)
Try to read the code in that file and see how it relates to what you
are doing. I am not sure what you are trying to do exactly....if you
want to have 2 channels, see the comment at Ln 114 of the above file.
> warning: no class variable Mac/802_11::MaxSDUSize_
When I had this error, I solved it by googling and finding out what
someone else had done. I found a solution to be setting the variable
(in your case, MaxSDUSize_) to a number inside the file ns-default.tcl
(located here in my case:
cphelps/ns-allinone-2.31/ns-2.31/tcl/lib/ns-default.tcl). The format
is as shown in the file:
SuperClass/Class set _variable_name_ #
eg
Agent/MyAgentOtcl set my_var1_otcl 1.0
Hope that helps. 8-)
--
Sincerely,
Candace Phelps
3rd Yr Honors CS Student
Quoting ByungJoon Oh <[EMAIL PROTECTED]>:
>
> Dear respect NS-users,
>
> I got error message of tora routing with same between ns-2.29 and ns-2.28.
> so please help me to figure out it.
> I'm waiting to your kindly response for me.
>
> Thank you in advance.
>
> Best regards,
> ByungJoon Oh,
>
> ##############################ns-2.29 version######################
> [EMAIL PROTECTED]:~> ns wrls-tora2.tcl
> num_nodes is set 4
> warning: Please use -channel as shown in tcl/ex/wireless-mitf.tcl
> warning: no class variable Mac/802_11::MaxSDUSize_
>
> see tcl-object.tcl in tclcl for info about this warning.
>
>
> (_o19 cmd line 1)
> invoked from within
> "_o19 cmd ll _o21"
> invoked from within
> "catch "$self cmd $args" ret"
> invoked from within
> "if [catch "$self cmd $args" ret] {
> set cls [$self info class]
> global errorInfo
> set savedInfo $errorInfo
> error "error when calling class $cls: $args" $..."
> (procedure "_o19" line 2)
> (SplitObject unknown line 2)
> invoked from within
> "$mac ll $ll"
> (procedure "_o14" line 97)
> (Node/MobileNode add-interface line 97)
> invoked from within
> "$node add-interface $chan $propInstance_ $llType_ $macType_
> $ifqType_ $ifqlen_ $phyType_ $antType_ $topoInstance_ $inerrProc_
> $outerrProc_ $FECProc_"
> (procedure "_o3" line 73)
> (Simulator create-wireless-node line 73)
> 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"
> ("for" body line 2)
> invoked from within
> "for {set i 0} {$i < $val(nn) } { incr i } {
> set node_($i) [$ns node]
> }"
> (file "wrls-tora2.tcl" line 54)
>
>
> ##############################ns-2.28 version######################
>
> see tcl-object.tcl in tclcl for info about this warning.
> (_o19 cmd line 1)
> invoked from within
> "_o19 cmd ll _o21"
> invoked from within
> "catch "$self cmd $args" ret"
> invoked from within
> "if [catch "$self cmd $args" ret] {
> set cls [$self info class]
> global errorInfo
> set savedInfo $errorInfo
> error "error when calling class $cls: $args" $..."
> (procedure "_o19" line 2)
> (SplitObject unknown line 2)
> invoked from within
> "$mac ll $ll"
> (procedure "_o14" line 97)
> (Node/MobileNode add-interface line 97)
> invoked from within
> "$node add-interface $chan $propInstance_ $llType_ $macType_
> $ifqType_ $ifqlen_ $phyType_ $antType_ $topoInstance_ $inerrProc_
> $outerrProc_ $FECProc_"
> (procedure "_o3" line 73)
> (Simulator create-wireless-node line 73)
> 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"
> ("for" body line 2)
> invoked from within
> "for {set i 0} {$i < $val(nn) } { incr i } {
> set node_($i) [$ns node]
> }"
> (file "wrls-tora2.tcl" line 54)
>
>