<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Hi<br>
<br>
Id like to experiment with the DLEP Radio and Router plugins outside
of OLSR.<br>
Is this possible or am I on the wrong track ?<br>
<br>
Example below built against oonf_api but crashes on init see below.<br>
<br>
#include <stdio.h><br>
#include <unistd.h><br>
<br>
#include "dlep_radio.h"<br>
#include "dlep_router.h"<br>
<br>
int main(int argc, char * argv[])<br>
{<br>
printf("begin %s, result %d\n", dlep_radio_subsystem.descr,
(*dlep_radio_subsystem.init)());<br>
<br>
printf("begin %s, result %d\n", dlep_router_subsystem.descr,
(*dlep_router_subsystem.init)());<br>
<br>
sleep(100);<br>
<br>
printf("bye\n");<br>
<br>
return 0;<br>
}<br>
<br>
static INLINE void<br>
__list_add(struct list_entity *prev, struct list_entity *next,
struct list_entity *new) {<br>
new->next = next;<br>
new->prev = prev;<br>
<b> next->prev = new; <------ line 96</b><br>
prev->next = new;<br>
}<br>
<br>
#0 0xb778e726 in __list_add (new=0xb77b3ab4
<_interface_class+20>, <b>next=0x0</b>, prev=0xb776d888
<oonf_classes>) at
/home/Devel/r2ri/oonf_api.git/oonf_api/src-api/common/list.h:96<br>
#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<br>
#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<br>
#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<br>
#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<br>
#5 0xb77ad019 in _init () at
/home/Devel/r2ri/oonf_api.git/oonf_api/src-plugins/dlep/radio/dlep_radio.c:132<br>
#6 0x08048780 in main (argc=1, argv=0xbfbd7aa4) at main.c:17<br>
<br>
<br>
Regards<br>
Joe<br>
</body>
</html>