<feed xmlns='http://www.w3.org/2005/Atom'>
<title>routing/alfred/files, branch master</title>
<subtitle>Mirror of routing feed</subtitle>
<id>https://git.openwrt.org/feed/routing/atom?h=master</id>
<link rel='self' href='https://git.openwrt.org/feed/routing/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/feed/routing/'/>
<updated>2021-02-15T20:17:53Z</updated>
<entry>
<title>alfred: Start up alfred without valid interfaces</title>
<updated>2021-02-15T20:17:53Z</updated>
<author>
<name>Sven Eckelmann</name>
</author>
<published>2021-02-15T20:17:53Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/feed/routing/commit/?id=ad85bc8142626b6644ef3365bc5cfb37d541092a'/>
<id>urn:sha1:ad85bc8142626b6644ef3365bc5cfb37d541092a</id>
<content type='text'>
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 &lt;sven@narfation.org&gt;
</content>
</entry>
<entry>
<title>alfred: Fix procd process handling for disable state</title>
<updated>2021-02-15T20:03:57Z</updated>
<author>
<name>Sven Eckelmann</name>
</author>
<published>2021-02-15T20:03:57Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/feed/routing/commit/?id=993f03cecb2db3e845bfa6ba4326bc352f853e3c'/>
<id>urn:sha1:993f03cecb2db3e845bfa6ba4326bc352f853e3c</id>
<content type='text'>
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: 45db0e60d2ff ("alfred: use procd")
Signed-off-by: Sven Eckelmann &lt;sven@narfation.org&gt;
</content>
</entry>
<entry>
<title>alfred: Allow startup without batman-adv sysfs support</title>
<updated>2019-08-01T19:35:39Z</updated>
<author>
<name>Sven Eckelmann</name>
</author>
<published>2019-08-01T19:22:21Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/feed/routing/commit/?id=cf802f86073e0055c8b2d01faa271d6f7dfe4f1f'/>
<id>urn:sha1:cf802f86073e0055c8b2d01faa271d6f7dfe4f1f</id>
<content type='text'>
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 &lt;sven@narfation.org&gt;
</content>
</entry>
<entry>
<title>alfred: Support multiple listening interfaces</title>
<updated>2019-08-01T19:34:44Z</updated>
<author>
<name>Sven Eckelmann</name>
</author>
<published>2019-08-01T18:58:41Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/feed/routing/commit/?id=157da8c4ee189764c43b6ce40613e248a15362dc'/>
<id>urn:sha1:157da8c4ee189764c43b6ce40613e248a15362dc</id>
<content type='text'>
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 &lt;sven@narfation.org&gt;
</content>
</entry>
<entry>
<title>alfred: Fix alfred.init</title>
<updated>2018-07-21T14:00:20Z</updated>
<author>
<name>Adrian Schmutzler</name>
</author>
<published>2018-07-21T13:57:51Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/feed/routing/commit/?id=52e254519830c57e921d09f2d4f2c8f660bde30e'/>
<id>urn:sha1:52e254519830c57e921d09f2d4f2c8f660bde30e</id>
<content type='text'>
The commit 45db0e6 introduced curly brackets which are not correct
syntax and thus broke the script.

Signed-off-by: Adrian Schmutzler &lt;freifunk@adrianschmutzler.de&gt;
</content>
</entry>
<entry>
<title>alfred: use procd</title>
<updated>2018-07-20T09:23:10Z</updated>
<author>
<name>Paul Spooren</name>
</author>
<published>2018-06-13T15:08:51Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/feed/routing/commit/?id=45db0e60d2ff57ac94b8f4130a6878b148dcdb2a'/>
<id>urn:sha1:45db0e60d2ff57ac94b8f4130a6878b148dcdb2a</id>
<content type='text'>
Signed-off-by: Paul Spooren &lt;mail@aparcar.org&gt;
</content>
</entry>
<entry>
<title>alfred: Support interface IDs with more than two digits</title>
<updated>2018-04-09T10:11:12Z</updated>
<author>
<name>Adrian Schmutzler</name>
</author>
<published>2018-03-19T13:16:54Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/feed/routing/commit/?id=135bc605b4cf91d40ac97f1129a6a5a950f3ff72'/>
<id>urn:sha1:135bc605b4cf91d40ac97f1129a6a5a950f3ff72</id>
<content type='text'>
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 &lt;freifunk@adrianschmutzler.de&gt;
</content>
</entry>
<entry>
<title>alfred: bat-hosts.lua: 'alfred -r' can fail with no output, so retry 3 times</title>
<updated>2017-03-28T19:41:13Z</updated>
<author>
<name>Gui Iribarren</name>
</author>
<published>2016-08-07T22:35:35Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/feed/routing/commit/?id=7b851e5f19e4b4112531bc39b0b7392e34859177'/>
<id>urn:sha1:7b851e5f19e4b4112531bc39b0b7392e34859177</id>
<content type='text'>
Signed-off-by: Gui Iribarren &lt;gui@altermundi.net&gt;
</content>
</entry>
<entry>
<title>alfred: not only wait for the interface, but also a link-local address</title>
<updated>2015-08-09T16:15:27Z</updated>
<author>
<name>Matthias Schiffer</name>
</author>
<published>2015-08-09T16:03:28Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/feed/routing/commit/?id=c40c8024eed8ed5dfd35c211a1af4a87c9f157a3'/>
<id>urn:sha1:c40c8024eed8ed5dfd35c211a1af4a87c9f157a3</id>
<content type='text'>
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 &lt;mschiffer@universe-factory.net&gt;
</content>
</entry>
<entry>
<title>alfred: fix whitespaces</title>
<updated>2015-05-31T08:39:59Z</updated>
<author>
<name>Moritz Warning</name>
</author>
<published>2015-05-31T08:39:59Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/feed/routing/commit/?id=a251e8fb2a89b1d893c2797a8d2571308d340740'/>
<id>urn:sha1:a251e8fb2a89b1d893c2797a8d2571308d340740</id>
<content type='text'>
</content>
</entry>
</feed>
