[Olsr-dev] invalidate node links
Fri Sep 30 12:14:53 CEST 2011
On Fri, Sep 30, 2011 at 11:01 AM, Henning Rogge <
> On Fri, 30 Sep 2011 10:49:53 Giovanni Di Stasi wrote:
> We have some "quick shotdown"
used currently only if olsrd gets an SIGTERM,..
feature for OLSR that uses something that might
> work for you. You can invalidate a link by sending a Hello with the
> corresponding connections marked as state "dropped".
true, it should be done like this,..
i.e. olsrd should inform its neighbours that it will go (as its channel is
about to change)
-> invalidate the links before switching actually happens,..
so in addition to something like olsr_reset_links_of_interface(if)
some method to trigger this from "outside" is needed.
so your actual channel switching script can inform olsrd in advance which
interface will be reconfigured -> olsrd tell its neighbours on this
interface -> they take down the link, the olsrd itself aswell,.., and
afterwards new neighbours are discovered
maybe code a olsrd plugin doing this, (and maybe even handling/coordinating
the complete channel switching too)
> Look into main.c, line 725 to 735.
> olsr_reset_all_links() sets ALL links to state dropped (you need a version
> that only does this for a single link).
> olsr_shutdown_messages() sends out a hello and TC for all links (again you
> need a limited one).
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Olsr-dev