From patchwork Wed Mar 30 12:19:32 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sven Eckelmann X-Patchwork-Id: 15946 Return-Path: X-Original-To: patchwork@open-mesh.org Delivered-To: patchwork@open-mesh.org Received: from open-mesh.org (localhost [127.0.0.1]) by open-mesh.org (Postfix) with ESMTP id 0E571824C3; Wed, 30 Mar 2016 14:19:41 +0200 (CEST) Authentication-Results: open-mesh.org; dkim=fail reason="verification failed; unprotected key" header.d=narfation.org header.i=@narfation.org header.b=gTEuTFbb; dkim-adsp=fail (unprotected policy); dkim-atps=neutral Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=79.140.41.39; helo=v3-1039.vlinux.de; envelope-from=sven@narfation.org; receiver=b.a.t.m.a.n@lists.open-mesh.org Authentication-Results: open-mesh.org; dmarc=pass header.from=narfation.org Received: from v3-1039.vlinux.de (narfation.org [79.140.41.39]) by open-mesh.org (Postfix) with ESMTPS id E1855824BE for ; Wed, 30 Mar 2016 14:19:38 +0200 (CEST) Received: from sven-desktop.home.narfation.org (x5d84b5d1.dyn.telefonica.de [93.132.181.209]) by v3-1039.vlinux.de (Postfix) with ESMTPSA id 4ED051C8001; Wed, 30 Mar 2016 14:19:38 +0200 (CEST) Authentication-Results: v3-1039.vlinux.de; dmarc=none header.from=narfation.org DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=narfation.org; s=20121; t=1459340378; bh=OH66n+wKRIYfZ7jU9U2Yx8WVW7j2nno+ANF/ql0HQFk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=gTEuTFbbw8ZH9B1wlxUDCDI+KvNbBVIox4ONjFbEXUkJgYbZeWsNV6cF6rybj7jBl PSKM3fmeQgJ3YvCMXD98ky3ALRdBE0LDMKBzAPKFn6Lt+HPy6lQFTOewtNp5GiPl12 QudW5YqPFDya01gXkcBRDOU6E3UX4wcoUdFtuVWg= From: Sven Eckelmann To: b.a.t.m.a.n@lists.open-mesh.org Date: Wed, 30 Mar 2016 14:19:32 +0200 Message-Id: <1459340372-6971-2-git-send-email-sven@narfation.org> X-Mailer: git-send-email 2.8.0.rc3 In-Reply-To: <1459340372-6971-1-git-send-email-sven@narfation.org> References: <1459340372-6971-1-git-send-email-sven@narfation.org> Subject: [B.A.T.M.A.N.] [RFC 2/2] batman-adv: Don't re-broadcast packets on non-wifi devices X-BeenThere: b.a.t.m.a.n@lists.open-mesh.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: The list for a Better Approach To Mobile Ad-hoc Networking List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: The list for a Better Approach To Mobile Ad-hoc Networking Errors-To: b.a.t.m.a.n-bounces@lists.open-mesh.org Sender: "B.A.T.M.A.N" It is not necessary to re-broadcast a received broadcast packet on the rx-device when it is a standard ethernet device. The link medium already takes care of transporting it to all participants in the broadcast domain. The re-broadcast on other devices is still necessary to allow the broadcast packet to be received by devices which are using a different link medium. Signed-off-by: Sven Eckelmann --- net/batman-adv/main.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/batman-adv/main.h b/net/batman-adv/main.h index aad4a3a..ddad99d 100644 --- a/net/batman-adv/main.h +++ b/net/batman-adv/main.h @@ -96,7 +96,7 @@ #define BATADV_LOG_BUF_LEN 8192 /* has to be a power of 2 */ /* number of packets to send for broadcasts on different interface types */ -#define BATADV_NUM_BCASTS_SAMEIF 1 +#define BATADV_NUM_BCASTS_SAMEIF 0 #define BATADV_NUM_BCASTS_OTHERIF 1 #define BATADV_NUM_BCASTS_WIRELESS 3 #define BATADV_NUM_BCASTS_MAX 3