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: Modifing hna_local_fill_buffer() return value
@ 2010-12-18 23:33 Antonio Quartulli
  2010-12-20  9:01 ` Sven Eckelmann
  0 siblings, 1 reply; 5+ messages in thread
From: Antonio Quartulli @ 2010-12-18 23:33 UTC (permalink / raw)
  To: b.a.t.m.a.n

After changeset 1888, the return value of hna_local_fill_buffer() has
not been changed to _count_. In this way an eroneous num_hna was
calculated before sending the new OGM packet.

Signed-off-by: Antonio Quartulli <ordex@ritirata.org>
---
 translation-table.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/translation-table.c b/translation-table.c
index a19e16c..a633b5a 100644
--- a/translation-table.c
+++ b/translation-table.c
@@ -162,7 +162,7 @@ int hna_local_fill_buffer(struct bat_priv *bat_priv,
                atomic_set(&bat_priv->hna_local_changed, 0);
 
        spin_unlock_bh(&bat_priv->hna_lhash_lock);
-       return i;
+       return count;
 }
 
 int hna_local_seq_print_text(struct seq_file *seq, void *offset)


-- 
Antonio Quartulli

..each of us alone is worth nothing..
Ernesto "Che" Guevara

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

* Re: [B.A.T.M.A.N.] [PATCH] batman-adv: Modifing hna_local_fill_buffer() return value
  2010-12-18 23:33 [B.A.T.M.A.N.] [PATCH] batman-adv: Modifing hna_local_fill_buffer() return value Antonio Quartulli
@ 2010-12-20  9:01 ` Sven Eckelmann
  0 siblings, 0 replies; 5+ messages in thread
From: Sven Eckelmann @ 2010-12-20  9:01 UTC (permalink / raw)
  To: b.a.t.m.a.n

[-- Attachment #1: Type: Text/Plain, Size: 1289 bytes --]

Antonio Quartulli wrote:
> After changeset 1888, the return value of hna_local_fill_buffer() has
> not been changed to _count_. In this way an eroneous num_hna was
> calculated before sending the new OGM packet.
> 
> Signed-off-by: Antonio Quartulli <ordex@ritirata.org>
> ---
>  translation-table.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/translation-table.c b/translation-table.c
> index a19e16c..a633b5a 100644
> --- a/translation-table.c
> +++ b/translation-table.c
> @@ -162,7 +162,7 @@ int hna_local_fill_buffer(struct bat_priv *bat_priv,
>                 atomic_set(&bat_priv->hna_local_changed, 0);
> 
>         spin_unlock_bh(&bat_priv->hna_lhash_lock);
> -       return i;
> +       return count;
>  }
> 
>  int hna_local_seq_print_text(struct seq_file *seq, void *offset)

Your mail program mangled the patch. Please use git-send-mail or check how to 
fix your mailing program (see for example Documentation/email-clients.txt 
inside the linux tree).

Also correct your DNS entries for DKIM (you seem to sign your mails with it) - 
they aren't available and every DKIM aware receiving server will not accept 
the mails without adsp._domainkey. and mail._domainkey. TXT DNS entries.

Best regards,
	Sven

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

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

* [B.A.T.M.A.N.] [PATCH] batman-adv: Modifing hna_local_fill_buffer() return value
@ 2010-12-21  1:50 Antonio Quartulli
  0 siblings, 0 replies; 5+ messages in thread
From: Antonio Quartulli @ 2010-12-21  1:50 UTC (permalink / raw)
  To: b.a.t.m.a.n


After changeset 1888, the return value of hna_local_fill_buffer() has
not been changed to _count_. In this way an eroneous num_hna was
calculated before sending the new OGM packet.

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

* [B.A.T.M.A.N.] [PATCH] batman-adv: Modifing hna_local_fill_buffer() return value
@ 2010-12-21  2:03 Antonio Quartulli
  2010-12-21  2:17 ` Marek Lindner
  0 siblings, 1 reply; 5+ messages in thread
From: Antonio Quartulli @ 2010-12-21  2:03 UTC (permalink / raw)
  To: b.a.t.m.a.n

 After changeset 1888, the return value of hna_local_fill_buffer() has
 not been changed to _count_. In this way an eroneous num_hna was
 calculated before sending the new OGM packet.

---
 translation-table.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/translation-table.c b/translation-table.c
index a19e16c..a633b5a 100644
--- a/translation-table.c
+++ b/translation-table.c
@@ -162,7 +162,7 @@ int hna_local_fill_buffer(struct bat_priv *bat_priv,
 		atomic_set(&bat_priv->hna_local_changed, 0);
 
 	spin_unlock_bh(&bat_priv->hna_lhash_lock);
-	return i;
+	return count;
 }
 
 int hna_local_seq_print_text(struct seq_file *seq, void *offset)
-- 
1.7.2.2


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

* Re: [B.A.T.M.A.N.] [PATCH] batman-adv: Modifing hna_local_fill_buffer() return value
  2010-12-21  2:03 Antonio Quartulli
@ 2010-12-21  2:17 ` Marek Lindner
  0 siblings, 0 replies; 5+ messages in thread
From: Marek Lindner @ 2010-12-21  2:17 UTC (permalink / raw)
  To: The list for a Better Approach To Mobile Ad-hoc Networking

On Tuesday 21 December 2010 03:03:09 Antonio Quartulli wrote:
>  After changeset 1888, the return value of hna_local_fill_buffer() has
>  not been changed to _count_. In this way an eroneous num_hna was
>  calculated before sending the new OGM packe

Thanks for resending the patch - applied in revision 1898.

Good catch,
Marek

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

end of thread, other threads:[~2010-12-21  2:17 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-18 23:33 [B.A.T.M.A.N.] [PATCH] batman-adv: Modifing hna_local_fill_buffer() return value Antonio Quartulli
2010-12-20  9:01 ` Sven Eckelmann
  -- strict thread matches above, loose matches on Subject: below --
2010-12-21  1:50 Antonio Quartulli
2010-12-21  2:03 Antonio Quartulli
2010-12-21  2:17 ` Marek Lindner

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