[Olsr-users] running DLEP radio/router outside of OLSR

Henning Rogge (spam-protected)
Wed Feb 25 06:30:12 CET 2015


Hi,

you are missing lots of initialization for DLEP dependencies...

to get an independent dlep_radio (most times you don't need both
dlep_router and dlep_radio in the same executable), you can run "make
dlep_radio_static".

See src/dlep-radio/CMakeLists.txt for the list of OONF plugins that
are necessary to run the dlep_radio code.

If you want to add you own (application) code to the OONF codebase I
would suggest putting your application into an OONF plugin/subsystem
wrapper, similar to the NHDP/OLSRv2 application which became plugins a
few months ago.

This might also help you a bit:
http://www.olsr.org/mediawiki/index.php/OLSR.org_Network_Framework

Unfortunately while the "user" documentation of OONF is now in a
pretty good shape, the developer documentation is still mostly "in the
code". But it is on my TODO list.

Henning Rogge

On Wed, Feb 25, 2015 at 1:20 AM, joe gio <(spam-protected)> wrote:
> Hi
>
> Id like to experiment with the DLEP Radio and Router plugins outside of
> OLSR.
> Is this possible or am I on the wrong track ?
>
> Example below built against oonf_api but crashes on init see below.
>
> #include <stdio.h>
> #include <unistd.h>
>
> #include "dlep_radio.h"
> #include "dlep_router.h"
>
> int main(int argc, char * argv[])
> {
>   printf("begin %s, result %d\n", dlep_radio_subsystem.descr,
> (*dlep_radio_subsystem.init)());
>
>   printf("begin %s, result %d\n", dlep_router_subsystem.descr,
> (*dlep_router_subsystem.init)());
>
>   sleep(100);
>
>   printf("bye\n");
>
>   return 0;
> }
>
> static INLINE void
> __list_add(struct list_entity *prev, struct list_entity *next, struct
> list_entity *new) {
>   new->next = next;
>   new->prev = prev;
>   next->prev = new;          <------ line 96
>   prev->next = new;
> }
>
> #0  0xb778e726 in __list_add (new=0xb77b3ab4 <_interface_class+20>,
> next=0x0, prev=0xb776d888 <oonf_classes>) at
> /home/Devel/r2ri/oonf_api.git/oonf_api/src-api/common/list.h:96
> #1  list_add_head (new=0xb77b3ab4 <_interface_class+20>, head=0xb776d888
> <oonf_classes>) at
> /home/Devel/r2ri/oonf_api.git/oonf_api/src-api/common/list.h:107
> #2  avl_insert (tree=0xb776d888 <oonf_classes>, new=0xb77b3ab4
> <_interface_class+20>) at
> /home/Devel/r2ri/oonf_api.git/oonf_api/src-api/common/avl.c:208
> #3  0xb773b42b in oonf_class_add (ci=0xb77b3aa0 <_interface_class>) at
> /home//Devel/r2ri/oonf_api.git/oonf_api/src-api/subsystems/oonf_class.c:117
> #4  0xb77ad200 in dlep_radio_interface_init () at
> /home/Devel/r2ri/oonf_api.git/oonf_api/src-plugins/dlep/radio/dlep_radio_interface.c:84
> #5  0xb77ad019 in _init () at
> /home/Devel/r2ri/oonf_api.git/oonf_api/src-plugins/dlep/radio/dlep_radio.c:132
> #6  0x08048780 in main (argc=1, argv=0xbfbd7aa4) at main.c:17
>
>
> Regards
> Joe
>
> --
> Olsr-users mailing list
> (spam-protected)
> https://lists.olsr.org/mailman/listinfo/olsr-users




More information about the Olsr-users mailing list