From: Simon Wunderlich <sw@simonwunderlich.de>
To: Antonio Quartulli <antonio@meshcoding.com>
Cc: The list for a Better Approach To Mobile Ad-hoc Networking
<b.a.t.m.a.n@lists.open-mesh.org>,
alessandro@mediaspot.net
Subject: Re: [B.A.T.M.A.N.] [PATCH-maint 2/4] batman-adv: avoid keeping false temporary entry
Date: Tue, 25 Aug 2015 17:27:23 +0200 [thread overview]
Message-ID: <7584192.JLJF9DuEHW@prime> (raw)
In-Reply-To: <55DC3A1D.1060800@meshcoding.com>
[-- Attachment #1: Type: text/plain, Size: 1728 bytes --]
Hi Antonio,
On Tuesday 25 August 2015 11:49:17 Antonio Quartulli wrote:
> On 21/08/15 17:15, Simon Wunderlich wrote:
> > In the case when a temporary entry is added first and a proper tt entry
> > is added after that, the temporary tt entry is kept in the orig list.
> > However the temporary flag is removed at this point, and therefore the
> > purge function can not find this temporary entry anymore.
> >
> > Therefore, remove the previous temp entry before adding the new proper
> > one.
>
> [..]
>
> > /* if the client was temporary added before receiving the first
> >
> > - * OGM announcing it, we have to clear the TEMP flag
> > + * OGM announcing it, we have to clear the TEMP flag. Also,
> > + * remove the previous temporary orig node and re-add it
> > + * if required. If the orig entry changed, the new one which
> > + * is a non-temporary entry is preferred.
> >
> > */
> >
> > - common->flags &= ~BATADV_TT_CLIENT_TEMP;
> > + if (common->flags & BATADV_TT_CLIENT_TEMP) {
> > + batadv_tt_global_del_orig_list(tt_global_entry);
> > + common->flags &= ~BATADV_TT_CLIENT_TEMP;
> > + }
>
> mh...interesting..and nice catch. Have you tested this with a client
> roaming from A to B during the "speedy join" period?
No I didn't. I've just seen bad entries dangling and never getting cleaned up,
and suspected that "speedy join" added TT the entry falsely. However, in that
case it should only have been temporarily and getting removed later, which
wasn't the case. Therefore this patch ...
I haven't tested this patch on the production network because its very hard to
reproduce there, and the bug is probably squashed already with the first
patch.
Thanks for reviewing!
Simon
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 181 bytes --]
next prev parent reply other threads:[~2015-08-25 15:27 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-21 15:15 [B.A.T.M.A.N.] [PATCH-maint 0/4] Some fixes for DAT/TT/Speedy join corner cases Simon Wunderlich
2015-08-21 15:15 ` [B.A.T.M.A.N.] [PATCH-maint 1/4] batman-adv: fix speedy join for DAT cache replies Simon Wunderlich
2015-08-25 9:42 ` Antonio Quartulli
2015-08-25 15:24 ` Simon Wunderlich
2015-08-21 15:15 ` [B.A.T.M.A.N.] [PATCH-maint 2/4] batman-adv: avoid keeping false temporary entry Simon Wunderlich
2015-08-25 9:49 ` Antonio Quartulli
2015-08-25 15:27 ` Simon Wunderlich [this message]
2015-08-21 15:15 ` [B.A.T.M.A.N.] [PATCH-maint 3/4] batman-adv: unify flags access style in tt global add Simon Wunderlich
2015-08-25 9:51 ` Antonio Quartulli
2015-08-25 15:28 ` Simon Wunderlich
2015-08-25 16:14 ` Antonio Quartulli
2015-08-21 15:15 ` [B.A.T.M.A.N.] [PATCH-maint 4/4] batman-adv: detect local excess vlans in TT request Simon Wunderlich
2015-08-25 9:59 ` Antonio Quartulli
2015-08-25 15:31 ` Simon Wunderlich
2015-08-25 18:28 ` Antonio Quartulli
2015-08-25 21:12 ` Simon Wunderlich
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=7584192.JLJF9DuEHW@prime \
--to=sw@simonwunderlich.de \
--cc=alessandro@mediaspot.net \
--cc=antonio@meshcoding.com \
--cc=b.a.t.m.a.n@lists.open-mesh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox