public inbox for b.a.t.m.a.n@lists.open-mesh.org
 help / color / mirror / Atom feed
* [B.A.T.M.A.N.] [PATCH] batman-adv: fix ROAM flag de-selection
@ 2012-11-05 15:34 Antonio Quartulli
  2012-11-05 16:05 ` Antonio Quartulli
  0 siblings, 1 reply; 3+ messages in thread
From: Antonio Quartulli @ 2012-11-05 15:34 UTC (permalink / raw)
  To: b.a.t.m.a.n

In tt_global_add() the ROAM flag is improperly unset. This makes the
next check fail and so preventing emptying the old originator_list for
the involved tt_global_entry

This was introduced by ("batman-adv: roaming handling mechanism redesign")

Signed-off-by: Antonio Quartulli <ordex@autistici.org>
---

This patch should go to next so that it can be squashed with the one introducing
the "broken" change.


 translation-table.c | 8 --------
 1 file changed, 8 deletions(-)

diff --git a/translation-table.c b/translation-table.c
index 6fecb94..f30360c 100644
--- a/translation-table.c
+++ b/translation-table.c
@@ -860,14 +860,6 @@ int batadv_tt_global_add(struct batadv_priv *bat_priv,
 		 */
 		common->flags &= ~BATADV_TT_CLIENT_TEMP;
 
-		/* if this is a normal add, possibly unset the ROAM flag. This
-		 * flag could have been set before because the client was
-		 * roaming, but now that the node got the ADD event, the flag
-		 * can be unset
-		 */
-		if (!(flags & BATADV_TT_CLIENT_ROAM))
-			common->flags &= ~BATADV_TT_CLIENT_ROAM;
-
 		/* If there is the BATADV_TT_CLIENT_ROAM flag set, there is only
 		 * one originator left in the list and we previously received a
 		 * delete + roaming change for this originator.
-- 
1.8.0


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-11-07 15:12 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-05 15:34 [B.A.T.M.A.N.] [PATCH] batman-adv: fix ROAM flag de-selection Antonio Quartulli
2012-11-05 16:05 ` Antonio Quartulli
2012-11-07 15:12   ` Marek Lindner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox