[olsr-dev] outputsize ??

Andreas T√łnnesen (spam-protected)
Fri Dec 3 09:40:54 CET 2004


Hei Roar,

> Is there a way to instruct the buffer management to send a message
> straigh away and not delay the packet as usual?

Yes, that should only be a matter of calling net_output straight after
pushing the data on the buffer. If you don't do this, the data will be
buffered untill next scheduler poll, or for as long as the fwdtimer for
the interface is set to. This is to allow stacking of multiple messages in
the same packet.

> So to send a packet out on all interfaces a plugin now has to reserve
> buffer space on all interfaces, or is there a way to specify that this
> message should go out on all interfaces?

No - you don't have to reserve space. This is only needed if you have to
make sure there is always room for your message in the buffer(like the
signatures in the security plugin). This is a pretty special case and
should not be needed to be used by many.
No, there is no way to push data on all the buffers in a single call. If
you are to copy the data to all interface buffers you must loop trough the
interface list(like before).


- Andreas

---------
Andreas T√łnnesen
http://www.olsr.org



More information about the Olsr-dev mailing list