LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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 06-02-2014, 07:20 AM   #1
kostaskar
LQ Newbie
 
Registered: Jun 2014
Posts: 4

Rep: Reputation: Disabled
OLSR patch in ns-2.34


Hi

I want to install olsr patch in ns-2.34. in ubuntu 12.10
I went through all steps: $ cd ns-allinone-2.34/ns-2.34/
$ tar zxvf um-olsr-1.0.tgz
$ ln -s ./um-olsr ./olsr
$ patch -p1 < olsr/um-olsr_ns-2.34_v1.0.patch
$ cd ..
$ ./install

But i can't find the olsr_example.tcl file. Do i need this file in order to run the olsr?

Can anyone help me?

Thanks

Last edited by kostaskar; 06-02-2014 at 07:55 AM. Reason: forgot to write something
 
Old 06-02-2014, 10:37 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154
Welcome to LQ.

No examples are included in {um-olsr-1.0.tgz, um-olsr_ns-2.34_v1.0.patch},
I think.

Please use the examples in "umolsr-examples-04.2014.tar.gz"
https://drive.google.com/file/d/0B7S...it?usp=sharing

OLSR info http://www.linuxquestions.org/questions/tags/olsr/

-
 
1 members found this post helpful.
Old 06-03-2014, 09:06 AM   #3
kostaskar
LQ Newbie
 
Registered: Jun 2014
Posts: 4

Original Poster
Rep: Reputation: Disabled
Thanks a lot for your quick reply. it was really helpful.
 
Old 08-28-2014, 04:42 AM   #4
pon
Member
 
Registered: Aug 2014
Posts: 77

Rep: Reputation: Disabled
Hi Kostakar and knudfl ,

i am using ns2.35 in ubuntu 12.04 , i patched um-olsr_ns-2.35_v1.0 in ns-2.35

it is patching files correctly,

patching file Makefile.in
patching file common/packet.h
patching file queue/priqueue.cc
patching file tcl/lib/ns-agent.tcl
patching file tcl/lib/ns-default.tcl
patching file tcl/lib/ns-lib.tcl
patching file tcl/lib/ns-packet.tcl
patching file trace/cmu-trace.cc
patching file trace/cmu-trace.h

now , when i try to run olsr_example.tcl it is showing error as like below:


Quote:
hase@chase-desktop:~/ns235/ns-allinone-2.35/ns-2.35/umolsrexamples$ ns olsr_example.tcl
invalid command name "Agent/OLSR"
while executing
"Agent/OLSR set use_mac_ true"
(file "olsr_example.tcl" line 44)
for all my example programs it is showing error in executing line where syntax is "Agent/OLSR set use_mac_ true"

is there any changes to be made in ns-default.tcl??

Pls help me Friends!!!

Thanks

Pon
 
Old 08-28-2014, 06:13 AM   #5
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154
# 4 .
Quote:
invalid command name "Agent/OLSR"
You are using a wrong executable by name 'ns'.
( Or you have a failed build.)

How to handle OLSR :
$ cd ns-allinone-2.35/ns-2.35/
$ cp ns ns-olsr
$ sudo cp ns-olsr /usr/local/bin/

.. Then please use the 'ns-olsr' command for all the OLSR simulations :
$ ns-olsr ddebbie90-scenario.tcl

OLSR examples, umolsr-examples-04.2014.tar.gz
https://drive.google.com/file/d/0B7S...it?usp=sharing
Please read http://www.linuxquestions.org/questions/tags/olsr/

-
 
1 members found this post helpful.
Old 08-28-2014, 06:40 AM   #6
pon
Member
 
Registered: Aug 2014
Posts: 77

Rep: Reputation: Disabled
Hi knudfl,

Thank you, now it is working,............

-pon.
 
Old 08-30-2014, 03:07 AM   #7
pon
Member
 
Registered: Aug 2014
Posts: 77

Rep: Reputation: Disabled
Hi knudfl,

i have doubt, it may not be correct.

Is the similar syntax should be used to run leach, like post #4

$ns-leach leach_exaple.tcl

Thanks.
Pon

Last edited by pon; 08-30-2014 at 10:02 AM.
 
  


Reply

Tags
ns2, olsr


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
OLSR patch sukrutha Linux - Newbie 24 05-03-2016 06:51 AM
Combine um-olsr patch and Directional antenna patch ws19561986 Linux - Newbie 1 04-17-2014 01:18 PM
[SOLVED] Cannot patch UM-OLSR in NS2.35 sudee1990 Linux - Newbie 2 04-01-2014 01:27 PM
How to install OLSR patch in ns-2.34 phungtayhd Linux - Newbie 1 03-03-2013 05:51 AM
OLSR patch sukrutha Linux - Newbie 2 08-21-2011 08:51 AM


All times are GMT -5. The time now is 04:31 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration