[Olsr-users] Plugins and the api

Henning Rogge (spam-protected)
Mon Sep 20 14:09:03 CEST 2010


On Mon September 20 2010 13:37:02 Sergio López wrote:
> I am trying to create a olsrd plug-in and I have found the howto
> http://www.olsr.org/docs/olsrd-plugin-howto.html but it seems
> outdated.
> 
> Looking to plugging in olsrd src, I have taken a primary idea of how
> they work but I would need to know a list of "interfacing" function
> like add_ptf, olsr_preprocessor_add_function.
>  In doxygen documentation I can find the full list of functions but
> it’s a bit difficult to find which of these functions are related to
> plugging.
> 
> For example, I would like to have a add_ptf function but for single
> messages. Is it available?
Similar to the Hello/TC/... parser, you can register another message parser 
function.

Look at process_package.c line 402
>   olsr_parser_add_function(&olsr_input_hna, HNA_MESSAGE);
and hna_set.c, line 367
> bool olsr_input_hna(...

for an example.

Unfortunately in 0.6.0 you will only get access to the binary message, so you 
have to parse it yourself.

Henning Rogge

-- 
Diplom-Informatiker Henning Rogge , Fraunhofer-Institut für
Kommunikation, Informationsverarbeitung und Ergonomie FKIE
Kommunikationssysteme (KOM)
Neuenahrer Straße 20, 53343 Wachtberg, Germany
Telefon +49 228 9435-961,   Fax +49 228 9435 685
mailto:(spam-protected) http://www.fkie.fraunhofer.de
GPG: E1C6 0914 490B 3909 D944 F80D 4487 C67C 55EC CFE0
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.olsr.org/pipermail/olsr-users/attachments/20100920/7c629cbf/attachment.sig>


More information about the Olsr-users mailing list