From: Sven Eckelmann <sven.eckelmann@gmx.de>
To: The list for a Better Approach To Mobile Ad-hoc Networking
<b.a.t.m.a.n@lists.open-mesh.net>
Subject: Re: [B.A.T.M.A.N.] basic B.A.T.M.A.N-adv setup
Date: Wed, 21 Oct 2009 14:00:51 +0200 [thread overview]
Message-ID: <200910211400.55696.sven.eckelmann@gmx.de> (raw)
In-Reply-To: <200910211200.24602.sven.eckelmann@gmx.de>
[-- Attachment #1: Type: Text/Plain, Size: 1125 bytes --]
Sven Eckelmann wrote:
> I think that you found a bug in batman-adv. Please add the wlan0 interface
> to /proc/net/batman-adv/interfaces when wlan0 is up.
Ok, problem is that the interface starts as IF_INACTIVE, then switches to
IF_TO_BE_ACTIVATED when you activate it with ifconfig, but never reaches
IF_ACTIVE.
It should get the IF_TO_BE_ACTIVATED status in hardif_activate_interface and
the IF_ACTIVE in schedule_own_packet. I would guess that this function is
never called in that situation.
Following called-by tree:
- schedule_own_packet
- send_outstanding_bat_packet
- new_aggregated_packet (indirect over worker queue)
- add_bat_packet_to_list
- schedule_own_packet (who sees the loop here?)
- schedule_forward_packet
- hardif_add_interface
I would guess that either schedule_own_packet must be moved to
hardif_activate_interface or the worker queue must be started otherwise when
hardif_activate_interface is called in hard_if_event. I would leave the that
to Marek as he knows what side effects are problematic in that situation
Best regards,
Sven
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
next prev parent reply other threads:[~2009-10-21 12:00 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-20 15:02 [B.A.T.M.A.N.] basic B.A.T.M.A.N-adv setup Francesco
2009-10-20 15:17 ` Sven Eckelmann
2009-10-20 15:23 ` Sven Eckelmann
2009-10-20 16:02 ` Francesco
2009-10-20 17:10 ` Sven Eckelmann
2009-10-20 17:17 ` Sven Eckelmann
2009-10-20 19:59 ` Francesco
2009-10-20 20:22 ` Sven Eckelmann
2009-10-21 6:54 ` Francesco
2009-10-21 7:05 ` Andrew Lunn
2009-10-21 7:35 ` Francesco
2009-10-21 10:00 ` Sven Eckelmann
2009-10-21 12:00 ` Sven Eckelmann [this message]
2009-10-21 15:26 ` [B.A.T.M.A.N.] [PATCH] Start to send originator messages when interface gets active Sven Eckelmann
2009-10-21 17:21 ` [B.A.T.M.A.N.] [batman-adv] " Marek Lindner
2009-10-21 12:11 ` [B.A.T.M.A.N.] basic B.A.T.M.A.N-adv setup Francesco
2009-10-20 15:33 ` Marek Lindner
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=200910211400.55696.sven.eckelmann@gmx.de \
--to=sven.eckelmann@gmx.de \
--cc=b.a.t.m.a.n@lists.open-mesh.net \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox