From: Sven Eckelmann <sven@narfation.org>
To: b.a.t.m.a.n@lists.open-mesh.org
Subject: Re: [B.A.T.M.A.N.] batman-adv: Force line topology
Date: Sat, 13 Jun 2015 15:58:35 +0200 [thread overview]
Message-ID: <7101665.y6bS5x8EtZ@sven-edge> (raw)
In-Reply-To: <CALaFpeVMwOE5DtHoDWVA+CBXq2jMuKLdmU-CcOWhCNRkHQ9F5w@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1956 bytes --]
On Friday 12 June 2015 13:31:54 Carlos Meralto wrote:
> Hello, I am developing my thesis on mesh networks. And I'm currently
> doing some tests with batman-adv.
> So my question is:
> I need to create a line topology. For example:
> A-> B-> C-> D
>
> Of all the options I tried, I could not find a solution to do this
> https://lists.open-mesh.org/pipermail/batman/2012-September/008019.html
> https://lists.open-mesh.org/pipermail/batman/2011-July/005169.html
>
> I can not use the ebtables because I am using the wlan0 interface. And
> when I try to create a bridge on the interface (wlan0) gives me an
> error.
>
> root@OpenWrt:~# batctl if del adhoc0
> root@OpenWrt:~# brctl addbr bridgeWlan
> root@OpenWrt:~# brctl addif bridgeWlan adhoc0
> brctl: bridge bridgeWlan: Operation not supported
You can patch the driver to allow this (it is just a simple check which
disallows it in most drivers... or actually in wireless core [1]). But you
should make sure that you still use the same mac addresses for vif + bridge
and don't end up with 4 address packets.
> There is already a way to force a topology in batman-adv?
No. There were only different solutions (not acceptable for the linux kernel)
which did this directly in batman-adv. A very prominent (and easy to find)
solution was from Martin [2]
The idea behind batman-adv is that it finds paths and thus automatically
creates a good virtual topologies.
> I'm blocked with no solution.
>
> Thanks in advance.
I don't know why you want to use wlan and you also don't explain it in your
mail. You could for example also use emulation + vde2 [3] since you already
try to emulate a setup which is not there in reality.
Kind regards,
Sven
[1] https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/net/wireless/core.c#n1021
[2] http://git.open-mesh.org/batman-adv.git/commit/b6b01487d43ca82a53e61b3651506082a280f422
[3] http://www.open-mesh.org/projects/open-mesh/wiki/Emulation
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
next prev parent reply other threads:[~2015-06-13 13:58 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-12 12:31 [B.A.T.M.A.N.] batman-adv: Force line topology Carlos Meralto
2015-06-13 13:58 ` Sven Eckelmann [this message]
2015-06-13 18:15 ` Carlos Meralto
2015-06-14 14:30 ` Gui Iribarren
[not found] ` <165699CE-BD67-45D4-AAC1-64663C9B466B@gmail.com>
2015-06-13 19:30 ` Sven Eckelmann
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=7101665.y6bS5x8EtZ@sven-edge \
--to=sven@narfation.org \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox