From patchwork Tue Jan 31 21:35:10 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Antonio Quartulli X-Patchwork-Id: 1462 Return-Path: Received: from latitanza.investici.org (latitanza.investici.org [82.94.249.234]) by open-mesh.org (Postfix) with ESMTPS id 4045160076C for ; Tue, 31 Jan 2012 22:36:05 +0100 (CET) Authentication-Results: open-mesh.org; dkim=pass (1024-bit key) header.i=@autistici.org; dkim-adsp=pass Received: from [82.94.249.234] (latitanza [82.94.249.234]) (Authenticated sender: ordex@autistici.org) by localhost (Postfix) with ESMTPSA id 896BF9839A; Tue, 31 Jan 2012 21:36:04 +0000 (UTC) X-DKIM: Sendmail DKIM Filter v2.8.2 latitanza.investici.org 896BF9839A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=autistici.org; s=stigmate; t=1328045764; bh=OGFlOOjwYcYF7Kp7aQSEAfIPRU+Bqr1NZwENiF3qSrs=; h=From:To:Cc:Subject:Date:Message-Id; b=ZgMEBWnT65Lkd/RzPPt6rkwivqJw/pjNckjkkqHxfNmF0mGt6JtZREu+9EtqaMiP1 lB6fZDXNUiimQTEp73Isw4scuJmTlvJ4eynxT0rAokohGHoB0LWkNce6zgr8mIxc6F huWBr/3QAgZGwGYU8AVTx1OsTYTDgjfEB8INOTP0= From: Antonio Quartulli To: b.a.t.m.a.n@lists.open-mesh.org Date: Tue, 31 Jan 2012 22:35:10 +0100 Message-Id: <1328045710-32600-1-git-send-email-ordex@autistici.org> X-Mailer: git-send-email 1.7.3.4 Subject: [B.A.T.M.A.N.] [PATCH] batman-adv: pass the correct header size to interface_rx X-BeenThere: b.a.t.m.a.n@lists.open-mesh.org X-Mailman-Version: 2.1.13 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, 31 Jan 2012 21:36:05 -0000 in recv_unicast_frag(), the third parameter of the interface_rx() invocation, which is the size of the current header, is wrongly computed. Signed-off-by: Antonio Quartulli --- routing.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/routing.c b/routing.c index f961cc5..cf8fe0a 100644 --- a/routing.c +++ b/routing.c @@ -990,7 +990,7 @@ int recv_ucast_frag_packet(struct sk_buff *skb, struct hard_iface *recv_if) return NET_RX_SUCCESS; interface_rx(recv_if->soft_iface, new_skb, recv_if, - sizeof(struct unicast_packet)); + sizeof(*unicast_packet)); return NET_RX_SUCCESS; }