LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-14-2017, 07:57 AM   #1
mevaa
LQ Newbie
 
Registered: Mar 2017
Posts: 4

Rep: Reputation: Disabled
Error while executing a tcl code


Hi everyone,

I am getting error while trying to execute a tcl code about encryption. I added new packet type, called Security_packet, and made updates on NS2.

The changes that I have done is in the attachment.
Also, I updated the Makefile by adding apps/Security_packet.o

Lasly, I runned make clean and make command and did not get any error while compiling.

However, trying to execute Ceaser.tcl file, I am getting this error.

Error is as follows:

Code:
 
ns Ceaser.tcl 
invalid command name "Agent/Security_packet"
    while executing
"Agent/Security_packet instproc recv {from rtt mess originmess hash} {
	$self instvar node_
	puts "node [$node_ id] received packet from \
            ..."
    (file "Ceaser.tcl" line 46)
Where is the missing part? Pls, help me to correct this code.

Thank you..
Attached Files
File Type: txt Ceaser.tcl.txt (2.0 KB, 18 views)
File Type: txt ns-default.tcl.txt (54.0 KB, 15 views)
File Type: txt packet.h.txt (24.5 KB, 15 views)
File Type: txt Security_packet.cc.txt (6.6 KB, 10 views)
File Type: txt Security_packet.h.txt (1,000 Bytes, 9 views)
 
Old 03-27-2017, 06:53 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
? Seems you are missing the Security_packet entry to tcl/lib/ns-packet.tcl ?


We already have the addition "Security" for ns2
http://www.nsnam.com/2015/03/securit...et-in-ns2.html

Patch : security_ns235.patch ( Sept 2015 ).

INFO : http://www.linuxquestions.org/questi.../security-ns2/

Build example #7 http://www.linuxquestions.org/questi...-4175479297/#7


-

Last edited by knudfl; 03-27-2017 at 06:54 PM.
 
  


Reply

Tags
ns2


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
i get an error while executing leach.tcl yogeshdhingra Linux - Newbie 6 05-13-2015 12:12 PM
problem while executing an .tcl code on ns 2.35 mezyana Linux - Software 5 04-22-2014 06:50 AM
Error while executing tcl... Ganesh3691 Linux - Wireless Networking 1 04-20-2014 12:39 PM
error while executing blackholeAODV tcl k_kimo Linux - Wireless Networking 5 06-27-2013 03:07 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:32 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