Repository : ssh://git@open-mesh.org/batman-adv
On branch : next
commit 7cfe1356958b6e654b58ce52bfbbc0218cd25d86 Author: Antonio Quartulli ordex@autistici.org Date: Tue Nov 6 12:05:23 2012 +0100
batman-adv: fix local client recognition in is_my_client()
A tt_local_entry which ROAM flag is set cannot be considered a local client anymore. Having the ROAM flag set means that the client roamed away and that the nodes received a ROAMING_ADV for such event
This was introduced by ("batman-adv: roaming handling mechanism redesign")
Signed-off-by: Antonio Quartulli ordex@autistici.org Signed-off-by: Marek Lindner lindner_marek@yahoo.de
7cfe1356958b6e654b58ce52bfbbc0218cd25d86 translation-table.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/translation-table.c b/translation-table.c index 5ed7714..451a1a5 100644 --- a/translation-table.c +++ b/translation-table.c @@ -2036,7 +2036,8 @@ bool batadv_is_my_client(struct batadv_priv *bat_priv, const uint8_t *addr) /* Check if the client has been logically deleted (but is kept for * consistency purpose) */ - if (tt_local_entry->common.flags & BATADV_TT_CLIENT_PENDING) + if ((tt_local_entry->common.flags & BATADV_TT_CLIENT_PENDING) || + (tt_local_entry->common.flags & BATADV_TT_CLIENT_ROAM)) goto out; ret = true; out: