[Olsr-users] Plugins and the api
Sergio López
(spam-protected)
Tue Sep 21 11:36:15 CEST 2010
A message can only have one parser? Can I add more parsers, for
example, to hello message?
Actually, what I need is to add a parser to every single message. Is
this possible?
How is the parser order defined if more than one parser can be added?
On Mon, Sep 20, 2010 at 2:09 PM, Henning Rogge
<(spam-protected)> wrote:
> 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
>
More information about the Olsr-users
mailing list