[Olsr-dev] olsrd dynamic hna

Jonathan P. Chapman (spam-protected)
Sun Jun 27 00:55:43 CEST 2010


 Hi!

Am 26.06.2010 23:03, schrieb Gioacchino Mazzurco:
> In  our network in Pisa we need an olsrd plugin that permit
> adding/removing hna at runtime without restart olsrd nor writing on
> olsrd.conf, at moment we thinked a very basic way, write
I am currently working on a plugin and had a roughly similar problem
(wanting to turn something on/off at runtime). The solution I chose only
makes sense under some very specific circumstances, so it is very likely
that it is not feasible in your environment.

I registered a parser for a new message type and wrote a very simple
parser and a client application. The client sends sends a static OLSRd
packet with such a message to a given broadcast address. You should not
forward the message (parser returns false) and set the TTL to 1, so the
setting does not propagate throughout your network (unless you want that
;-). Also,  the message must be multiples of 32 bits and the sender's IP
address must be different from any olsrd interface's, otherwise olsrd
will just drop it (guess how long it took to find out about these things
;-), so you will also need to spoof the sender's address, for this to work.

Well, pretty obviously, anybody who can send a packet to your node will
be able to toggle the feature which might not be a good idea. I used to
above only for testing in a well controlled environment and would not
recommend for anything other than that. If you like the idea but don't
have such an environment, you could maybe add a shared secret +
challenge/response mechanism or so, but obviously the whole matter
becomes much more complex in that case.

Best regards!

Jonathan

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 262 bytes
Desc: OpenPGP digital signature
URL: <http://lists.olsr.org/pipermail/olsr-dev/attachments/20100627/0cb80c8d/attachment.sig>


More information about the Olsr-dev mailing list