Linux - Wireless NetworkingThis forum is for the discussion of wireless networking in Linux.
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.
but this returns to following error during ./install
Code:
aodv/aodv.cc:80: error: ‘OLSR’ has not been declared
aodv/aodv.cc:80: error: a function-definition is not allowed here before ‘{’ token
aodv/aodv.cc:1409: error: expected ‘}’ at end of input
aodv/aodv.cc:1409: warning: no return statement in function returning non-void
make: *** [aodv/aodv.o] Error 1
Ns make failed!
so please help me out with this.
thanks in advance
Cross-layering : If you want to use the protocol layer / the mac layer,
i.e. OLSR / the mac layer, make sure you have a functional OLSR.
I.e., i.e. the command 'ns-olsr ddebbie90-scenario.tcl' must function OK.
And the changes in the protocol layer : Not AODV, then not aodv.cc .
But probably OLSR.cc .
Cross-layering : If you want to use the protocol layer / the mac layer,
i.e. OLSR / the mac layer, make sure you have a functional OLSR.
I.e., i.e. the command 'ns-olsr ddebbie90-scenario.tcl' must function OK.
well i am sure i built the OLSR correctly using the following code.
Code:
$ cd ns-allinone-2.34/ns-2.34/
$ tar xvf um-olsr-1.0.tgz
$ ln -s um-olsr olsr
$ patch -p1 < olsr/um-olsr_ns-2.34_v1.0.patch
$ cd ../
$ ./install
but the command 'ns-olsr ddebbie90-scenario.tcl' returns me following error:
Code:
[root@localhost ns-2.34]# ns-olsr ddebbie90-scenario.tcl
bash: ns-olsr: command not found
i am pretty sure i did the part a) (as mentioned in the blog) correctly, the part b) portion,when followed got me following error:
Code:
aodv/aodv.cc: In member function ‘virtual int AODV::command(int, const char* const*)’:
aodv/aodv.cc:80: error: ‘OLSR’ has not been declared
aodv/aodv.cc:80: error: a function-definition is not allowed here before ‘{’ token
aodv/aodv.cc:1409: error: expected ‘}’ at end of input
aodv/aodv.cc:1409: warning: no return statement in function returning non-void
make: *** [aodv/aodv.o] Error 1
Ns make failed!
still is says OLSR has not been declared.i dont get why!!
please help.
And the changes in the protocol layer : Not AODV, then not aodv.cc .
But probably OLSR.cc .
well i am trying to access physical layer(OLSR) from network layer(AODV).thus changing OLSR.cc will not get me results because i am runnig tcl scripts of aodv.so, i think change should be in the aodv.cc itself.
ref.post #7
sir,i am not entirely sure if i understood you. but i want my example to be aodv itself and not olsr.even the blog says olsr is used as an example(line 3).
because, after i get this right,i will run a tcl scripts for aodv and compare the energy throughput of this cross-layer AODV with original AODV.
so, please suggest me likewise.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.