From patchwork Sat Jul 17 11:01:23 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sven Eckelmann X-Patchwork-Id: 18360 X-Patchwork-Delegate: sw@simonwunderlich.de Return-Path: X-Original-To: patchwork@open-mesh.org Delivered-To: patchwork@open-mesh.org Received: from diktynna.open-mesh.org (localhost [IPv6:::1]) by diktynna.open-mesh.org (Postfix) with ESMTP id 2978F823C1; Sat, 17 Jul 2021 13:11:25 +0200 (CEST) Received: from dvalin.narfation.org (dvalin.narfation.org [213.160.73.56]) by diktynna.open-mesh.org (Postfix) with ESMTPS id 69D988035A for ; Sat, 17 Jul 2021 13:11:14 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=narfation.org; s=20121; t=1626519693; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=P3lCCbH1E/eA39qdlKFi2ynszSIf5S/55sf7enfNhQ8=; b=QkFJKbUQ+RnmL51aJXTP3nt97NqioQi9WwWxuy3/Pn9UTPsCm/stSq9GMB02Yoviw56I4q rhn0p6Gp2CTIOnbRqO12rCiVzdPp1XWdcq6Ms0S4mySOzcdjsFyYPh99PrC4UFPxdPryWi 0vV4AjEt3Fuu8WAxiiDghQEdYS8csPQ= From: Sven Eckelmann To: b.a.t.m.a.n@lists.open-mesh.org Cc: Sven Eckelmann Subject: [PATCH 3/9] batctl: man: Convert lists to indented paragraph Date: Sat, 17 Jul 2021 13:01:23 +0200 Message-Id: <20210717110129.25539-4-sven@narfation.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210717110129.25539-1-sven@narfation.org> References: <20210717110129.25539-1-sven@narfation.org> MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=open-mesh.org; s=20121; t=1626520274; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=P3lCCbH1E/eA39qdlKFi2ynszSIf5S/55sf7enfNhQ8=; b=m6tVPxe7l85Szinxr/EgSJTG6GUcYwk92kM9Svcfm9LxrBcnS5O7bvrjOKIIkJieV8fQf2 mpY/fxybIXmaBN3e0HqJLcGJ4pPvvV5MDBpo+6cQSbBx/MHFjGLpn/CYZhH8vL0aCVBK9Z t1X8hVoFQ3oWe+mrHkqBUp11N+ara9g= ARC-Seal: i=1; s=20121; d=open-mesh.org; t=1626520274; a=rsa-sha256; cv=none; b=PilSoGWZqV5Vu4ptD578Up5y39h25ck3pCm6FB2F6okXWRuAY4cNMO7BAZ8D3lQ6bQIRLJ /ptygnLu4C7Qag2r8OnXA6nZUjGtFAITNH/QEKVVGHXpEb0POOlKo0XW1GolJbx01++OzU 6NXFkpqXsWkaG2qlF9zFwU0N9O07ClY= ARC-Authentication-Results: i=1; diktynna.open-mesh.org; dkim=pass header.d=narfation.org header.s=20121 header.b=QkFJKbUQ; spf=pass (diktynna.open-mesh.org: domain of sven@narfation.org designates 213.160.73.56 as permitted sender) smtp.mailfrom=sven@narfation.org Message-ID-Hash: TKIYD7C4B43IKESVFOIGJW5GMJFXCFLP X-Message-ID-Hash: TKIYD7C4B43IKESVFOIGJW5GMJFXCFLP X-MailFrom: sven@narfation.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-b.a.t.m.a.n.lists.open-mesh.org-0; header-match-b.a.t.m.a.n.lists.open-mesh.org-1; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; suspicious-header X-Mailman-Version: 3.2.1 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 Archived-At: List-Archive: List-Help: List-Post: List-Subscribe: List-Unsubscribe: The lists macro was misused to manually implement indented paragraphs with a label. But groff already provides the .TP macro to support this directly. Signed-off-by: Sven Eckelmann --- man/batctl.8 | 132 +++++++++++++++++++++++++-------------------------- 1 file changed, 66 insertions(+), 66 deletions(-) diff --git a/man/batctl.8 b/man/batctl.8 index 58656eb..39fac88 100644 --- a/man/batctl.8 +++ b/man/batctl.8 @@ -51,83 +51,86 @@ performances, is also included. .SH COMMANDS -.IP "[\fBmeshif \fP] \fBinterface\fP|\fBif\fP [\fB-M\fP] [\fBadd\fP|\fBdel iface(s)\fP]" +.TP +[\fBmeshif \fP] \fBinterface\fP|\fBif\fP [\fB-M\fP] [\fBadd\fP|\fBdel iface(s)\fP] If no parameter is given or the first parameter is neither "add" nor "del" the current interface settings are displayed. In order to add or delete interfaces specify "add" or "del" as first argument and append the interface names you wish to add or delete. Multiple interfaces can be specified. The "\-M" option tells batctl to not automatically create the batman-adv interface on "add". It can also be used to suppress the warning about the manual destruction when "del" removed all interfaces which belonged to it. -.IP "[\fBmeshif \fP] \fBinterface\fP|\fBif\fP \fBcreate\fP [\fBrouting_algo|ra RA_NAME\fP]" +.TP +[\fBmeshif \fP] \fBinterface\fP|\fBif\fP \fBcreate\fP [\fBrouting_algo|ra RA_NAME\fP] A batman-adv interface without attached interfaces can be created using "create". The parameter routing_algo can be used to overwrite the (default) routing algorithm. -.IP "[\fBmeshif \fP] \fBinterface\fP|\fBif\fP \fBdestroy\fP" +.TP +[\fBmeshif \fP] \fBinterface\fP|\fBif\fP \fBdestroy\fP Remove all attached interfaces and destroy the batman-adv interface. -.br -.IP "[\fBmeshif \fP] \fBorig_interval\fP|\fBit\fP [\fBinterval\fP]" +.TP +[\fBmeshif \fP] \fBorig_interval\fP|\fBit\fP [\fBinterval\fP] If no parameter is given the current originator interval setting is displayed otherwise the parameter is used to set the originator interval. The interval is in units of milliseconds. -.br -.IP "[\fBmeshif \fP] \fBap_isolation\fP|\fBap\fP [\fB0\fP|\fB1\fP]" +.TP +[\fBmeshif \fP] \fBap_isolation\fP|\fBap\fP [\fB0\fP|\fB1\fP] If no parameter is given the current ap isolation setting is displayed. Otherwise the parameter is used to enable or disable ap isolation. -.br -.IP "<\fBvlan \fP|[\fBmeshif \fP] \fBvid \fP> \fBap_isolation\fP|\fBap\fP [\fB0\fP|\fB1\fP]" +.TP +<\fBvlan \fP|[\fBmeshif \fP] \fBvid \fP> \fBap_isolation\fP|\fBap\fP [\fB0\fP|\fB1\fP] If no parameter is given the current ap isolation setting for the specified VLAN is displayed. Otherwise the parameter is used to enable or disable ap isolation for the specified VLAN. -.br -.IP "[\fBmeshif \fP] \fBbridge_loop_avoidance\fP|\fBbl\fP [\fB0\fP|\fB1\fP]" +.TP +[\fBmeshif \fP] \fBbridge_loop_avoidance\fP|\fBbl\fP [\fB0\fP|\fB1\fP] If no parameter is given the current bridge loop avoidance setting is displayed. Otherwise the parameter is used to enable or disable the bridge loop avoidance. Bridge loop avoidance support has to be enabled when compiling the module otherwise this option won't be available. -.br -.IP "[\fBmeshif \fP] \fBdistributed_arp_table\fP|\fBdat\fP [\fB0\fP|\fB1\fP]" +.TP +[\fBmeshif \fP] \fBdistributed_arp_table\fP|\fBdat\fP [\fB0\fP|\fB1\fP] If no parameter is given the current distributed arp table setting is displayed. Otherwise the parameter is used to enable or disable the distributed arp table. -.br -.IP "[\fBmeshif \fP] \fBaggregation\fP|\fBag\fP [\fB0\fP|\fB1\fP]" +.TP +[\fBmeshif \fP] \fBaggregation\fP|\fBag\fP [\fB0\fP|\fB1\fP] If no parameter is given the current aggregation setting is displayed. Otherwise the parameter is used to enable or disable OGM packet aggregation. -.br -.IP "[\fBmeshif \fP] \fBbonding\fP|\fBb\fP [\fB0\fP|\fB1\fP]" +.TP +[\fBmeshif \fP] \fBbonding\fP|\fBb\fP [\fB0\fP|\fB1\fP] If no parameter is given the current bonding mode setting is displayed. Otherwise the parameter is used to enable or disable the bonding mode. -.br -.IP "\fBevent\fP|\fBe\fP [\fB\-t\fP|\fB\-r\fP]" +.TP +\fBevent\fP|\fBe\fP [\fB\-t\fP|\fB\-r\fP] batctl will monitor for events from the netlink kernel interface of batman-adv. The local timestamp of the event will be printed when parameter \fB\-t\fP is specified. Parameter \fB\-r\fP will do the same but with relative timestamps. -.br -.IP "\fBhardif \fP \fBelp_interval\fP|\fBet\fP [\fBinterval\fP]" +.TP +\fBhardif \fP \fBelp_interval\fP|\fBet\fP [\fBinterval\fP] If no parameter is given the current ELP interval setting of the hard interface is displayed otherwise the parameter is used to set the ELP interval. The interval is in units of milliseconds. -.br -.IP "[\fBmeshif \fP] \fBfragmentation\fP|\fBf\fP [\fB0\fP|\fB1\fP]" +.TP +[\fBmeshif \fP] \fBfragmentation\fP|\fBf\fP [\fB0\fP|\fB1\fP] If no parameter is given the current fragmentation mode setting is displayed. Otherwise the parameter is used to enable or disable fragmentation. -.br -.IP "[\fBmeshif \fP] \fBhop_penalty\fP|\fBhp\fP [\fBpenalty\fP]" +.TP +[\fBmeshif \fP] \fBhop_penalty\fP|\fBhp\fP [\fBpenalty\fP] If no parameter is given the current hop penalty setting is displayed. Otherwise the parameter is used to set the hop penalty. The penalty is can be 0-255 (255 sets originator message's TQ to zero when forwarded by this hop). -.br -.IP "[\fBhardif \fP] \fBhop_penalty\fP|\fBhp\fP [\fBpenalty\fP]" +.TP +[\fBhardif \fP] \fBhop_penalty\fP|\fBhp\fP [\fBpenalty\fP] If no parameter is given the current hop penalty setting of the hard interface is displayed. Otherwise the parameter is used to set the hop penalty. The penalty can be 0-255 (255 sets originator message's TQ to zero when forwarded over this interface). -.br -.IP "[\fBmeshif \fP] \fBnetwork_coding\fP|\fBnc\fP [\fB0\fP|\fB1\fP]" +.TP +[\fBmeshif \fP] \fBnetwork_coding\fP|\fBnc\fP [\fB0\fP|\fB1\fP] If no parameter is given the current network coding mode setting is displayed. Otherwise the parameter is used to enable or disable network coding. -.br -.IP "[\fBmeshif \fP] \fBmulticast_forceflood\fP|\fBmff\fP [\fB0\fP|\fB1\fP]" +.TP +[\fBmeshif \fP] \fBmulticast_forceflood\fP|\fBmff\fP [\fB0\fP|\fB1\fP] If no parameter is given the current multicast forceflood setting is displayed. Otherwise the parameter is used to enable or disable multicast forceflood. This setting defines whether multicast optimizations should be replaced by simple broadcast-like flooding of multicast packets. If set to non-zero then all nodes in the mesh are going to use classic flooding for any multicast packet with no optimizations. -.br -.IP "[\fBmeshif \fP] \fBmulticast_fanout\fP|\fBmo\fP [\fBfanout\fP]" +.TP +[\fBmeshif \fP] \fBmulticast_fanout\fP|\fBmo\fP [\fBfanout\fP] If no parameter is given the current multicast fanout setting is displayed. Otherwise the parameter is used to set the multicast fanout. The multicast fanout defines the maximum number of packet copies that may be generated for a multicast-to-unicast conversion. Once this limit is exceeded distribution will fall back to broadcast. -.br -.IP "[\fBmeshif \fP] \fBloglevel\fP|\fBll\fP [\fBlevel\fP[ \fBlevel\fP[ \fBlevel\fP]] \fB...\fP]" +.TP +[\fBmeshif \fP] \fBloglevel\fP|\fBll\fP [\fBlevel\fP[ \fBlevel\fP[ \fBlevel\fP]] \fB...\fP] If no parameter is given the current log level settings are displayed otherwise the parameter(s) is/are used to set the log level. Level 'none' disables all verbose logging. Level 'batman' enables messages related to routing / flooding / broadcasting. Level 'routes' enables messages related to routes being added / changed / deleted. Level 'tt' enables messages related to @@ -136,8 +139,8 @@ messages related to ARP snooping and the Distributed Arp Table. Level 'nc' enabl Level 'mcast' enables messages related to multicast optimizations. Level 'tp' enables messages related to throughput meter. Level 'all' enables all messages. The messages are sent to the kernels trace buffers. Use \fBtrace-cmd stream -e batadv:batadv_dbg\fP to receive the system wide log messages. -.br -.IP "[\fBmeshif \fP] \fBgw_mode|gw\fP [\fBoff\fP|\fBclient\fP|\fBserver\fP] [\fBsel_class|bandwidth\fP]\fP" +.TP +[\fBmeshif \fP] \fBgw_mode|gw\fP [\fBoff\fP|\fBclient\fP|\fBserver\fP] [\fBsel_class|bandwidth\fP]\fP If no parameter is given the current gateway mode is displayed otherwise the parameter is used to set the gateway mode. The second (optional) argument specifies the selection class (if 'client' was the first argument) or the gateway bandwidth (if 'server' was the first argument). If the node is a server this parameter is used to inform other nodes in the network about @@ -203,19 +206,20 @@ gateway or the maximum bandwidth across the entire path. .RE .RE .br -.IP "\fBrouting_algo\fP|\fBra\fP [\fBalgorithm\fP]\fP" +.TP +\fBrouting_algo\fP|\fBra\fP [\fBalgorithm\fP]\fP If no parameter is given the current routing algorithm configuration as well as supported routing algorithms are displayed. Otherwise the parameter is used to select the routing algorithm for the following batX interface to be created. -.br -.IP "\fBhardif \fP \fBthroughput_override|to\fP [\fBbandwidth\fP]\fP" +.TP +\fBhardif \fP \fBthroughput_override|to\fP [\fBbandwidth\fP]\fP If no parameter is given the current througput override is displayed otherwise the parameter is used to set the throughput override for the specified hard interface. Just enter any number (optionally followed by "kbit" or "mbit"). -.br -.IP "[\fBmeshif \fP] \fBisolation_mark\fP|\fBmark\fP" +.TP +[\fBmeshif \fP] \fBisolation_mark\fP|\fBmark\fP If no parameter is given the current isolation mark value is displayed. Otherwise the parameter is used to set or unset the isolation mark used by the Extended Isolation feature. @@ -234,10 +238,8 @@ Example 2: 0x00040000/0xffff0000 .br Example 3: 16 or 0x0F .br -.br -.PP -.I \fBdebug tables: -.IP +.TP +\fBdebug tables:\fP The batman-adv kernel module comes with a variety of debug tables containing various information about the state of the mesh seen by each individual node. @@ -291,9 +293,8 @@ List of debug tables: .RE .br .br -.PP -.I \fBJSON queries: -.IP +.TP +\fBJSON queries:\fP The generic netlink family provided by the batman-adv kernel module can be queried (read-only) by batctl and automatically translated to JSON. This can be used to monitor the state of the system without the need of parsing @@ -342,13 +343,13 @@ List of available JSON queries: \- vlan_json|vj .RE .RE -.br -.IP "[\fBmeshif \fP] \fBtranslate\fP|\fBt\fP \fBMAC_address\fP|\fBbat\-host_name\fP|\fBhost_name\fP|\fBIP_address\fP" +.TP +[\fBmeshif \fP] \fBtranslate\fP|\fBt\fP \fBMAC_address\fP|\fBbat\-host_name\fP|\fBhost_name\fP|\fBIP_address\fP Translates a destination (hostname, IP, MAC, bat_host-name) to the originator mac address responsible for it. -.br -.IP "[\fBmeshif \fP] \fBstatistics\fP|\fBs\fP" +.TP +[\fBmeshif \fP] \fBstatistics\fP|\fBs\fP Retrieve traffic counters from batman-adv kernel module. The output may vary depending on which features have been compiled into the kernel module. .br @@ -362,8 +363,8 @@ tt - translation table counters .RS 7 All counters without a prefix concern payload (pure user data) traffic. .RE -.br -.IP "[\fBmeshif \fP] \fBping\fP|\fBp\fP [\fB\-c count\fP][\fB\-i interval\fP][\fB\-t time\fP][\fB\-R\fP][\fB\-T\fP] \fBMAC_address\fP|\fBbat\-host_name\fP|\fBhost_name\fP|\fBIP_address\fP" +.TP +[\fBmeshif \fP] \fBping\fP|\fBp\fP [\fB\-c count\fP][\fB\-i interval\fP][\fB\-t time\fP][\fB\-R\fP][\fB\-T\fP] \fBMAC_address\fP|\fBbat\-host_name\fP|\fBhost_name\fP|\fBIP_address\fP Layer 2 ping of a MAC address or bat\-host name. batctl will try to find the bat\-host name if the given parameter was not a MAC address. It can also try to guess the MAC address using an IPv4/IPv6 address or a hostname when the IPv4/IPv6 address was configured on top of the batman-adv interface of the destination device and both source and @@ -373,8 +374,8 @@ option batctl will continue pinging without end. Use CTRL + C to stop it. With interval between pings and the timeout time for replies, both in seconds. When run with "\-R", the route taken by the ping messages will be recorded. With "\-T" you can disable the automatic translation of a client MAC address to the originator address which is responsible for this client. -.br -.IP "[\fBmeshif \fP] \fBtraceroute\fP|\fBtr\fP [\fB\-n\fP][\fB\-T\fP] \fBMAC_address\fP|\fBbat\-host_name\fP|\fBhost_name\fP|\fBIP_address\fP" +.TP +[\fBmeshif \fP] \fBtraceroute\fP|\fBtr\fP [\fB\-n\fP][\fB\-T\fP] \fBMAC_address\fP|\fBbat\-host_name\fP|\fBhost_name\fP|\fBIP_address\fP Layer 2 traceroute to a MAC address or bat\-host name. batctl will try to find the bat\-host name if the given parameter was not a MAC address. It can also try to guess the MAC address using an IPv4/IPv6 address or a hostname when the IPv4/IPv6 address was configured on top of the batman-adv interface of the destination device and both source and @@ -382,8 +383,8 @@ destination devices are in the same IP subnet. batctl will send 3 packets to each host and display the response time. If "\-n" is given batctl will not replace the MAC addresses with bat\-host names in the output. With "\-T" you can disable the automatic translation of a client MAC address to the originator address which is responsible for this client. -.br -.IP "\fBtcpdump\fP|\fBtd\fP [\fB\-c\fP][\fB\-n\fP][\fB\-p filter\fP][\fB\-x filter\fP] \fBinterface ...\fP" +.TP +\fBtcpdump\fP|\fBtd\fP [\fB\-c\fP][\fB\-n\fP][\fB\-p filter\fP][\fB\-x filter\fP] \fBinterface ...\fP batctl will display all packets that are seen on the given interface(s). A variety of options to filter the output are available: To only print packets that match the compatibility number of batctl specify the "\-c" (compat filter) option. If "\-n" is given batctl will not replace the MAC addresses with bat\-host names in the output. To filter @@ -416,8 +417,8 @@ except specified). The following packet types are available: .RS 7 Example: batctl td \-p 129 \-> only display batman ogm packets and non batman packets .RE -.br -.IP "\fBbisect_iv\fP [\fB\-l MAC\fP][\fB\-t MAC\fP][\fB\-r MAC\fP][\fB\-s min\fP [\fB\- max\fP]][\fB\-o MAC\fP][\fB\-n\fP] \fBlogfile1\fP [\fBlogfile2\fP ... \fBlogfileN\fP]" +.TP +\fBbisect_iv\fP [\fB\-l MAC\fP][\fB\-t MAC\fP][\fB\-r MAC\fP][\fB\-s min\fP [\fB\- max\fP]][\fB\-o MAC\fP][\fB\-n\fP] \fBlogfile1\fP [\fBlogfile2\fP ... \fBlogfileN\fP] Analyses the B.A.T.M.A.N. IV logfiles to build a small internal database of all sent sequence numbers and routing table changes. This database can then be analyzed in a number of different ways. With "\-l" the database can be used to search for routing loops. Use "\-t" to trace OGMs of a host throughout the network. Use "\-r" to display routing tables of the @@ -425,8 +426,8 @@ nodes. The option "\-s" can be used to limit the output to a range of sequence n specific sequence number, min. Furthermore using "\-o" you can filter the output to a specified originator. If "\-n" is given batctl will not replace the MAC addresses with bat\-host names in the output. .RE -.br -.IP "[\fBmeshif \fP] \fBthroughputmeter\fP|\fBtp\fP \fBMAC\fP" +.TP +[\fBmeshif \fP] \fBthroughputmeter\fP|\fBtp\fP \fBMAC\fP This command starts a throughput test entirely controlled by batman module in kernel space: the computational resources needed to align memory and copy data between user and kernel space that are required by other user space tools may @@ -441,11 +442,10 @@ of a successful experiment the throughput in KBytes per second is returned, together with the experiment duration in millisecond and the amount of bytes transferred. If too many packets are lost or the specified MAC address is not reachable, a message notifying the error is returned instead of the result. -.RE -.br + .SH FILES .TP -.I "\fBbat-hosts\fP" +\fBbat-hosts\fP This file is similar to the /etc/hosts file. You can write one MAC address and one host name per line. batctl will search for bat-hosts in /etc, your home directory and the current directory. The found data is used to match MAC address to your provided host name or replace MAC addresses in debug output and logs. Host names are much easier to remember than MAC