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.