Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
How to bind agent attributes for GPSR.
Got to know the Agent/GPSR is not binded.
By debugging the gpsr.tcl file which is called by wireless-gpsr.tcl file.
In function
proc create-gpsr-routing-agent { node id }
...
...
set ragent_($id) [new Agent/GPSR] //it halts here.
1#
Anyway, it has been done before: gpsr-KeLiu-patched-ns234.tar.gz (14.4 MB)
Download link https://docs.google.com/file/d/0B7S2...it?usp=sharing
.. The patch origins from a huge "gpsr-KeLiu-ns234.tar.gz", 51.6 MB
-
How and at what sequence of execution to use the patch.
And if possible please provide the 'wireless-gpsr.tcl' file, that validates the patch with formation of a trace file.
Please help with these respects.
Awaiting for a mail-id.
With thanks
Last edited by Chakraborty; 03-10-2014 at 04:38 AM.
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
# 173 .
Quote:
How and at what sequence of execution to use the patch.
Read the answers to you, it's in post #148.
And it's not a patch. It's the most of ns-2.34 + the KeLiu files.
Post #148 has a link to #3 here .. http://www.linuxquestions.org/questi...-4175448663/#3
1) cd ns-allinone-2.34/ && tar xvf gpsr-KeLiu-patched-ns234.tar.gz
2) export CC=gcc41 CXX=g++41 && ./install
Distribution: Linux-(Ubuntu 12.04,14.04.02). 32-bit for Research
Posts: 84
Rep:
Quote:
# 173.
Read the answers to you, it's in post #148.
And it's not a patch. It's the most of ns-2.34 + the KeLiu files.
-
Quote:
# 173 .
Post #148 has a link to #3 here ..
-
i.e order of installation will be, as expected
Install :
1) cd ns-allinone-2.34/ && tar xvf gpsr-KeLiu-patched-ns234.tar.gz
2) export CC=gcc41 CXX=g++41 && ./install
3) sudo dpkg -i gpsr-keliu-ns-2.34-ubuntu10_i386.deb
4) sudo dpkg -i gpsr-hls-2.33-ubuntu10_i386.deb
----(Is it mandatory ? As I need only GPSR!)
Please just confirm.
Quote:
#81
The trick is to rename all 'ns' to e.g. ns234, ns-orig, ns-hls, ns-gpsr-KeLiu,
etc. etc., and then copy all ns** to /usr/local/bin/ : A system PATH.
Or use as ./ns*
-
please clarify the reasons and give the procedures.
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
# 175 .
Quote:
3) sudo dpkg -i gpsr-keliu-ns-2.34-ubuntu10_i386.deb
4) sudo dpkg -i gpsr-hls-2.33-ubuntu10_i386.deb
.
----(Is it mandatory ? As I need only GPSR!)
No. It's your own decision if you want to install the packages.
Both are GPRS. But different. Read the GPSR threads ! !
The packages can be installed if your own builds are failing.
Quote:
Please clarify the reasons and give the procedures.
When you have multiple files by name 'ns' it is convenient to use different names:
You can only have one file by name ns in /usr/local/bin/.
The 'ns' from a GPRS-hls patched ns2 can use a name example like ns-hls.
The 'ns' from a GPSR-KeLiu patched ns2 , example ns-keliu, or whatever you like.
Procedure to make a copy of a file : You will find out.
Distribution: Linux-(Ubuntu 12.04,14.04.02). 32-bit for Research
Posts: 84
Rep:
Quote:
Originally Posted by knudfl
# 175 .
No. It's your own decision if you want to install the packages.
Both are GPRS. But different. Read the GPSR threads ! !
The packages can be installed if your own builds are failing.
-
I have a already running 2.33 in 12.04. but it is failing with "core dumping".
After applying the hls-patch,will the patch replaces the compiled gpsr.cc, gpsr.h files, with working new ones.
The patch I uploaded and linked to you, contains gpsr.cc,gpsr.h,etc modified based on actors(Sinks).
If yes, what about the node id's referred by these newly modified files.
Then please provide a working wireless-gpsr.tcl, the test scenario, and connection patern script in accordance with hls-patch to run the above.
i.e in short the necessary changes with respect to patch, to get a working gpsr.
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
# 179 .
Don't know what you are doing, or why.
The "hls" and "KeLiu" are two different setups that can't be mixed.
( Not easily at least.)
The file wireless-gpsr.tcl will only work with "KeLiu", not "hls".
If you want both kinds of simulations, then build two different ns-2.xx :
Two times ns-allinone-2.33, or : one ns-allinone-2.33 and an ns-allinone-2.34.
*** You can have as many versions as you want, installed at the same time.
But do never add any *PATH text to .bashrc : Never required.
( Setting a path for ns2 in .bashrc is something that was used in the remote past,
when you used the University computer : No write permissions to /usr/local/ .)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.