LinuxQuestions.org
Visit Jeremy's Blog.
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-22-2012, 09:30 AM   #1
afsha2719
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 install.my 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 blackholeaodv.cc file .the changes that i have to make are
if ( (u_int32_t) ih->saddr() == index)
forward ((blackholeaodv_rt_entry*) 0,p,NO_DELAY);
else
drop(p, DROP_RTR_ROUTE_LOOP);
my second query is do i have to make changes in the blackholeaodv.cc file or do i simply need to add these commands in blackholeaodv.cc file.

regards

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

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
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.
 
  


Reply



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 08:50 AM
simulating blackhole attack in ns-29 mnazanin Linux - Newbie 2 12-15-2011 10:42 PM
Blackhole attack Vaishali4 Linux - Security 2 10-10-2011 10:13 AM

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

All times are GMT -5. The time now is 12:46 AM.

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