Commit Graph

67 Commits

Author SHA1 Message Date
Sven Eckelmann 71bb32684b alfred: update to version 2021.1
* Allow to force of alfred startup when the interfaces don't work/exist (yet)
* coding style cleanups and refactoring

Signed-off-by: Sven Eckelmann <sven@narfation.org>
2021-05-18 18:54:27 +02:00
Sven Eckelmann 473f467f29 alfred: use $(AUTORELEASE) for PKG_RELEASE
Use `$(AUTORELEASE)` variable rather than setting a PKG_RELEASE
on every commit manually.

Signed-off-by: Sven Eckelmann <sven@narfation.org>
2021-05-14 19:19:00 +02:00
Sven Eckelmann ad85bc8142 alfred: Start up alfred without valid interfaces
The alfred server always needs interfaces to operate on. But these
interfaces might not exist at the moment when the daemon process is
started. This situation stopped the startup process after the init scripts
waited for a longer period of polling the system state.

But alfred is able to deal with interfaces which disappeared at runtime but
existed at startup. To force a similar behavior for the alfred startup, the
parameter "--force" or "-f" is used. The extra polling code is therefore no
longer needed in the init scripts.

Signed-off-by: Sven Eckelmann <sven@narfation.org>
2021-02-15 21:17:53 +01:00
Sven Eckelmann 993f03cecb alfred: Fix procd process handling for disable state
Alfred can be stopped during a (re)start or reload when:

* disabled = 1
* batman-adv interface is missing
* MAC based EUI64 IPv6 link-local address not set

It is assumed that procd detects that the procd instance definition
disappeared and the currently running instance must be stopped. But all
these checks were triggering an "exit" which then stopped the alfred init
script and the wrapper from /lib/functions/procd.sh. And thus procd was
never informed about the instances which should be changed.

The correct handling is to return the result of the function instead of
directly killing the init scripts.

Fixes: 45db0e60d2 ("alfred: use procd")
Signed-off-by: Sven Eckelmann <sven@narfation.org>
2021-02-15 21:03:57 +01:00
Sven Eckelmann 58e0a4d5c3 alfred: upgrade package to latest release 2021.0
* Drop support for batman-adv's sysfs+debugfs

Signed-off-by: Sven Eckelmann <sven@narfation.org>
2021-01-28 21:08:27 +01:00
Sven Eckelmann 331bc1cd3b alfred: upgrade package to latest release 2020.4
* (no changes)

Signed-off-by: Sven Eckelmann <sven@narfation.org>
2020-10-27 14:46:11 +01:00
Sven Eckelmann 7091b78760 alfred: upgrade package to latest release 2020.3
* synchronization of batman-adv netlink header

Signed-off-by: Sven Eckelmann <sven@narfation.org>
2020-08-25 20:07:05 +02:00
Sven Eckelmann 47d63604bc alfred: upgrade package to latest release 2020.2
* Rephrase names of server roles

Signed-off-by: Sven Eckelmann <sven@narfation.org>
2020-07-06 19:53:07 +02:00
Sven Eckelmann 43e4da9ac5 alfred: upgrade package to latest release 2020.1
* (no changes)

Signed-off-by: Sven Eckelmann <sven@narfation.org>
2020-04-24 19:23:48 +02:00
Sven Eckelmann b3f1370d9a alfred: 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:50:54 +01:00
Sven Eckelmann d79eeefa1c alfred: upgrade package to latest release 2020.0
* fix build against gpsd API 9.0

Signed-off-by: Sven Eckelmann <sven@narfation.org>
2020-03-07 18:49:49 +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 68fbe6d74a alfred: 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 c5004988d3 alfred: 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:40:35 +01:00
Sven Eckelmann bb8a0621c6 alfred: upgrade package to latest release 2019.4
* fix build with musl

Signed-off-by: Sven Eckelmann <sven@narfation.org>
2019-10-25 23:34:34 +02:00
Sven Eckelmann 8219168994 alfred: Extend PKG_LICENSE* information
Signed-off-by: Sven Eckelmann <sven@narfation.org>
2019-10-25 23:34:34 +02:00
Sven Eckelmann cf802f8607 alfred: Allow startup without batman-adv sysfs support
The batman-adv kernel module can be build without sysfs support. This will
stop the kernel module from creating the "mesh" directory. The alfred init
script must not depend on this folder to start the daemon up.

Signed-off-by: Sven Eckelmann <sven@narfation.org>
2019-08-01 21:35:39 +02:00
Sven Eckelmann 157da8c4ee alfred: Support multiple listening interfaces
The alfred daemon allows to be started with multiple interfaces. The first
interface is used for communication and to calculate the source mac
address. The rest of the interfaces are only used for communication.

Signed-off-by: Sven Eckelmann <sven@narfation.org>
2019-08-01 21:34:44 +02:00
Sven Eckelmann a74938ea46 alfred: upgrade package to latest release 2019.3
* avoid some kernel deprecation warning by using more generic netlink over
  sysfs

Signed-off-by: Sven Eckelmann <sven@narfation.org>
2019-08-01 17:43:45 +02:00
Sven Eckelmann 44e375c0a3 alfred: Drop unused init-y variable
The Makefile defines the init-y variable but neither this Makefile nor
OpenWrt's common files use this variable.

Signed-off-by: Sven Eckelmann <sven@narfation.org>
2019-07-27 22:42:24 +02:00
Sven Eckelmann 4c4b836d89 alfred: Use standard Build/Compile rule
alfred 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 7accd688e3 alfred: upgrade package to latest release 2019.2
* synchronization of batman-adv netlink header

Signed-off-by: Sven Eckelmann <sven@narfation.org>
2019-05-23 20:11:42 +02:00
Sven Eckelmann 9e8aaf9911 alfred: upgrade package to latest release 2019.1
* synchronization of batman-adv netlink header

Signed-off-by: Sven Eckelmann <sven@narfation.org>
2019-03-28 19:40:20 +01:00
Sven Eckelmann 0ba9fa2ba7 alfred: upgrade package to latest release 2019.0
* (no changes)

Signed-off-by: Sven Eckelmann <sven@narfation.org>
2019-02-02 14:04:09 +01:00
Sven Eckelmann 3528a5df09 alfred: upgrade package to latest release 2018.4
* bugs squashed:

  - fixed detection of own IPv4 packets
  - use manual IPv4 ARP requests to retrieve MAC of neighbors

Signed-off-by: Sven Eckelmann <sven@narfation.org>
2018-11-14 21:50:38 +01:00
Sven Eckelmann 3736630676 alfred: 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:32 +02:00
Sven Eckelmann 99430a87e3 alfred: upgrade package to latest release 2018.3
Signed-off-by: Sven Eckelmann <sven@narfation.org>
2018-09-15 10:19:39 +02:00
Adrian Schmutzler 52e2545198 alfred: Fix alfred.init
The commit 45db0e6 introduced curly brackets which are not correct
syntax and thus broke the script.

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
2018-07-21 16:00:20 +02:00
Sven Eckelmann ce461f8484 alfred: 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 a0eca40b00 alfred: upgrade package to latest release 2018.1
* synchronization of batman-adv netlink header

Signed-off-by: Sven Eckelmann <sven@narfation.org>
2018-04-25 21:17:08 +02:00
Sven Eckelmann 536782119f alfred: 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 14:00:29 +01:00
Sven Eckelmann 3eb8bf4c2b alfred: upgrade package to latest release 2017.4
* synchronization of batman-adv netlink header
* coding style cleanups and refactoring
* documentation cleanup
* bugs squashed:

  - only query debugfs when netlink failed
  - handle allocation errors in hashtable iterator

Signed-off-by: Sven Eckelmann <sven@narfation.org>
2017-12-05 19:20:24 +01:00
Sven Eckelmann 8d12cf5ae4 alfred: upgrade package to latest release 2017.3
* reduction of memory usage when using --update-command

Signed-off-by: Sven Eckelmann <sven@narfation.org>
2017-09-28 18:42:28 +02:00
Sven Eckelmann b5cd68b71b alfred: Remove incorrect comment about git revision
Signed-off-by: Sven Eckelmann <sven@narfation.org>
2017-07-29 09:28:01 +02:00
Sven Eckelmann aa6a958810 alfred: upgrade package to latest release 2017.2
* reduce cpu load when rating multiple master servers
 * coding style cleanups and refactoring

Signed-off-by: Sven Eckelmann <sven@narfation.org>
2017-07-29 09:26:40 +02:00
Sven Eckelmann ed2d6ae959 alfred: upgrade package to latest release 2017.1
Signed-off-by: Sven Eckelmann <sven@narfation.org>
2017-05-25 17:05:41 +02:00
Gui Iribarren 7b851e5f19 alfred: bat-hosts.lua: 'alfred -r' can fail with no output, so retry 3 times
Signed-off-by: Gui Iribarren <gui@altermundi.net>
2017-03-28 16:41:13 -03:00
Sven Eckelmann bc114d5acb alfred: upgrade package to latest release 2017.0
* support IPv4 multicast distribution
 * coding style cleanups

Signed-off-by: Sven Eckelmann <sven@narfation.org>
2017-02-28 19:35:09 +01:00
Sven Eckelmann c1c1e134d6 alfred: 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 e18c440d8b alfred: upgrade package to latest release 2016.5
* support interface validity checks on systems without debugfs
 * remove debugfs check during batadv-vis startup
 * allow out-of-order txend packets during transmissions

Signed-off-by: Sven Eckelmann <sven@narfation.org>
2016-12-16 10:31:14 +01:00
Sven Eckelmann 8e27d38c71 alfred: 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 674adedb8f alfred: upgrade package to latest release 2016.3
Signed-off-by: Sven Eckelmann <sven@narfation.org>
2016-09-30 10:04:48 +02:00
Markus Stenberg 500c4dc8e0 Merge pull request #191 from lynxis/for-upstream
replace kmod-ipv6 @IPV6
2016-06-28 00:25:51 +03:00
Sven Eckelmann 1baec91201 alfred: upgrade package to latest release 2016.2
Signed-off-by: Sven Eckelmann <sven@narfation.org>
2016-06-09 19:14:57 +02:00
Alexander Couzens e17f103c4d use @IPV6 instead of +kmod-ipv6
kmod-ipv6 is obsolete.
The symbol IPV6 is a global config symbol, don't select it because it
will override the user decision of IPV6 as all other package in base do
it. A select (+) will also create a recursive dependency error.

Signed-off-by: Alexander Couzens <lynxis@fe80.eu>
2016-06-05 02:44:32 +02:00
Simon Wunderlich 8aae02a7b1 alfred: bump version to 2016.1
From the CHANGELOG:

 * add support for master servers to receive push_data packets with
   foreign source addresses
 * various code cleanups
 * bugs squashed:
   - ignore invalid EUI64 addresses

Signed-off-by: Simon Wunderlich <sw@simonwunderlich.de>
2016-04-21 14:24:18 +02:00
Sven Eckelmann 20d0da8538 alfred: 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>
2016-01-19 19:23:14 +01:00
Sven Eckelmann 4be7520e9e alfred: upgrade package to latest release 2016.0
Signed-off-by: Sven Eckelmann <sven@open-mesh.com>
2016-01-19 19:22:38 +01:00
Simon Wunderlich e25839ae48 alfred: bump version to 2015.2
From the CHANGELOG:

 * mention libcap in the README
 * Fix typos

Signed-off-by: Simon Wunderlich <sw@simonwunderlich.de>
2015-12-16 18:51:05 +01:00
Markus Stenberg 5cd413d16a Revert "kmod-ipv6 => @IPV6."
This reverts commit bcaa87776f.

Caused circular dependencies; reverted for now. (kmod-ipv6 explicit
dependencies _should_ be eliminated though, but this is clearly not
the way.)
2015-12-12 00:25:10 +02:00