From patchwork Thu Mar 15 16:48:35 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Antonio Quartulli X-Patchwork-Id: 1633 Return-Path: Received: from confino.investici.org (investici.nine.ch [217.150.252.179]) by open-mesh.org (Postfix) with ESMTPS id 6ABF460079D for ; Thu, 15 Mar 2012 17:48:43 +0100 (CET) Authentication-Results: open-mesh.org; dkim=pass (1024-bit key) header.i=@autistici.org; dkim-adsp=pass Received: from [217.150.252.179] (confino [217.150.252.179]) (Authenticated sender: ordex@autistici.org) by localhost (Postfix) with ESMTPSA id F038AC8647; Thu, 15 Mar 2012 16:48:41 +0000 (UTC) X-DKIM: Sendmail DKIM Filter v2.8.2 confino.investici.org F038AC8647 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=autistici.org; s=stigmate; t=1331830122; bh=fYAQ5vqx7pV+CYpZTsv/Y50Vvm5Qeh2z6IITKvawfk8=; h=From:To:Cc:Subject:Date:Message-Id; b=p+3S4VU26/I60xe9J7ZAMf8oia87nNrP1MgM9gwHN9sq6h0+IrMOSDSYQioGWt0kn z3dkO9anY6iT+rzK6rZJFs/ebRaO4HOQ5KpZZRz64h679fwe9XoYw4FUBOYl/jg+Ky qFtuDpRly3a3a3zhXqx8JjTg+weibckI+yiRbMKQ= From: Antonio Quartulli To: b.a.t.m.a.n@lists.open-mesh.org Date: Thu, 15 Mar 2012 17:48:35 +0100 Message-Id: <1331830115-16407-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: add BAT_UNICAST_4ADDR handler in the packet-handlers array 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: Thu, 15 Mar 2012 16:48:43 -0000 Commit 1887248c268928ebb434edab611978f51e2a4b8f introduced the packet-handlers array but it forgot to set a proper handler for the BAT_UNICAST_4ADDR packet type. This patch fixes it. Signed-off-by: Antonio Quartulli Reported-By: Martin Hundebøll --- main.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/main.c b/main.c index 75938fb..0757c2d 100644 --- a/main.c +++ b/main.c @@ -265,6 +265,8 @@ static void recv_handler_init(void) /* batman icmp packet */ recv_packet_handler[BAT_ICMP] = recv_icmp_packet; + /* unicast with 4 addresses packet */ + recv_packet_handler[BAT_UNICAST_4ADDR] = recv_unicast_packet; /* unicast packet */ recv_packet_handler[BAT_UNICAST] = recv_unicast_packet; /* fragmented unicast packet */