From patchwork Wed Oct 17 13:07:35 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Linus_L=C3=BCssing?= X-Patchwork-Id: 2358 Return-Path: Received: from mout.web.de (mout.web.de [212.227.17.12]) by open-mesh.org (Postfix) with ESMTP id F287960147E for ; Wed, 17 Oct 2012 15:06:18 +0200 (CEST) Received: from localhost ([93.182.169.51]) by smtp.web.de (mrweb002) with ESMTPSA (Nemesis) id 0MPGym-1TK5c1498S-00551g; Wed, 17 Oct 2012 15:06:18 +0200 From: =?UTF-8?q?Linus=20L=C3=BCssing?= To: b.a.t.m.a.n@lists.open-mesh.org Date: Wed, 17 Oct 2012 15:07:35 +0200 Message-Id: <1350479255-904-1-git-send-email-linus.luessing@web.de> X-Mailer: git-send-email 1.7.10.4 MIME-Version: 1.0 X-Provags-ID: V02:K0:lzzGbOOqDB/Coc8R0FqitYuZdUf61fdgVJ8DZ7uIeER e8Q+jpq6Gph2mduJOqi8WJDdHiUtXFs/XpETwS/Cu4jPuxnagD CMbySSXvz8K59mArZYet7yuU3SLF4uVlHDEX57hFQv3bQAWh+6 AhcE4yEjbs9f2/sS78F8gzyarxo3Xl89rTLBaAVysA510mtzOs N/pfWQbKcoIQ0U826bgqw== Subject: [B.A.T.M.A.N.] [PATCH] batman-adv: Do not add multicast MAC addresses to translation table X-BeenThere: b.a.t.m.a.n@lists.open-mesh.org X-Mailman-Version: 2.1.15 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: Wed, 17 Oct 2012 13:06:19 -0000 The current translation table mechanism is not suitable for multicast addresses and we are currently flooding such frames anyway. Therefore this patch prevents multicast MAC addresses being added to the translation table. Signed-off-by: Linus Lüssing Acked-by: Antonio Quartulli --- soft-interface.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/soft-interface.c b/soft-interface.c index 2d1f895..9955319 100644 --- a/soft-interface.c +++ b/soft-interface.c @@ -180,7 +180,8 @@ static int batadv_interface_tx(struct sk_buff *skb, goto dropped; /* Register the client MAC in the transtable */ - batadv_tt_local_add(soft_iface, ethhdr->h_source, skb->skb_iif); + if (!is_multicast_ether_addr(ethhdr->h_source)) + batadv_tt_local_add(soft_iface, ethhdr->h_source, skb->skb_iif); /* don't accept stp packets. STP does not help in meshes. * better use the bridge loop avoidance ...