]> Pileus Git - ~andy/linux/commit
batman-adv: substitute tt_poss_change with a per-tt_entry flag
authorAntonio Quartulli <ordex@autistici.org>
Sun, 23 Sep 2012 20:38:34 +0000 (22:38 +0200)
committerAntonio Quartulli <ordex@autistici.org>
Wed, 14 Nov 2012 20:00:35 +0000 (21:00 +0100)
commit7c1fd91da5a5eecc91674991199940c05f87cb3a
tree9195dbbe9ea99a09540166dd571779d9b7fde478
parent28709878b6a7d15362ba63bde01d42c38f88be9d
batman-adv: substitute tt_poss_change with a per-tt_entry flag

tt_poss_change is a node-wide flag which tells whether the node is in a roaming
state (a client recently moved to/away from it) in order to let it apply special
re-routing rules. However this flag does not give a clear idea of the current
state because it is not possible to understand *which client* is actually
involved in the roaming. For this reason a better approach has been chosen:
instead of using a node-wide variable, the roaming state is now given by a
per-tt_entry ROAM flag which, in case of packet coming through the node, tells
the node whether the real destination is in roaming state or not.

With this flag change, batadv_check_unicast_ttvn() has also been rearranged in
order to better fit the new re-routing logic and to be much more readable.

Signed-off-by: Antonio Quartulli <ordex@autistici.org>
net/batman-adv/originator.c
net/batman-adv/routing.c
net/batman-adv/soft-interface.c
net/batman-adv/translation-table.c
net/batman-adv/translation-table.h
net/batman-adv/types.h