All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gui Iribarren <gui@altermundi.net>
To: The list for a Better Approach To Mobile Ad-hoc Networking
	<b.a.t.m.a.n@lists.open-mesh.org>
Subject: [B.A.T.M.A.N.] alfred init.d bugs
Date: Fri, 13 Dec 2013 16:00:46 -0300	[thread overview]
Message-ID: <52AB595E.8090104@altermundi.net> (raw)

alfred will refuse to start if bat0 doesn't exist yet

root@48cfeb:~# alfred -i br-lan -m -b bat0
Could not find transtable_global for interface bat0. Make sure it is a 
valid batman-adv soft-interface

at boot time this can create a race condition, since wifi interfaces can 
take longer to be brought up, making bat0 appear much later than the 
time alfred init.d script is run. In the following example, 4 seconds later.

Sun Nov  3 05:09:13 2013 kern.emerg /etc/rc.d/S99alfred: starting alfred
Sun Nov  3 05:09:13 2013 kern.emerg /etc/rc.d/S99alfred: starting batadv-vis
Sun Nov  3 05:09:13 2013 kern.emerg can't connect to unix socket: 
Connection refused
Sun Nov  3 05:09:13 2013 kern.emerg can't connect to unix socket: 
Connection refused
Sun Nov  3 05:09:17 2013 kern.info kernel: [   28.620000] batman_adv: 
bat0: Adding interface: wlan0ah.145
Sun Nov  3 05:09:17 2013 kern.info kernel: [   28.620000] batman_adv: 
bat0: Interface activated: wlan0ah.145
Sun Nov  3 05:09:17 2013 daemon.notice netifd: Interface 
'lm_wlan0ah_bata' is now up
Sun Nov  3 05:09:17 2013 kern.info kernel: [   29.060000] batman_adv: 
bat0: bridge_loop_avoidance: Changing from: disabled to: enabled
Sun Nov  3 05:09:17 2013 kern.info kernel: [   29.080000] batman_adv: 
bat0: distributed_arp_table: Changing from: enabled to: disabled

sending a patch for this in a minute, along with another bugfix which 
needs less explanation :)

                 reply	other threads:[~2013-12-13 19:00 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=52AB595E.8090104@altermundi.net \
    --to=gui@altermundi.net \
    --cc=b.a.t.m.a.n@lists.open-mesh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.