Visit Jeremy's Blog.
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.


  Search this Thread
Old 04-22-2012, 10:30 AM   #1
LQ Newbie
Registered: Apr 2012
Posts: 14
Blog Entries: 1

Rep: Reputation: Disabled
implement blackhole attack in wireless adhoc networks

i am trying to implement a new routing protocol in NS2.29 /ns-2.33 to simulate black hole behavoir.for that purpose i have to duplicate AODV protocol in ns durectory & change the name blackholeaodv.and besides this i have to change the name of the all files blackholeaodv except the "aodv_acket.h" .
i have also to make changes in 2 files
1)first in "\tcl|lib|ns-lib.tcl"
2)the second change i have to make in "\make file"
then i have to compile ns2 again by commands make clean,make, make first query is where i have to use these commands i.e make clean,make ,make install.

3)the third file in which change is to be made is file .the changes that i have to make are
if ( (u_int32_t) ih->saddr() == index)
forward ((blackholeaodv_rt_entry*) 0,p,NO_DELAY);
my second query is do i have to make changes in the file or do i simply need to add these commands in file.


Last edited by afsha2719; 04-23-2012 at 12:59 AM.
Old 04-23-2012, 08:11 PM   #2
LQ Guru
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 658Reputation: 658Reputation: 658Reputation: 658Reputation: 658Reputation: 658
You cd to the directory were the Makefile exists. The targets like "clean" and "install" are read from the Makefile file.

You will need to read the README or other instructions. Code will need to exist in the correct location. I don't know if you need insert the code, or edit existing lines. Usually you are given patch files containing "diff" output, and use "patch" to make the changes.


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
simulating blackhole attack in ns-29 mnazanin Linux - Newbie 2 12-15-2011 11:42 PM
Blackhole attack Vaishali4 Linux - Security 2 10-10-2011 11:13 AM
[SOLVED] simulating blackhole attack and wormhole attack in ns-2 aditijigyasi Linux - Newbie 5 10-25-2010 05:38 AM

All times are GMT -5. The time now is 01:41 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration