]> git.karo-electronics.de Git - karo-tx-linux.git/commit - net/batman-adv/types.h
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)
commit3c4f7ab60cc21e8fc65b234f3a6174fc19a93fee
treec57433819c206083f626c4e7411b67e4898ff17e
parent0c69aecc5b1a57d62c39cf8c552a9e823409db60
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