LinuxQuestions.org
Visit Jeremy's Blog.
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 01-23-2015, 01:21 AM   #1
mary1001
Member
 
Registered: Jul 2014
Location: Iran
Posts: 76

Rep: Reputation: Disabled
error in adding malicius nodes should be solved


hi
i add malicious nodes to aodv use step by step as Knudfl here http://www.linuxquestions.org/questi...-a-4175505657/ in post #6

but i have this error :
num_nodes is set 3
INITIALIZE THE LIST xListHead
Starting Simulation...
ns: _o39 hacker:
(_o39 cmd line 1)
invoked from within
"_o39 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 "_o39" line 2)
(SplitObject unknown line 2)
invoked from within
"_o39 hacker"

i add this patch before, and i never had this error but now i dont know why this happend....i search every where in the internet many person has this problem but never solved...please help to solve this...i attach my tcl file..
Attached Files
File Type: txt sm4.tcl.txt (4.0 KB, 25 views)
 
Old 01-23-2015, 05:33 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 CentOS7.9 + 50+ other Linux OS, for test only.
Posts: 17,486

Rep: Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635
Looks like you did $ ns sm4.tcl : Which is wrong.

Please read :
. http://www.linuxquestions.org/questi...estion.-71791/
. http://www.linuxquestions.org/linux/...Ask_a_Question
. http://linuxsilo.net/docs/smart-questions_en.html
→ Missing information.
I.e. an error output without the command that caused the error :
Actually tells nothing.


Quote:
I add malicious nodes to aodv use step by step
The last steps are ...
$ cd ns-2.35/
$ cp ns ns235-malicious
$ sudo cp ns235-malicious /usr/local/bin/
... and read further on in the thread :
#12 http://www.linuxquestions.org/questi...4175505657/#12
→ $ ns235-malicious <file>.tcl
I.e. you are not supposed to use plain 'ns'.
! Please use 'ns235-malicious' for the {malicious / hacker} simulations !

-
 
Old 01-23-2015, 05:36 AM   #3
mary1001
Member
 
Registered: Jul 2014
Location: Iran
Posts: 76

Original Poster
Rep: Reputation: Disabled
wow i wonder ...by shutting down and trunning on my laptop the problem solved...ns2 really confused me...is it know what it do at all!!!!

now i have an other question, i ask a problem in http://www.linuxquestions.org/questi...-a-4175531387/ #3 so i change my OS to 32 bit but know i have some of those problem....in your idea is it common that when i run a scenario with malicious nodes, i have this output...but trace file created...


num_nodes is set 40
INITIALIZE THE LIST xListHead
Starting Simulation...
channel.cc:sendUp - Calc highestAntennaZ_ and distCST_
highestAntennaZ_ = 1.5, distCST_ = 550.0
SORTING LISTS ...DONE!
PacketQueue:: remove() couldn't find target

is it have a problem?
 
Old 01-23-2015, 10:21 AM   #4
mary1001
Member
 
Registered: Jul 2014
Location: Iran
Posts: 76

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by knudfl View Post



The last steps are ...
$ cd ns-2.35/
$ cp ns ns235-malicious
$ sudo cp ns235-malicious /usr/local/bin/
... and read further on in the thread :
#12 http://www.linuxquestions.org/questi...4175505657/#12
→ $ ns235-malicious <file>.tcl
I.e. you are not supposed to use plain 'ns'.
! Please use 'ns235-malicious' for the {malicious / hacker} simulations !

-
i do this as you say, but nothing has changed... now i do not have the problem that i say in #1 .
as i say in http://www.linuxquestions.org/questi...15#post5305515 in #10 (i continue here) i have segmentation fault and i know what you said me :
Quote:
Your file sm"5".tcl, attached to the above post #10 :
No `Segmentation faultī here with : set val(nn) 20
( Can result in 'Segmentation fault' with :
less than 20, or more than 20 nodes.)

set val(nn) 20 → $ ns235-malicious _mary_sm5.tcl →
The file sm.tr 3.7 MB is created.
but i do not want to do this ,i want to have 40 nodes no less or more than 20 nodes...
 
  


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
adding disks to computing nodes in a diskless cluster mahmoodn Linux - Server 3 12-31-2012 04:52 PM
[SOLVED] No device nodes with fresh kernel (was Kernel panic after fsck) roberto967 Slackware 4 12-04-2011 03:05 PM
[SOLVED] : Adding New application njb Slackware 7 04-28-2010 07:42 AM
RIP v2, OSPF dynamically adding and removing nodes saiyen2002 Linux - Networking 1 12-03-2009 09:33 PM
Adding another user to the IPcop GUI -> Solved! jameske Linux - Server 1 10-24-2009 04:26 AM

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

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