From patchwork Sat Nov 5 17:24:21 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Wunderlich X-Patchwork-Id: 1361 Return-Path: Received: from nick.hrz.tu-chemnitz.de (nick.hrz.tu-chemnitz.de [134.109.228.11]) by open-mesh.org (Postfix) with ESMTPS id 56B5060084A for ; Sat, 5 Nov 2011 18:24:56 +0100 (CET) Authentication-Results: open-mesh.org; dkim=pass (1024-bit key) header.i=@tu-chemnitz.de; dkim-adsp=none DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tu-chemnitz.de; s=dkim2010; h=References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From; bh=ZI/hwUmnforjay4hFI8WDUeFM7pXHO8tg61lKIkut7Y=; b=g1wQtWQZRPMxHw5hDYVCGsWKRiPBhTLmwSSVfuc33z34lZ5aJu86nz6hVfDAiFQNOYvNVXKDdk3fuhHLoJLWhpURK09CrHs66M5g6cnGGTeuPvLNMQVie585MHSZkpDxn9fIiX9mLWnPWhJyaKnoodT7PV7pOuMS6lQc4maj9Ls=; Received: from p57aa0226.dip0.t-ipconnect.de ([87.170.2.38] helo=pandem0nium) by nick.hrz.tu-chemnitz.de with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.76) (envelope-from ) id 1RMjzC-0002TR-TO; Sat, 05 Nov 2011 18:24:56 +0100 Received: from dotslash by pandem0nium with local (Exim 4.72) (envelope-from ) id 1RMjz1-0007Om-Td; Sat, 05 Nov 2011 18:24:43 +0100 From: Simon Wunderlich To: b.a.t.m.a.n@lists.open-mesh.org Date: Sat, 5 Nov 2011 18:24:21 +0100 Message-Id: <1320513862-28360-11-git-send-email-siwu@hrz.tu-chemnitz.de> X-Mailer: git-send-email 1.7.2.5 In-Reply-To: <1320513862-28360-1-git-send-email-siwu@hrz.tu-chemnitz.de> References: <1320513862-28360-1-git-send-email-siwu@hrz.tu-chemnitz.de> X-Spam-Score: -1.0 (-) X-Spam-Report: --- Textanalyse SpamAssassin 3.3.1 (-1.0 Punkte) Fragen an/questions to: Postmaster TU Chemnitz * -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP --- Ende Textanalyse X-Scan-Signature: b87095131af23dd7cc8c04746d52a551 Cc: Simon Wunderlich Subject: [B.A.T.M.A.N.] [PATCH 10/11] batman-adv: Update README and sysfs description 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: Sat, 05 Nov 2011 17:24:56 -0000 Signed-off-by: Simon Wunderlich --- README | 28 +++++++++++++++------------- sysfs-class-net-mesh | 9 +++++++++ 2 files changed, 24 insertions(+), 13 deletions(-) diff --git a/README b/README index 5ba56b5..44061af 100644 --- a/README +++ b/README @@ -1,4 +1,4 @@ -[state: 30-09-2011] +[state: 27-10-2011] BATMAN-ADV ---------- @@ -82,17 +82,17 @@ To deactivate an interface you have to write "none" into its All mesh wide settings can be found in batman's own interface folder: -# ls /sys/class/net/bat0/mesh/ -# aggregated_ogms fragmentation gw_sel_class vis_mode -# ap_isolation gw_bandwidth hop_penalty -# bonding gw_mode orig_interval +# ls /sys/class/net/bat0/mesh/ +# aggregated_ogms fragmentation hop_penalty +# ap_isolation gw_bandwidth log_level +# bonding gw_mode orig_interval +# bridge_loop_avoidance gw_sel_class vis_mode There is a special folder for debugging information: # ls /sys/kernel/debug/batman_adv/bat0/ -# gateways socket transtable_global vis_data -# originators softif_neigh transtable_local - +# bla_claim_table log socket transtable_local +# gateways originators transtable_global vis_data Some of the files contain all sort of status information regard- ing the mesh network. For example, you can view the table of @@ -216,15 +216,17 @@ file in debugfs The additional debug output is by default disabled. It can be en- abled during run time. Following log_levels are defined: -0 - All debug output disabled -1 - Enable messages related to routing / flooding / broadcasting -2 - Enable route or tt entry added / changed / deleted -3 - Enable all messages +0 - all debug output disabled +1 - messages related to routing / flooding / broadcasting +2 - messages related to route added / changed / deleted +4 - messages related to translation table operations +8 - messages related to bridge loop avoidance +15 - enable all messages The debug output can be changed at runtime using the file /sys/class/net/bat0/mesh/log_level. e.g. -# echo 2 > /sys/class/net/bat0/mesh/log_level +# echo 6 > /sys/class/net/bat0/mesh/log_level will enable debug messages for when routes or TTs change. diff --git a/sysfs-class-net-mesh b/sysfs-class-net-mesh index b020014..1d39bc7 100644 --- a/sysfs-class-net-mesh +++ b/sysfs-class-net-mesh @@ -14,6 +14,15 @@ Description: mesh will be sent using multiple interfaces at the same time (if available). +What: /sys/class/net//mesh/bridge_loop_avoidance +Date: November 2011 +Contact: Simon Wunderlich +Description: + Indicates whether the bridge loop avoidance feature + is enabled. This feature detects and avoids loops + between the mesh and devices bridged with the soft + interface . + What: /sys/class/net//mesh/fragmentation Date: October 2010 Contact: Andreas Langer