NS2
how to patch the zrp-ns235.patch and the ns2 security_ns235.patch so that i can use zrp with encyption
|
Quote:
https://www.linuxquestions.org/quest...ol-4175733095/ At some point, you're going to have to do research on your own for your own homework. We aren't going to type up step-by-step instructions for you or look up things and give you links. There are several threads on this very site that answer this, along with many on any search-engine for "ns2.35 zrp encryption patch". Start there. |
The ns2 "Security" is not a genuine encryption, but is a very simple code.
security_ns235.patch https://drive.google.com/file/d/0B7S...ew?usp=sharing Patching an ns-2.35 which is already patched with zrp : Code:
cd ns-allinone-2.35/ Code:
203 static const packet_t PT_ZRP = 73; // [CHANGE-2(for_ZRP-AGENT) : Lines#2] https://drive.google.com/file/d/1GCg...usp=drive_link .... which is this in aodv.cc: +#include <openssl/aes.h> +#include <openssl/ec.h> and Makefile.in (line 23) + -lcrypto @LIBS@ -lssl @LIBS@ ? Might work with ZRP? zrp.cc ? INFO http://www.linuxquestions.org/questi...67#post5305067 etc. posts https://www.linuxquestions.org/quest...raries-530848/ - |
@knudfl so I tried to patch an ns-2.35 which is already patched with zrp as you have mentioned above and while running the
Code:
patch -p0 < security_ns235.patch Code:
nahid@nahid-ROG-Strix-G614JU-G614JU:~/ns-allinone-2.35$ patch -p0 < security_ns235.patch |
Re #4
The zrp + security sequence .... Code:
tar xvf ns-allinone-2.35_gcc5.tar.gz Sorry, you will also have to add Code:
name_[PT_SECURITY_PACKET]= "Security_packet"; (So no real errors during patching but the 2 edits in common/packet.h) Alternatively, you can setup a new ns-allinone-2.35/ in a new folder in /home/name/ns2/, and use the new patch zrp+security_ns235.patch https://docs.google.com/document/d/1...usp=share_link i.e. you can have as many ns-allinone-2.xx as you want installed at the same time. The example zrp_guindy-Security.tcl (+ mobility31) is also included in https://drive.google.com/drive/folde...usp=drive_link My test Code:
$ ns235-zrp+security zrp_guindy-Security.tcl https://drive.google.com/file/d/1Kai...ew?usp=sharing - |
Thank you for the link.
|
All times are GMT -5. The time now is 03:44 AM. |