[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ns] Q: Classfier::no-slot{}, what does it actually mean?
Hi,
I suspect my problem have been seen before, but I could not find a solution.
When running a simulation using the OLSR-extension, I get the following error:
[snip]
--- Classfier::no-slot{} default handler (tcl/lib/ns-lib.tcl) ---
� � � � _o12: no target for slot -1
� � � � _o12 type: Classifier/Hash/Dest
content dump:
classifier _o12
� � � � 0 offset
� � � � 0 shift
� � � � 2147483647 mask
� � � � 2 slots
� � � � � � � � slot 0: _o37
� � � � � � � � slot 1: _o19
� � � � -1 default
---------- Finished standard no-slot{} default handler ----------
[snip]
I've searched the archives of this list to get a solution, and looked into
the manual - no help. In the archives, I can see, that other people have had
the same problem. Solutions suggested were:
- topology problem: Do not think that is my problem here (see code below)
- too many nodes: Definitely not the problem here.
Could anyone give me a hint on what might be wrong. If not the solution, then
just a hint on where (and maybe how) to pinpoint the problem. A good
explanation of what the error-msg actually says/means could maybe lead me in
the right direction.
Hope someone can help me!
This is the (simple) script I am using:
[snip]
set ns [new Simulator]
set nf [open out.nam w]
$ns namtrace-all $nf
proc finish {} {
� � � � global ns nf
� � � � $ns flush-trace
� � � � close $nf
� � � � exec nam out.nam &
� � � � exit 0
}
set n0 [$ns node]
set n1 [$ns node]
$ns duplex-link $n0 $n1 1Mb 10ms DropTail
set olsr0 [new Agent/OLSR 1]
$ns attach-agent $n0 $olsr0
set null0 [new Agent/Null]
$ns attach-agent $n1 $null0
$ns connect $olsr0 $null0 �
$ns at 0.5 "$olsr0 start"
$ns at 4.5 "$olsr0 stop"
$ns at 5.0 "finish"
$ns run
[snip]
Regards, Per Olesen