Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


Closed Thread
  Search this Thread
Old 12-28-2016, 10:04 AM   #1
LQ Newbie
Registered: Dec 2016
Location: Bandung, Indonesia
Distribution: Ubuntu
Posts: 4

Rep: Reputation: Disabled
Smile What should I do to implement Grayhole AODV NS2?? i got some error in tcl

Hello Mr./Mrs. I'm newbie in NS2. I'd like to consult about security in VANET. I'm doing my final project about Grayhole attack on VANET. I have patch files grayholeAODV.patch from knudfl from this link

but I'm confused to implement grayholeAODV in .tcl file. i got some error when I try to simulate using my own script tcl.
num_nodes is set 30
Creating nodes...

(_o653 cmd line 1)
invoked from within
"_o653 cmd addr"
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 "_o653" line 2)
(SplitObject unknown line 2)
invoked from within
"_o653 addr"
("eval" body line 1)
invoked from within
"eval $node addr $args"
("default" arm line 2)
invoked from within
"switch -exact $routingAgent_ {
set ragent [$self create-dsdv-agent $node]
$self at 0.0 "$node start-dsr"
set ragent [$self cre..."
(procedure "_o4" line 14)
(Simulator create-wireless-node line 14)
invoked from within
"_o4 create-wireless-node"
("eval" body line 1)
invoked from within
"eval $self create-wireless-node $args"
(procedure "_o4" line 23)
(Simulator node line 23)
invoked from within
"$ns_ node"
("for" body line 2)
invoked from within
"for {set i $val(nnaodv)} {$i < $val(nn)} {incr i} {
set node_($i) [$ns_ node]
ns_ at 0.0 "$node_($i) label GrayHoleAODV Node"
(file "gray30node.tcl" line 65)

files attached:

Please help me its urgent.
Thank you before

Last edited by mimamkhariz; 12-28-2016 at 10:10 AM.
Old 12-29-2016, 02:16 PM   #2
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=14, FreeBSD_12{.0|.1}
Posts: 5,646
Blog Entries: 11

Rep: Reputation: 3674Reputation: 3674Reputation: 3674Reputation: 3674Reputation: 3674Reputation: 3674Reputation: 3674Reputation: 3674Reputation: 3674Reputation: 3674Reputation: 3674
Please post your thread in only one forum. Posting a single thread in the most relevant forum will make it easier for members to help you and will keep the discussion in one place. This thread is being closed because it is a duplicate.

Please continue your discussion in the original thread which seems the most relevant place and already includes numerous useful comments and links.

Closed Thread

grayhole, ns2, tcl, vanet

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
grayhole attack in ns2 using aodv protocol absharma Linux - Newbie 19 12-29-2016 02:26 PM
I m getting an error while running a tcl script on wireless aodv routing protocol in ns2.35. uttam khawas Linux - Newbie 3 11-29-2016 07:12 AM
getting error in .tcl while creating malicious node in aodv in ns2.35 saa-6611 Linux - Software 12 05-22-2014 06:00 AM
Error on Tcl when add misbehavior node in aodv ns2 D4SH_SI4 Linux - Networking 5 06-28-2013 12:57 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:55 AM.

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