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

joe gio (spam-protected)
Wed Feb 25 01:20:13 CET 2015


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.olsr.org/pipermail/olsr-users/attachments/20150224/86b0e923/attachment.html>


More information about the Olsr-users mailing list