Commit Graph

48 Commits

Author SHA1 Message Date
Sven Eckelmann c00a1bfbbf alfred: Merge bugfixes from 2018.4
* Fix detection of own packets for IPv4 mode
* Request MAC resolution for IPv4 address not in ARP cache

Signed-off-by: Sven Eckelmann <sven@narfation.org>
2018-11-08 00:18:54 +01:00
Sven Eckelmann 95e56cf644 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-14 16:04:31 +02:00
Moritz Warning 3349cae243
Merge pull request #367 from ecsv/batadv-2018.1
batman-adv 2018.1
2018-05-02 16:50:57 +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
Adrian Schmutzler 135bc605b4 alfred: Support interface IDs with more than two digits
Occationally /proc/net/if_inet6 contains interface IDs with
three digits. In this case, the regex in wait_for_ll_address()
does not work anymore and alfred is not starting.

This patch changes the evaluation so that fields are used instead
of the mere position by counting characters.

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
2018-04-09 12:11:12 +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
Simon Wunderlich ef2f816bf7 Merge pull request #145 from ecsv/alfred_2016.0
Alfred 2016.0
2016-03-25 20:32:24 +01:00
Bastian Bittorf 4f8207064a Merge pull request #126 from NeoRaider/master
alfred: not only wait for the interface, but also a link-local address
2016-01-19 20:26:16 +01: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
Markus Stenberg bcaa87776f kmod-ipv6 => @IPV6. 2015-12-11 14:05:14 +02:00
Matthias Schiffer c40c8024ee alfred: not only wait for the interface, but also a link-local address
Changes between alfred 2015.0 and 2015.1 cause alfred to print an error
and exit when the interface to bind to is not completely set up (has no
non-tentative link-local address). As a workaround, wait for such an
address by reading /proc/net/if_inet6 before alfred is started.

In the long term, it would be nice to make alfred more robust against
missing interfaces (allowing alfred to start without the interface
existing, and keeping it working even when the interface is removed and
re-added while alfred is running).

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
2015-08-09 18:15:27 +02:00
Simon Wunderlich ad556e8759 alfred: bump version to 2015.1
From the CHANGELOG:

 * add support to run on interfaces with multiple link-local addresses
 * various code cleanups
 * bugs squashed:
   - reduce of maximum payload size to always fit into UDP datagrams

Signed-off-by: Simon Wunderlich <sw@simonwunderlich.de>
2015-08-04 17:58:38 +02:00
Moritz Warning a251e8fb2a alfred: fix whitespaces 2015-05-31 10:39:59 +02:00
Moritz Warning 62275acf21 alfred: wait for batmanif and interface, ignore batmanif if it is set to 'none' 2015-05-31 02:52:25 +02:00
Simon Wunderlich 98f8393d29 alfred: disable new alfred capability dropping by default
Signed-off-by: Simon Wunderlich <sw@simonwunderlich.de>
2015-05-05 12:31:59 +02:00
Simon Wunderlich 038e3677f8 alfred: bump version to 2015.0
From the CHANGELOG:

 * add support to call commands after data was updated
 * automatic reduction of process capabilities when not needed anymore
 * allow printing of the data version number in the alfred client mode
 * various code cleanups
 * bugs squashed:
   - update of the version number when data was updated with different
     version number
   - tighten size check on received packet

Signed-off-by: Simon Wunderlich <sw@simonwunderlich.de>
2015-05-05 12:25:42 +02:00
Sven Eckelmann 9e25fa70ff alfred: Fix dependency to IPv6
alfred always requires IPv6 support in the kernel and not only when
"Enable IPv6 support in packages" is enabled.

Signed-off-by: Sven Eckelmann <sven@open-mesh.com>
Signed-off-by: Simon Wunderlich <sw@simonwunderlich.de>
2015-05-05 12:24:40 +02:00
Simon Wunderlich dd3e3dd881 alfred: bump version to 2014.4.0
From the CHANGELOG:

 * add support for multiple interfaces per master
 * add support for changing interfaces on the fly
 * changes to support multiple alfred interfaces:
   - bind alfred to a specific interface
   - allow configuring the unix socket path
 * enhanced debugging

Signed-off-by: Simon Wunderlich <sw@simonwunderlich.de>
2015-01-08 20:52:42 +01:00
Steven Barth 69f203d5c3 Add SPDX license tags
Signed-off-by: Steven Barth <steven@midlink.org>
2014-11-03 13:17:00 +01:00
André Gaul dc9b995c1e [alfred] fix missing alfred-gpsd binary
fixes #22

Signed-off-by: Simon Wunderlich <sw@simonwunderlich.de>
2014-09-11 12:22:54 +02:00
Simon Wunderlich 0af5c75f79 alfred: bump version to 2014.3.0
From the CHANGELOG:

 * fix various possible memleak, access errors and strncpy issues
 * handle fcntl return codes
 * fix altitude verification check in gpsd

Signed-off-by: Simon Wunderlich <sw@simonwunderlich.de>
2014-07-24 12:58:36 +02:00
Simon Wunderlich 11f9f01d35 alfred: bump version to 2014.2.0
From the CHANGELOG:

 * Handle EPERM errors on every sendto
 * Check for changed interface properties, e.g. recreation or
   changed MAC- and IPv6 addresses

