[Olsr-dev] OLSRv2 packetbb parser

Hannes Gredler (spam-protected)
Fri Sep 5 08:28:51 CEST 2008


On Thu, Sep 04, 2008 at 09:44:23PM +0200, Henning Rogge wrote:
| The new parser will work similar to a SAX xml parser, instead of
| writing the content of a packetbb message/packet into an intermediate
| format, it will use callbacks to allow the interpreter reading the
| data directly.
| 
| Functions in the parser for reading messages/packets:
| 1) register a callback for a packet TLV id
|   (callback should be allowed to modifiy the rest of the package
| binary to allow encryption of a packet)
| 
| 2) register a callback for a message id
| 
| 3) register a callback for a TLV id in a certain message
|   (callback should be allowed to modify the rest of a message binary
| to allow encryption of a message)
| 
| 4) register a callback for addresses in a message id
| 
| 5) register a callback for a TLV id used in an address of a certain message
| 
| Functions in the parser to write messages/packets:
| 6) register a callback for an outgoing package
|    (useful for adding TLVs to an outgoing message)
| 
| 7) register a callback for a packet postprocessor
|    (for encrypting packets ?)
| 
| 8) create a new message
| 
| 9) register a callback for an outgoing message id
|    (useful for adding TLVs to messages of other Olsrd parts)
| 
| 7) add a TLV to a message
| 
| 8) register a callback for a message postprocessor
|    (for message encryption ?)
| 
| 9) add an address to a message
| 
| 10) register a callback for an outgoing address in a message
|   (useful for adding TLVs to an address in a message of other Olsrd parts)
| 
| 11) add a TLV to an address

looks good to me - way to go ... - /hannes




More information about the Olsr-dev mailing list