LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   No slot error in NS2 (https://www.linuxquestions.org/questions/linux-networking-3/no-slot-error-in-ns2-4175522559/)

preethisingh 10-18-2014 12:31 PM

No slot error in NS2
 
1 Attachment(s)
When I run my tcl file in NS2 im getting this error.

--- Classfier::no-slot{} default handler (tcl/lib/ns-lib.tcl) ---
_o12: no target for slot 4294967295
_o12 type: Classifier/Hash/Dest
content dump:
classifier _o12
0 offset
0 shift
1073741823 mask
1 slots
slot 0: _o129 (Classifier/Port)
-1 default
---------- Finished standard no-slot{} default handler ----------
ive attached my tcl file here..
I don't understand what this error is..kindly give a solution. TY

knudfl 10-18-2014 01:22 PM

1 Attachment(s)
$ ns preethisingh.tcl
... I get : "invalid command name "Agent/Security_packet".

* You will have to tell which "extra protocol" you have added.

The edited file "preethisingh.tcl" is attached.
Your "my_tcl_file.tcl.txt" is missing the last two lines.
-

preethisingh 10-26-2014 09:56 AM

No slot error
 
I have added a new packet type to NS2. named. security_packet. Does the error mean that there is no path between source node and destination node? if so where have I made the mistake in my tcl file..pls help.

knudfl 10-26-2014 10:41 AM

← #3 .
Quote:

added a new packet type to NS2. named. security_packet
A new packet type would appear in :
ns-<unknown-version>/<folder>/file.cc
common/packet.h
tcl/lib/{ ns-decault.tcl?, ns-lib.tcl?, ns-packet.tcl, etc.}

+ that all changes to files in ns-2.xx///{ files.cc, .h, tcl/lib/**}
.. must be compiled into a new executable 'ns' : $ make clean && make

.. Then the new function may be usable in a simulation.

-

preethisingh 10-26-2014 11:50 AM

No slot error
 
when I added new packet type to ns 2.35 . I made the following entries
1)I added security_packet.cc and security_packet.h to ns-allinone-2.35/ns-2.35/apps
2)then I made entry in packet.h
3)then in ns-default.tcl
4) then in ns-packet.tcl
5) then makefile.in
6)then I used ./configure
7) then make
should I make any change in tcl/lib/ns-lib.tcl ?? or anywhere else

knudfl 10-26-2014 02:27 PM

← #5 .

If 4) 5) 6) are the commands you used, you missed 'make clean'

Please do : $ make clean && make

preethisingh 10-26-2014 09:23 PM

No slot error
 
Now I used make clean and then make.. still im getting the error mentioned in #1. do I have to make any change in tcl/lib/ns-lib.tcl while adding new packet type?

knudfl 10-27-2014 02:13 AM

# 7.
Quote:

Do I have to make any change in tcl/lib/ns-lib.tcl while adding new packet type?
I don't know.

? May be you are just using "new packet type" in an impossible way ?


All times are GMT -5. The time now is 08:51 AM.