LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 10-18-2014, 01:31 PM   #1
preethisingh
LQ Newbie
 
Registered: Sep 2014
Posts: 6

Rep: Reputation: Disabled
No slot error in NS2


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
Attached Files
File Type: txt my_tcl_file.txt (1.6 KB, 192 views)
 
Old 10-18-2014, 02:22 PM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
$ 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.
-
Attached Files
File Type: txt preethisingh.tcl.txt (1.8 KB, 207 views)
 
Old 10-26-2014, 10:56 AM   #3
preethisingh
LQ Newbie
 
Registered: Sep 2014
Posts: 6

Original Poster
Rep: Reputation: Disabled
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.
 
Old 10-26-2014, 11:41 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
← #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.

-
 
Old 10-26-2014, 12:50 PM   #5
preethisingh
LQ Newbie
 
Registered: Sep 2014
Posts: 6

Original Poster
Rep: Reputation: Disabled
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
 
Old 10-26-2014, 03:27 PM   #6
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
← #5 .

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

Please do : $ make clean && make
 
Old 10-26-2014, 10:23 PM   #7
preethisingh
LQ Newbie
 
Registered: Sep 2014
Posts: 6

Original Poster
Rep: Reputation: Disabled
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?
 
Old 10-27-2014, 03:13 AM   #8
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
# 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 ?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to allocate GTS (guaranteed time slot) in CFP of superframe in WSN using NS2? er.poojasahu@gmail.com Linux - Software 0 12-19-2013 06:44 AM
NS2: Cygwin error "couldn't create signal error, win32 error 161" bhartideswal General 2 05-04-2013 03:22 AM
I got an error while running leach package in ns2.. help me to get out of this error. rkgowrishankar Linux - Software 1 02-07-2012 05:51 AM
NS2 Error ajkannan83 Linux - Software 1 02-11-2008 12:33 AM
No Sound : request_module: failed /sbin/modprobe -- sound-slot-0. error = 256 Mebuh Linux - General 0 01-26-2004 08:51 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration