Commit Graph

56 Commits

Author SHA1 Message Date
Sven Eckelmann 8de6e21ec5 batctl: upgrade package to latest release 2021.0
* Drop support for batman-adv's sysfs+debugfs
* allow to select routing algorithm during creation of interface
* bugs squashed:

  - fix query of meshif's ap_isolation status
  - ignore "interface already exists" error during "interface add"

Signed-off-by: Sven Eckelmann <sven@narfation.org>
2021-01-28 21:08:27 +01:00
Sven Eckelmann 89d7857d0e batctl: upgrade package to latest release 2020.4
* bugs squashed:

   - Fix endianness in ICMPv6 Echo Request/Reply parsing

Signed-off-by: Sven Eckelmann <sven@narfation.org>
2020-10-27 14:46:11 +01:00
Sven Eckelmann 4e7401602b batctl: upgrade package to latest release 2020.3
* add per interface hop penalty command

Signed-off-by: Sven Eckelmann <sven@narfation.org>
2020-08-25 20:08:53 +02:00
Sven Eckelmann ffa7f2c6ea batctl: Enable build of mcast_flags subcommand
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: 1299868252 ("batctl: Provide different variants")
Signed-off-by: Sven Eckelmann <sven@narfation.org>
2020-07-21 22:41:51 +02:00
Sven Eckelmann f6e792907f batctl: upgrade package to latest release 2020.2
* coding style cleanups and refactoring
* drop support for automatic destruction of empty meshifs
* bugs squashed:

  - Fix parsing of radiotap headers on big endian systems

Signed-off-by: Sven Eckelmann <sven@narfation.org>
2020-07-06 19:53:24 +02:00
Sven Eckelmann 6d40c78639 batctl: upgrade package to latest release 2020.1
* bugs squashed:

  - Fix error code on throughputmeter errors

Signed-off-by: Sven Eckelmann <sven@narfation.org>
2020-04-24 19:24:15 +02:00
Sven Eckelmann e002648835 batctl: Drop duplicated PROVIDES for batctl-tiny
The PROVIDES:=batctl is also set by Package/batctl/Default and doesn't have
to be duplicated for Package/batctl-tiny (which inherits from
Package/batctl/Default).

Signed-off-by: Sven Eckelmann <sven@narfation.org>
2020-03-07 18:52:16 +01:00
Sven Eckelmann 4561a42ac4 batctl: Switch to OpenWrt package template
The OpenWrt routing feed was tried to be merged together with the OpenWrt
package feed. But they ended up being rejected due to formalities like the
slightly different package template. Just moving to the OpenWrt package
based one should simplify similar approaches in the future.

Signed-off-by: Sven Eckelmann <sven@narfation.org>
2020-03-07 18:51:06 +01:00
Sven Eckelmann 6c4c46fc34 batctl: upgrade package to latest release 2020.0
Signed-off-by: Sven Eckelmann <sven@narfation.org>
2020-03-07 18:50:02 +01:00
Simon Wunderlich 5544be5234
Merge pull request #529 from adrianschmutzler/openwrtversion
batman-adv and friends: improve version string
2019-12-15 16:00:16 +01:00
Sven Eckelmann 4a418ce7bb batctl: upgrade package to latest release 2019.5
Signed-off-by: Sven Eckelmann <sven@narfation.org>
2019-12-13 21:59:08 +01:00
Adrian Schmutzler 612bd5e5f6 batctl: improve version string
This changes the package version string so it does not start
with "openwrt", but with the base version we are modifying:

So far: openwrt-2019.4-1
Now:    2019.4-openwrt-1

Since it's us modifying version 2019.4 (in this case), this order
is more convenient (and also closer to what the kernel version
string does).

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
2019-11-11 12:39:56 +01:00
Sven Eckelmann ca06c3fc17 batctl: upgrade package to latest release 2019.4
* fix deprecation warning for option '-m'

Signed-off-by: Sven Eckelmann <sven@narfation.org>
2019-10-25 23:34:34 +02:00
Sven Eckelmann 23ecedee92 batctl: Extend PKG_LICENSE* information
Signed-off-by: Sven Eckelmann <sven@narfation.org>
2019-10-25 23:34:34 +02:00
Sven Eckelmann a03d198516 batctl: upgrade package to latest release 2019.3
* add tcpdump support for MCAST TVLV, unicast fragments and coded packets
* implement support for multicast RTR flags
* avoid some kernel deprecation warning by using more generic netlink over
  sysfs
* use type specific prefixes to select mesh interface or vlan instead of '-m'
* add support for hardif specific settings

Signed-off-by: Sven Eckelmann <sven@narfation.org>
2019-08-01 17:44:55 +02:00
Sven Eckelmann f921555cf7 batctl: Use standard Build/Compile rule
batctl isn't using any special rules in Build/Compile. It is cleaner to
directly use the global Build/Compile/Default instead of having a
functional similar copy in the package Makefile

Signed-off-by: Sven Eckelmann <sven@narfation.org>
2019-07-27 22:42:24 +02:00
Sven Eckelmann eeea3e980e batctl: Add support for hardif settings
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>
2019-06-15 09:18:51 +02:00
Sven Eckelmann 7b7da0cddb batctl: upgrade package to latest release 2019.2
* 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>
2019-05-23 20:21:54 +02:00
Sven Eckelmann 0a2547a111 batctl: upgrade package to latest release 2019.1
* 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>
2019-03-28 19:43:14 +01:00
Sven Eckelmann 55a7a224e1 batctl: Add package description per variant
Fixes: 1299868252 ("batctl: Provide different variants")
Signed-off-by: Sven Eckelmann <sven@narfation.org>
2019-03-28 19:38:16 +01:00
Sven Eckelmann 278e98cb86 batctl: Add support for hop_penalty settings command
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>
2019-02-22 22:49:56 +01:00
Sven Roederer e29142379e
batctl: fix wrong binary-name for batctl-default
* 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>
2019-02-18 22:40:24 +01:00
Sven Eckelmann 5d3a71f342 batctl: upgrade package to latest release 2019.0
* 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>
2019-02-02 14:04:09 +01:00
Sven Eckelmann 498463cd59 batman-adv: use batctl for configuration
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>
2019-01-27 15:31:37 +01:00
Sven Eckelmann 1299868252 batctl: Provide different variants
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>
2019-01-27 15:07:57 +01:00
Sven Eckelmann db1869971d batctl: Fix parsing of optional debug table command parameters
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: 8936141bf0 ("batctl: upgrade package to latest release 2018.4")
Signed-off-by: Sven Eckelmann <sven@narfation.org>
2018-12-06 09:21:15 +01:00
Sven Eckelmann 8936141bf0 batctl: upgrade package to latest release 2018.4
* 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>
2018-11-14 21:50:38 +01:00
Sven Eckelmann e6a8135faa batctl: Don't overwrite default PKG_BUILD_DIR
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>
2018-10-07 16:11:48 +02:00
Sven Eckelmann c903a445a8 batctl: Add openwrt revision to internal version
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>
2018-10-07 13:31:16 +02:00
Sven Eckelmann 22fd5c5f06 batctl: upgrade package to latest release 2018.3
Signed-off-by: Sven Eckelmann <sven@narfation.org>
2018-09-15 10:19:39 +02:00
Sven Eckelmann afc7b8f64c batctl: upgrade package to latest release 2018.2
* (no changes)

Signed-off-by: Sven Eckelmann <sven@narfation.org>
2018-07-17 21:23:54 +02:00
Sven Eckelmann 303c282565 batctl: Drop unused clean rule
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>
2018-07-17 21:23:54 +02:00
Sven Eckelmann 2e4937ea68 batctl: upgrade package to latest release 2018.1
* 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>
2018-04-25 21:18:00 +02:00
Sven Eckelmann 6a6f5da5ef batctl: upgrade package to latest release 2018.0
* 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>
2018-02-27 13:59:55 +01:00
Sven Eckelmann e211376b53 batctl: upgrade package to latest release 2017.4
* 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>
2017-12-05 19:18:48 +01:00
Sven Eckelmann 34db538e33 batctl: upgrade package to latest release 2017.3
* bugs squashed:
   - Fix error messages on traceroute send failures

Signed-off-by: Sven Eckelmann <sven@narfation.org>
2017-09-28 18:42:27 +02:00
Sven Eckelmann a4264b3b54 batctl: upgrade package to latest release 2017.2
* coding style cleanups and refactoring
 * bugs squashed:
   - Fix error messages on traceroute send failures

Signed-off-by: Sven Eckelmann <sven@narfation.org>
2017-07-29 09:26:41 +02:00
Sven Eckelmann d036bcf643 batctl: upgrade package to latest release 2017.1
Signed-off-by: Sven Eckelmann <sven@narfation.org>
2017-05-25 17:07:29 +02:00
Sven Eckelmann 62f4fa6ee4 batctl: upgrade package to latest release 2017.0
* 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>
2017-02-28 19:35:09 +01:00
Simon Wunderlich 3c466ebe40 Merge pull request #269 from ecsv/batadv-fixes
batman-adv: maint patch import + settings fixes
2017-02-03 19:06:32 +01:00
Sven Eckelmann 7fce5dbf36 batctl: Add sha256 PKG_HASH for LEDE
Signed-off-by: Sven Eckelmann <sven.eckelmann@open-mesh.com>
2017-01-30 15:02:53 +01:00
Sven Eckelmann 64cb90b04e batctl: Change maintainer to Simon Wunderlich
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>
2017-01-23 19:47:30 +01:00
Sven Eckelmann c425a4d8a6 batctl: upgrade package to latest release 2016.5
* 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>
2016-12-16 10:31:14 +01:00
Sven Eckelmann b429e28714 batctl: upgrade package to latest release 2016.4
Signed-off-by: Sven Eckelmann <sven@narfation.org>
2016-10-28 18:03:42 +02:00
Sven Eckelmann c2d16c2536 batctl: upgrade package to latest release 2016.3
Signed-off-by: Sven Eckelmann <sven@narfation.org>
2016-09-30 10:04:48 +02:00
Sven Eckelmann ff255dd9d1 batctl: upgrade package to latest release 2016.2
Signed-off-by: Sven Eckelmann <sven@narfation.org>
2016-06-09 19:14:57 +02:00
Marek Lindner fbc84445f7 batctl: upgrade package to latest release 2016.1
Signed-off-by: Marek Lindner <mareklindner@neomailbox.ch>
2016-04-25 17:23:59 +08:00
Sven Eckelmann 968fcbf389 batctl: upgrade package to latest release 2016.0
Signed-off-by: Sven Eckelmann <sven@open-mesh.com>
2016-01-19 17:46:13 +01:00
Sven Eckelmann fbc1b1898f batctl: Switch to HTTPS version of links
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>
2016-01-19 17:43:26 +01:00
Marek Lindner f8380b4136 batctl: upgrade package to latest release 2015.2
Signed-off-by: Marek Lindner <mareklindner@neomailbox.ch>
2015-12-28 08:20:47 +08:00