]> git.baikalelectronics.ru Git - kernel.git/commit
batman-adv: improve the TT component to support runtime flag changes
authorAntonio Quartulli <antonio@open-mesh.com>
Sun, 13 Oct 2013 00:50:19 +0000 (02:50 +0200)
committerAntonio Quartulli <antonio@meshcoding.com>
Wed, 23 Oct 2013 15:03:45 +0000 (17:03 +0200)
commitd45711e4a9466b6a3729b72cb2da0baf40fa223e
treec57433819c206083f626c4e7411b67e4898ff17e
parentae7a1db5e2379c089518000777a47f1fe6a26dd4
batman-adv: improve the TT component to support runtime flag changes

Some flags (i.e. the WIFI flag) may change after that the
related client has already been announced. However it is
useful to informa the rest of the network about this change.

Add a runtime-flag-switch detection mechanism and
re-announce the related TT entry to advertise the new flag
value.

This mechanism can be easily exploited by future flags that
may need the same treatment.

Signed-off-by: Antonio Quartulli <antonio@open-mesh.com>
Signed-off-by: Marek Lindner <mareklindner@neomailbox.ch>
net/batman-adv/translation-table.c
net/batman-adv/types.h