]> 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)
commit67297f0560ea50f14647a3238423516c0d92045e
treec57433819c206083f626c4e7411b67e4898ff17e
parent40e60aa1f8221dbcab63f5a4005878e1f9908d45
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