example .tcl file for ids_blackholeattack

96 views
Skip to first unread message

Hitesh Sharma

unread,
Mar 28, 2020, 8:56:12 AM3/28/20
to Network Simulator 2 (NS2)
can anyone please share  example tcl scripts files for ids_blackhole_attack.patch file to test the patch in ns2

Regards,
Hitesh Sharma,
Student,
ME - Mobile Communication and Network Technology,
GTU School of Engineeing and Technology,
Gandhinagar.


Please visit  :




knudfl

unread,
Mar 28, 2020, 4:19:01 PM3/28/20
to Network Simulator 2 (NS2)
When these patches are used :
blackholeaodv2013-ns235_1.patch, idsAODV-2-for-blackhole2013-patched_ns235.patch
... then the simulation examples are : idsAODV-examples-05.17.tar.gz
https://drive.google.com/file/d/0B7S255p3kFXNQjJlRWVEQVNCQUk/view?usp=sharing



Hitesh Sharma

unread,
Mar 30, 2020, 5:49:41 AM3/30/20
to Network Simulator 2 (NS2)
Sir,

When I am patching the idsAODV-2-for-blackhole2013-patched_ns235.patch  file with ns-allinone-2.35_gcc5.tar.gz , I am getting the following error.
Similarly, I am facing the same error  when I am using the current version of ns-allinone-2.35.tar.gz


hitesh@hitesh-Lenovo-IdeaPad-S145-15API:~/Downloads/ns-allinone-2.35$ patch -p0 < idsAODV-2-for-blackhole2013-patched_ns235.patch
patching file ns-2.35/common/packet.h
Hunk #1 FAILED at 201.
Hunk #2 FAILED at 271.
Hunk #3 succeeded at 417 with fuzz 2 (offset -4 lines).
2 out of 3 hunks FAILED -- saving rejects to file ns-2.35/common/packet.h.rej
patching file ns-2.35/idsaodv/idsaodv-1.tcl
patching file ns-2.35/idsaodv/idsaodv.cc
patching file ns-2.35/idsaodv/idsaodv.h
patching file ns-2.35/idsaodv/idsaodv_logs.cc
patching file ns-2.35/idsaodv/idsaodv_rqueue.cc
patching file ns-2.35/idsaodv/idsaodv_rqueue.h
patching file ns-2.35/idsaodv/idsaodv_rtable.cc
patching file ns-2.35/idsaodv/idsaodv_rtable.h
patching file ns-2.35/idsaodv/idsaodv_semih.cc
patching file ns-2.35/idsaodv/idsaodv.tcl
patching file ns-2.35/idsaodv/TextFile
patching file ns-2.35/Makefile.in
Hunk #1 FAILED at 335.
1 out of 1 hunk FAILED -- saving rejects to file ns-2.35/Makefile.in.rej
patching file ns-2.35/queue/priqueue.cc
Hunk #1 FAILED at 92.
1 out of 1 hunk FAILED -- saving rejects to file ns-2.35/queue/priqueue.cc.rej
patching file ns-2.35/tcl/lib/ns-agent.tcl
Hunk #1 FAILED at 203.
1 out of 1 hunk FAILED -- saving rejects to file ns-2.35/tcl/lib/ns-agent.tcl.rej
patching file ns-2.35/tcl/lib/ns-lib.tcl
Hunk #1 succeeded at 630 with fuzz 2 (offset -3 lines).
Hunk #2 succeeded at 862 with fuzz 1 (offset -11 lines).
patching file ns-2.35/tcl/lib/ns-mobilenode.tcl
patching file ns-2.35/tcl/lib/ns-packet.tcl
Hunk #1 succeeded at 179 with fuzz 2.


Regards,
Hitesh Sharma,
Student,
ME - Mobile Communication and Network Technology,
GTU School of Engineeing and Technology,
Gandhinagar.


Please visit  :





--
You received this message because you are subscribed to the Google Groups "Network Simulator 2 (NS2)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ns-users+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ns-users/91d4310a-2f8c-4c58-a849-fd1646e6a679%40googlegroups.com.
idsAODV-2-for-blackhole2013-patched_ns235.patch

knudfl

unread,
Mar 30, 2020, 3:47:42 PM3/30/20
to Network Simulator 2 (NS2)
"When these patches are used" means that both patches must be used.
Note : ns-allinone-2.35.tar.gz is not "a current version" : Was issued year 2011.

Build ns-2.35 + idsAODV
tar xvf ns-allinone-2.35_gcc5.tar.gz
https://drive.google.com/file/d/0B7S255p3kFXNVVlxR0ZNRGVORjQ/view?usp=sharing
cd ns-allinone-2.35/
patch -p0 < blackholeaodv2013-ns235_1.patch
https://drive.google.com/file/d/0B7S255p3kFXNWWVDZzd2ZC14akE/view?usp=sharing
patch -p0 < idsAODV-2-for-blackhole2013-patched_ns235.patch
https://drive.google.com/file/d/0B7S255p3kFXNT0FjUTBTR21sMzg/view?usp=sharing
./install
cd ns-2.35/
cp ns ns235-blackhole+idsaodv
sudo cp ns235-blackhole+idsaodv /usr/local/bin/

------------- Simulation ----------
ns235-blackhole+idsaodv idsaodv2.tcl
To unsubscribe from this group and stop receiving emails from it, send an email to ns-u...@googlegroups.com.
Reply all
Reply to author
Forward
Message has been deleted
0 new messages