Signed-off-by: Simon Wunderlich <sw@simonwunderlich.de>
2014-05-28 12:52:07 +02:00
Simon Wunderlich 68edf28cf3 alfred: bump version to 2014.1.0
bump alfred to version 2014.1.0. From the CHANGELOG:

 * don't leak socket fd in batadv-vis

Signed-off-by: Simon Wunderlich <sw@simonwunderlich.de>
2014-03-22 19:25:14 +01:00
Simon Wunderlich 9c4108db7c alfred: bump version to 2014.0.0
bump alfred to version 2014.0.0. From the CHANGELOG:

 * add installation of the alfred-gpsd manpage
 * add -lm to linker flags for libgps in alfred-gpsd

Signed-off-by: Simon Wunderlich <sw@simonwunderlich.de>
2014-01-15 18:24:47 +01:00
Gui Iribarren e2cfab7f28 alfred: workaround race condition when batmanif is not ready at boot time
Wait up to 30 seconds during init.d script on boot, so that batmanif can
come up. If the timeout is reached, the init.d script refuses to start
alfred and related daemons.

This prevents an alfred crash when it would start during early boot, before
batmanif is available. Instead, alfred is started as soon as batmanif appears,
if that happens during the 30-second window.

Signed-off-by: Gui Iribarren <gui@altermundi.net>
Signed-off-by: Simon Wunderlich <sw@simonwunderlich.de>
2013-12-16 16:03:44 +01:00
Gui Iribarren 47a466ede6 alfred: fix batadv-vis invocation in init.d script
broken (wouldn't start, failing silently) since the following commit:
 * "renamed vis to batadv-vis to avoid collisions with other vis binaries"
which renamed only some instances of the "vis" command

Signed-off-by: Gui Iribarren <gui@altermundi.net>
Signed-off-by: Simon Wunderlich <sw@simonwunderlich.de>
2013-12-16 16:03:44 +01:00
Gui Iribarren fc93a9c434 alfred: optionally bundle a lua script for generating a bat-hosts
Provide a lua script that uses alfred to propagate and collect all
interface mac + names, then generate a /tmp/bat-hosts file.
If there's already a (probably hand-made) /etc/bat-hosts it won't overwrite it,
but if there's none, it will symlink /etc/bat-hosts -> /tmp/bat-hosts

Signed-off-by: Gui Iribarren <gui@altermundi.net>
Thanks-to: Joshua Head <joshua.head@outlook.com>
[sw@simonwunderlich.de: bumped release number]
Signed-off-by: Simon Wunderlich <sw@simonwunderlich.de>
2013-11-12 20:43:27 +01:00
Simon Wunderlich 072ba90ce4 alfred: bump version to 2013.4.0
bump alfred to version 2013.4.0. From the CHANGELOG:

 * add new json output format for vis
 * add gps location information service for alfred
 * allow network interface to vanish and return without restart
 * allow to switch between master and slave operation without restart
 * renamed vis to batadv-vis to avoid collisions with other vis binaries
 * add manpages
 * various code cleanups
 * bugs squashed:

   * handle failing write() in unix sockets
   * Fix crash when vis opened empty file

alfred-gpsd is optional and requires libgps from the gpsd package to
compile. It needed its own -lm for libgps which does not link to libm
by itself, a patch for upstream alfred has been posted.

Signed-off-by: Simon Wunderlich <sw@simonwunderlich.de>
2013-10-23 01:37:47 +02:00
Gui Iribarren 14f85e7240 alfred: Add a lightweight framework for running facter scripts that feed data into alfred every 5 minutes
Alfred expects to be fed data periodically, but there's currently no easy
way to do that from scripts, prompting people to write whole C programs
to accomplish tasks that could easily be scripted.
Provide a really simple framework to run scripts every 5 minutes, using a
cronjob, when alfred is started by the init.d script.

Signed-off-by: Gui Iribarren <gui@altermundi.net>
Signed-off-by: Simon Wunderlich <sw@simonwunderlich.de>
2013-10-23 01:37:47 +02:00
Simon Wunderlich f76074d424 alfred: add alfred 2013.3.0 to feed
Add A.L.F.R.E.D - Almighty Lightweight Fact Remote Exchange Daemon
to the OpenWRT routing feed. This package contains the latest stable
release of alfred which has been recently published by the
open-mesh.org community. A description follows below.

alfred is a user space daemon for distributing arbitrary local
information over the mesh/network in a decentralized fashion. This data
can be anything which appears to be useful - originally designed to
replace the batman-adv visualization (vis), you may distribute
hostnames, phone books, administration information, DNS information,
the local weather forecast ...

alfred runs as daemon in the background of the system. A user may insert
information by using the alfred binary on the command line, or use
special programs to communicate with alfred (done via unix sockets).
alfred then takes care of distributing the local information to other
alfred servers on other nodes. This is done via IPv6 link-local
multicast, and does not require any configuration. A user can request
data from alfred, and will receive the information available from all
alfred servers in the network.

Signed-off-by: Simon Wunderlich <siwu@hrz.tu-chemnitz.de>
2013-08-19 23:17:47 +02:00