From patchwork Tue Dec 21 02:03:09 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Antonio Quartulli X-Patchwork-Id: 676 Return-Path: Received: from confino.investici.org (investici.nine.ch [217.150.252.179]) by open-mesh.org (Postfix) with ESMTPS id 41A8815420B for ; Tue, 21 Dec 2010 03:03:37 +0100 (CET) Received: from [217.150.252.179] (confino [217.150.252.179]) (Authenticated sender: ordex@autistici.org) by localhost (Postfix) with ESMTPSA id 9C7C3C866E; Tue, 21 Dec 2010 02:03:35 +0000 (UTC) X-DKIM: Sendmail DKIM Filter v2.6.0 confino.investici.org 9C7C3C866E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ritirata.org; s=stigmate; t=1292897015; bh=4ivRKqHy/9/ueEnLH8iqW6NNh8Fv/rJuURmQqw SNuS0=; h=From:To:Cc:Subject:Date:Message-Id; b=c+E8inu+uA/PohqoEmC yXnJPDP+IjMDwyh+ERRrm6oEn5DIDfPn84XAB3zKH4UvhuHRWLcTiIPj3+HyPwgsIhp sE3zxB36QTPyIiFo3+8CBIMsy/7yoqwzJScA/U2TaG6dtAVCTCXXwkoWk3urIOywqES v4SfOGwI0ogAuINjW0= From: Antonio Quartulli To: b.a.t.m.a.n@lists.open-mesh.org Date: Tue, 21 Dec 2010 03:03:09 +0100 Message-Id: <1292896989-23680-1-git-send-email-ordex@ritirata.org> X-Mailer: git-send-email 1.7.2.2 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: Tue, 21 Dec 2010 02:03:37 -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. --- 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)