Download your favorite Linux distribution at LQ ISO.
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: 680Reputation: 680Reputation: 680Reputation: 680Reputation: 680Reputation: 680
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
[SOLVED] simulating blackhole attack and wormhole attack in ns-2 aditijigyasi Linux - Newbie 7 07-04-2016 09:50 AM
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 > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:14 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
Open Source Consulting | Domain Registration