LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-01-2017, 11:50 PM   #1
ss22
LQ Newbie
 
Registered: Jan 2017
Posts: 2
Blog Entries: 1

Rep: Reputation: Disabled
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.
 
Old 02-02-2017, 07:31 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 27,609

Rep: Reputation: 8139Reputation: 8139Reputation: 8139Reputation: 8139Reputation: 8139Reputation: 8139Reputation: 8139Reputation: 8139Reputation: 8139Reputation: 8139Reputation: 8139
Quote:
Originally Posted by ss22 View Post
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....
 
Old 02-13-2017, 11:54 PM   #3
ss22
LQ Newbie
 
Registered: Jan 2017
Posts: 2

Original Poster
Blog Entries: 1

Rep: Reputation: Disabled
ZRP patch for ns2.33 for ubuntu 14.04

Quote:
Originally Posted by TB0ne View Post
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
 
  


Reply

Tags
ns2, zrp


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Need a patch ZRP in ns2 2.35 and ubuntu 12.04 hitchi Ubuntu 4 10-02-2013 03:01 PM
[SOLVED] ZRP patch farfattou Linux - Software 2 02-27-2013 05:43 AM
ZRP protocol patch for NS 2.34 rasha7442 Linux - Newbie 1 01-17-2013 05:36 AM
Help me NS2 ZRP patch helok Programming 0 10-18-2012 01:12 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:18 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