summaryrefslogtreecommitdiff
path: root/batctl
Commit message (Collapse)AuthorAgeFilesLines
* batctl: Merge bugfixes from 2021.0Sven Eckelmann2021-01-283-1/+58
| | | | | | | * Don't stop when create_interface detected existing interface * Fix retrieval of meshif ap_isolation Signed-off-by: Sven Eckelmann <sven@narfation.org>
* batctl: Merge bugfixes from 2020.4Sven Eckelmann2020-10-242-1/+40
| | | | | | * tcpdump: Fix endianness in ICMPv6 Echo Request/Reply parsing Signed-off-by: Sven Eckelmann <sven@narfation.org>
* batctl: Enable build of mcast_flags subcommandSven Eckelmann2020-07-211-2/+2
| | | | | | | | | | | | The mcast_flags subcommand allows to query the mcast_flags of the current device and of the seen originators. It should be enabled for the default and full variants. But the configuration string wasn't correctly included in the list when the variants were prepared and thus disabled in all variants. Reported-by: Linus Lüssing <linus.luessing@c0d3.blue> Fixes: 129986825219 ("batctl: Provide different variants") Signed-off-by: Sven Eckelmann <sven@narfation.org>
* batctl: Merge bugfixes from 2020.2Sven Eckelmann2020-07-063-1/+88
| | | | | | | * fix endianness when reading radiotap header * Only remove batadv interface on hardif reduction Signed-off-by: Sven Eckelmann <sven@narfation.org>
* batctl: Merge bugfixes from 2020.1Sven Eckelmann2020-04-242-1/+38
| | | | | | * Return EXIT_FAILURE when throughputmeter failed Signed-off-by: Sven Eckelmann <sven@narfation.org>
* batctl: Fix upstream reference in backported patchSven Eckelmann2020-04-241-2/+2
| | | | Signed-off-by: Sven Eckelmann <sven@narfation.org>
* batctl: Merge bugfixes from 2019.3Sven Eckelmann2019-08-012-1/+91
| | | | | | * Prefer netlink hardif status retrieval over sysfs Signed-off-by: Sven Eckelmann <sven@narfation.org>
* batctl: Upgrade hardif settings patches to upstream versionSven Eckelmann2019-08-015-136/+443
| | | | | | | | | | | The hardif patches were added to OpenWrt before they were accepted in the upstream repository. This seemed necessary at that time because OpenWrt 19.07 was alreadu branched of (to be released soon). But the upstream merged patches contain more cleanups. Having the actual upstream version in OpenWrt make it easier to integrate potential bugfixes. Signed-off-by: Sven Eckelmann <sven@narfation.org>
* batctl: Add support for hardif settingsSven Eckelmann2019-06-155-1/+884
| | | | | | | | | | | | | | | | | | batctl currently supports settings which are either mesh interface or vlan specific. But B.A.T.M.A.N. V introduced two additional settings which are hard (slave) interface specific. To support these, an additional command prefix called hardif is implemented for some sysfs commands: $ batctl -m bat0 hardif eth0 .. The usable commands with that are: * elp_interval * throughput_override Signed-off-by: Sven Eckelmann <sven@narfation.org>
* batctl: upgrade package to latest release 2019.2Sven Eckelmann2019-05-231-4/+4
| | | | | | | | | | * coding style cleanups and refactoring * add multicast_fanout setting subcommand * implement netlink based support for remaining sysfs-only features * drop support for deprecated log command support * remove non-netlink support for translating MAC addresses to originators Signed-off-by: Sven Eckelmann <sven@narfation.org>
* batctl: upgrade package to latest release 2019.1Sven Eckelmann2019-03-282-62/+5
| | | | | | | | | * coding style cleanups and refactoring * introduce support for batadv meshif, hardif and vlan configuration via netlink * replace multicast_mode with multicast_forceflood settings subcommand * add hop_penalty setting subcommand Signed-off-by: Sven Eckelmann <sven@narfation.org>
* batctl: Add package description per variantSven Eckelmann2019-03-281-5/+20
| | | | | Fixes: 129986825219 ("batctl: Provide different variants") Signed-off-by: Sven Eckelmann <sven@narfation.org>
* batctl: Add support for hop_penalty settings commandSven Eckelmann2019-02-222-1/+62
| | | | | | | | The batman-adv scripts are still using sysfs for setting the hop_penalty. Since the sysfs is deprecated, the batctl interface should be used to make it independent of implementation details (sysfs vs. netlink). Signed-off-by: Sven Eckelmann <sven@narfation.org>
* batctl: fix wrong binary-name for batctl-defaultSven Roederer2019-02-181-3/+3
| | | | | | * correct binary for batctl-default to /usr/libexec/batctl-default * while at it fix description of batctl-full Signed-off-by: Sven Roederer <freifunk@it-solutions.geroedel.de>
* batctl: upgrade package to latest release 2019.0Sven Eckelmann2019-02-022-60/+3
| | | | | | | | | | | | * coding style cleanups and refactoring * add gateway selection manpage section for B.A.T.M.A.N. V * bugs squashed: - re-integrate support for translation table unicast/multicast filter - avoid incorrect warning about disabled mesh interface when debugfs support is not enabled in batman-adv Signed-off-by: Sven Eckelmann <sven@narfation.org>
* batman-adv: use batctl for configurationSven Eckelmann2019-01-271-2/+2
| | | | | | | | | | | | The batctl binary is currently optional for batman-adv installations. But new configuration settings will only be exposed via generic netlink. The batctl tool will therefore be required to modify them. batctl must therefore no longer depend on batman-adv but batman-adv must depend on batctl. Some already implemented settings are already moved to batctl. Signed-off-by: Sven Eckelmann <sven@narfation.org>
* batctl: Provide different variantsSven Eckelmann2019-01-271-8/+156
| | | | | | | | | | | | | The batctl binary is currently optional for batman-adv installations. But new configuration settings will only be exposed via generic netlink. The batctl tool will therefore be required to modify them. To also fit batctl in some of the smaller devices, a new variant batctl-tiny is build which only provides the settings subcommands. The batctl-default variant is equal to the old batctl package and batctl-full also provides the commands which were disabled until now. Signed-off-by: Sven Eckelmann <sven@narfation.org>
* batctl: Fix parsing of optional debug table command parametersSven Eckelmann2018-12-062-1/+58
| | | | | | | | | The commands which should have no support for -t/-u/-m/-i were allowed to accept these parameters but commands which should have accepted them were denying them. Fixes: 8936141bf038 ("batctl: upgrade package to latest release 2018.4") Signed-off-by: Sven Eckelmann <sven@narfation.org>
* batctl: upgrade package to latest release 2018.4Sven Eckelmann2018-11-141-3/+3
| | | | | | | | | | * coding style cleanups and refactoring * correction of manpage spelling errors * new subcommand "event" to receive netlink notifications * infrastructure to disable commands during build time * drop of the legacy vis subcommands Signed-off-by: Sven Eckelmann <sven@narfation.org>
* batctl: Don't overwrite default PKG_BUILD_DIRSven Eckelmann2018-10-071-2/+0
| | | | | | | There is no benefit to overwrite the PKG_BUILD_DIR directory for batctl. As seen with kmod-batman-adv, it actually can also break the build. Signed-off-by: Sven Eckelmann <sven@narfation.org>
* batctl: Add openwrt revision to internal versionSven Eckelmann2018-10-071-2/+3
| | | | | | | | | | OpenWrt is using a modified version of the software and these modifications may introduce extra bugs (or behavior changes). It is also patched for stable releases instead of switching to new releases. The revision should therefore be added to the version number to make it easier understandable which modified version the user may have installed. Signed-off-by: Sven Eckelmann <sven@narfation.org>
* batctl: upgrade package to latest release 2018.3Sven Eckelmann2018-09-151-2/+2
| | | | Signed-off-by: Sven Eckelmann <sven@narfation.org>
* batctl: upgrade package to latest release 2018.2Sven Eckelmann2018-07-171-2/+2
| | | | | | * (no changes) Signed-off-by: Sven Eckelmann <sven@narfation.org>
* batctl: Drop unused clean ruleSven Eckelmann2018-07-171-4/+0
| | | | | | | The rule can be removed because the OpenWrt build system takes care of the removal of the build directory. Signed-off-by: Sven Eckelmann <sven@narfation.org>
* batctl: upgrade package to latest release 2018.1Sven Eckelmann2018-04-251-3/+2
| | | | | | | | * synchronization of batman-adv netlink and packet headers * add DAT cache and multicast flags netlink support * disable translation support for non-unicast mac addresses Signed-off-by: Sven Eckelmann <sven@narfation.org>
* batctl: upgrade package to latest release 2018.0Sven Eckelmann2018-02-271-3/+3
| | | | | | | | * synchronization of batman-adv netlink and packet headers * mark licenses clearer, change batman-adv UAPI header from ISC to MIT * coding style cleanups and refactoring Signed-off-by: Sven Eckelmann <sven@narfation.org>
* batctl: upgrade package to latest release 2017.4Sven Eckelmann2017-12-051-3/+3
| | | | | | | | | | | | * synchronization of batman-adv netlink header * coding style cleanups and refactoring * documentation cleanup * bugs squashed: - improve error handling for libnl related errors - add checks for various allocation errors Signed-off-by: Sven Eckelmann <sven@narfation.org>
* batctl: upgrade package to latest release 2017.3Sven Eckelmann2017-09-281-3/+3
| | | | | | | * bugs squashed: - Fix error messages on traceroute send failures Signed-off-by: Sven Eckelmann <sven@narfation.org>
* batctl: upgrade package to latest release 2017.2Sven Eckelmann2017-07-291-3/+3
| | | | | | | | * coding style cleanups and refactoring * bugs squashed: - Fix error messages on traceroute send failures Signed-off-by: Sven Eckelmann <sven@narfation.org>
* batctl: upgrade package to latest release 2017.1Sven Eckelmann2017-05-251-3/+3
| | | | Signed-off-by: Sven Eckelmann <sven@narfation.org>
* batctl: upgrade package to latest release 2017.0Sven Eckelmann2017-02-281-3/+3
| | | | | | | | | | * remove root check for read-only sysfs and rtnl functionality * coding style cleanups * bugs squashed: - fix check for root privileges when started under modified effective uid Signed-off-by: Sven Eckelmann <sven@narfation.org>
* Merge pull request #269 from ecsv/batadv-fixesSimon Wunderlich2017-02-031-0/+1
|\ | | | | batman-adv: maint patch import + settings fixes
| * batctl: Add sha256 PKG_HASH for LEDESven Eckelmann2017-01-301-0/+1
| | | | | | | | Signed-off-by: Sven Eckelmann <sven.eckelmann@open-mesh.com>
* | batctl: Change maintainer to Simon WunderlichSven Eckelmann2017-01-231-1/+1
|/ | | | | | | | | | | Marek Lindner forwarded all recent requests regarding the package changes to Simon. He also asked that further changes should be handled directly without waiting for him. Simon Wunderlich already has write access to the repository and is therefore well prepared to take over the role of the maintainer. Signed-off-by: Sven Eckelmann <sven@narfation.org>
* batctl: upgrade package to latest release 2016.5Sven Eckelmann2016-12-161-3/+3
| | | | | | | | * reimplement traceroute/ping commands in userspace without debugfs * switch interface manipulation from (legacy) sysfs to rtnetlink * coding style cleanups Signed-off-by: Sven Eckelmann <sven@narfation.org>
* batctl: upgrade package to latest release 2016.4Sven Eckelmann2016-10-282-79/+2
| | | | Signed-off-by: Sven Eckelmann <sven@narfation.org>
* batctl: upgrade package to latest release 2016.3Sven Eckelmann2016-09-302-3/+81
| | | | Signed-off-by: Sven Eckelmann <sven@narfation.org>
* batctl: upgrade package to latest release 2016.2Sven Eckelmann2016-06-091-3/+3
| | | | Signed-off-by: Sven Eckelmann <sven@narfation.org>
* batctl: upgrade package to latest release 2016.1Marek Lindner2016-04-251-2/+2
| | | | Signed-off-by: Marek Lindner <mareklindner@neomailbox.ch>
* batctl: upgrade package to latest release 2016.0Sven Eckelmann2016-01-191-2/+2
| | | | Signed-off-by: Sven Eckelmann <sven@open-mesh.com>
* batctl: Switch to HTTPS version of linksSven Eckelmann2016-01-191-2/+2
| | | | | | | | | open-mesh.org and its subdomains can only be accessed via HTTPS. HTTP-only requests are currently redirected automatically to HTTPS but references to it should be only https. Signed-off-by: Sven Eckelmann <sven@narfation.org> Signed-off-by: Marek Lindner <mareklindner@neomailbox.ch>
* batctl: upgrade package to latest release 2015.2Marek Lindner2015-12-281-2/+2
| | | | Signed-off-by: Marek Lindner <mareklindner@neomailbox.ch>
* batctl: upgrade package to latest release 2015.1Marek Lindner2015-08-053-122/+2
| | | | Signed-off-by: Marek Lindner <mareklindner@neomailbox.ch>
* batctl: musl build fixesMarek Lindner2015-06-212-0/+120
| | | | Signed-off-by: Marek Lindner <mareklindner@neomailbox.ch>
* batman-adv: upgrade package to latest release 2015.0Marek Lindner2015-06-091-2/+2
| | | | Signed-off-by: Marek Lindner <mareklindner@neomailbox.ch>
* batctl: upgrade package to latest release 2014.4.0Marek Lindner2015-01-081-2/+2
| | | | Signed-off-by: Marek Lindner <mareklindner@neomailbox.ch>
* Add SPDX license tagsSteven Barth2014-11-031-0/+1
| | | | Signed-off-by: Steven Barth <steven@midlink.org>
* batctl: upgrade package to latest release 2014.3.0Marek Lindner2014-10-131-2/+2
| | | | Signed-off-by: Marek Lindner <mareklindner@neomailbox.ch>
* batctl: upgrade package to latest release 2014.2.0Marek Lindner2014-06-071-0/+79
Signed-off-by: Marek Lindner <mareklindner@neomailbox.ch>