From patchwork Sat Dec 18 23:33:42 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Antonio Quartulli X-Patchwork-Id: 697 Return-Path: Received: from confino.investici.org (investici.nine.ch [217.150.252.179]) by open-mesh.org (Postfix) with ESMTPS id DC281154593 for ; Sun, 19 Dec 2010 00:33:29 +0100 (CET) Received: from [217.150.252.179] (confino [217.150.252.179]) (Authenticated sender: ordex@autistici.org) by localhost (Postfix) with ESMTPSA id F3C98C8642 for ; Sat, 18 Dec 2010 23:33:28 +0000 (UTC) X-DKIM: Sendmail DKIM Filter v2.6.0 confino.investici.org F3C98C8642 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ritirata.org; s=stigmate; t=1292715209; bh=0GrET0wD1hSULmfvAEvTsrCXxU2PH8yw/tPrK1 pPE4c=; h=Date:From:To:Subject:Message-ID:MIME-Version:Content-Type; b=YpBLG0Y72yHXAMSPHGsauuOXa+kHZkvLW0jHdXQiaU3SIzAiq2HS4a1tZUaeBkE1R yh2eLzeLumngHOADcDfwwQKRHkmNRbStCIwLVAlIiUGWJ/bZU/3ZS3c8nfzIIYrabUJ 02veA+2giv4jxNZk2eMjb5n+42PqGRLd2FITXic= Date: Sun, 19 Dec 2010 00:33:42 +0100 From: Antonio Quartulli To: b.a.t.m.a.n@lists.open-mesh.org Message-ID: <20101218233342.GC30203@ritirata.org> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.20 (2009-06-14) Subject: [B.A.T.M.A.N.] [PATCH] batman-adv: Modifing hna_local_fill_buffer() return value X-BeenThere: b.a.t.m.a.n@lists.open-mesh.org X-Mailman-Version: 2.1.11 Precedence: list Reply-To: The list for a Better Approach To Mobile Ad-hoc Networking List-Id: The list for a Better Approach To Mobile Ad-hoc Networking List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 18 Dec 2010 23:33:30 -0000 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 --- 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)