LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-20-2013, 01:11 AM   #1
bhupendrapatel
LQ Newbie
 
Registered: Apr 2013
Posts: 1

Rep: Reputation: Disabled
NS2: regarding error during run .tcl file


when i have put this line
$ns at 0.3 "[$n2 set ragent_] hacker"
in my tcl file

than after i going to run this tcl file i have got this error

ns: _o61 hacker:
(_o61 cmd line 1)
invoked from within
"_o61 cmd hacker"
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 "_o61" line 2)
(SplitObject unknown line 2)
invoked from within
"_o61 hacker"


so please give me solution for fix this error
 
Old 04-20-2013, 10:09 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Welcome to LQ.
Quote:
$ns at 0.3 "[$n2 set ragent_] hacker"
Unknown command / option.
Please explain where you got the idea for: ns at 0.3 "[$n2 set ragent_] hacker"

And : Which tcl file was used ?
The tcl code can be attached as 'name.tcl.txt'.
Attachments : The paper clip tool in the 'Advanced Editor'.

-
 
1 members found this post helpful.
Old 04-21-2013, 06:54 AM   #3
bhupenpatel01
LQ Newbie
 
Registered: Mar 2013
Posts: 10

Rep: Reputation: Disabled
Thank you sir

My problem has solved



Quote:
Originally Posted by knudfl View Post
Welcome to LQ.

Unknown command / option.
Please explain where you got the idea for: ns at 0.3 "[$n2 set ragent_] hacker"

And : Which tcl file was used ?
The tcl code can be attached as 'name.tcl.txt'.
Attachments : The paper clip tool in the 'Advanced Editor'.

-
 
Old 04-21-2013, 06:59 AM   #4
bhupenpatel01
LQ Newbie
 
Registered: Mar 2013
Posts: 10

Rep: Reputation: Disabled
in problem with flood timer

below code i have used in aodv.cc for the flooding request:

void
FloodTimer::handle(Event*) {
if (agent->malicious == true) // here i have called malicious node 11

{
agent->FloodRREQ(0);start flooding to source node 0
}

Scheduler::instance().schedule(this, &intr, FLOOD_INTERVAL);
}

But its make done but did not get out put

please give me help if any one have this code of run success than please give me
 
Old 05-03-2013, 09:32 AM   #5
amissan
LQ Newbie
 
Registered: Apr 2013
Posts: 7

Rep: Reputation: Disabled
Quote:
Originally Posted by bhupenpatel01 View Post
My problem has solved
hello I have the same error can you tell me how you solved it please

Last edited by amissan; 05-04-2013 at 10:19 AM.
 
  


Reply

Tags
flooding-ns2, ns2



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
Error on Tcl when add misbehavior node in aodv ns2 D4SH_SI4 Linux - Networking 5 06-28-2013 12:57 AM
Floating point exception error while executing tcl with ns2 ines8989 Linux - Software 0 04-09-2013 01:44 PM
[SOLVED] Floating point exception after run TCL script ns2 deVacto Linux - Newbie 7 10-28-2012 11:56 PM
how to link tcl file and C++ files together and run in ns2? tootz Linux - Software 3 07-25-2012 03:42 PM
NS2 (v2.34) sim.tcl: error when calling class edison_0927 Linux - Newbie 0 05-30-2012 09:01 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:26 PM.

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