LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   ZRP patch for ns2.33 (https://www.linuxquestions.org/questions/linux-newbie-8/zrp-patch-for-ns2-33-a-4175598767/)

ss22 02-01-2017 11:50 PM

ZRP patch for ns2.33
 
Hello...

I already done ns2.33 installation in ubuntu 14.04
Now i want to ZRP patch for ns2.33
For this any file changes required ?
if yes then which file what change required ?

I performed steps which are given in this site but while executed then shows following error :
invalid command name "Agent/ZRP"
while executing
"Agent/ZRP set radius_ 2 "(file "zrp1.tcl" line 68)

so please tell me how to patch ZRP for ns2.33 in ubuntu 14.04 sucessfuly

Please help me.

Thank you.

TB0ne 02-02-2017 07:31 AM

Quote:

Originally Posted by ss22 (Post 5663755)
Hello...
I already done ns2.33 installation in ubuntu 14.04 Now i want to ZRP patch for ns2.33 For this any file changes required ? if yes then which file what change required ?

I performed steps which are given in this site but while executed then shows following error :
invalid command name "Agent/ZRP"
while executing
"Agent/ZRP set radius_ 2 "(file "zrp1.tcl" line 68)

so please tell me how to patch ZRP for ns2.33 in ubuntu 14.04 sucessfuly

Since we don't know what steps you followed, from where, there's not a lot we can tell you. Also, both Ubuntu 14.04 and ns2.33 are pretty old...but the error is telling you what file the error is in, and what LINE THE ERROR IS ON. Can't be more clear than that....

ss22 02-13-2017 11:54 PM

ZRP patch for ns2.33 for ubuntu 14.04
 
Quote:

Originally Posted by TB0ne (Post 5663866)
Since we don't know what steps you followed, from where, there's not a lot we can tell you. Also, both Ubuntu 14.04 and ns2.33 are pretty old...but the error is telling you what file the error is in, and what LINE THE ERROR IS ON. Can't be more clear than that....

....
i followed steps :
http://magnet.daiict.ac.in/magnet_me...n.html#Sec_1.2

http://magnet.daiict.ac.in/magnet_me....33_ZRP.tar.gz
http://magnet.daiict.ac.in/magnet_me...PatchZRP.patch
http://magnet.daiict.ac.in/magnet_me.../patchmyZRP.sh

It is assumed, that you have a working ns-allinone-2.33,
i.e. the './install' command was run with no errors.

""Section 3.2 Instructions :
1. First put following files into NS-2 home's parent directory:
* ns-allinone-2.33_ZRP.tar.gz (This contains my code)
* PatchZRP.patch
* patchmyZRP.sh (THIS SHELL-SCRIPT FILE -
This script file should be run from NS-2 home' parent directory)
2. Run patchZRP.sh from shell."" ( Like 'sh patchZRP.sh' ).
.....

But the script patchZRP.sh isn't working, easier to do manually :
a) cd ns-allinone-2.33/ && patch -p1 < PatchZRP.patch
b) touch ns-2.33/common/packet.h && touch ns-2.33/trace/cmu-trace.h
c) cd ../ && tar xvf ns-allinone-2.33_ZRP.tar.gz
d) cd ns-allinone-2.33/ns-2.33 && make -k


and also followed :

1) $ tar xvf ns-allinone-2.33.tar.gz
2) $ cd ns-allinone-2.33/
3) $ tar xvf zrp-ns233-patching.tar.gz
https://drive.google.com/file/d/0B7S...it?usp=sharing
4) $ export CC=gcc34 CXX=g++34
5) $ ./install
6) $ cd ns-2.33/
7) $ cp ns ns-zrp
8) $ su <enter-root-password>
9) # cp ns-zrp /usr/local/bin/
... Then you can do : $ ns-zrp <example>.tcl
... from zrp-examples-2012.tar.bz2
https://drive.google.com/file/d/0B7S...it?usp=sharing

but after performing both steps

i got same error

invalid command name "Agent/ZRP"
while executing
"Agent/ZRP set radius_ 2 "(file "zrp1.tcl" line 68)

while run tcl file of zrp..

so please help me how do i correct this error ?
Thank you


All times are GMT -5. The time now is 03:56 PM.