I have tried batman-adv-netifd-proto-batadv.patch along with some Makefile adjustments to
get it compile.
Afaict it works.
On 12/02/2012 02:19 PM, Gui Iribarren wrote:
Really Sorry for the whitespace headaches :( hope to
get it straight this time.
As we discussed on irc with Marek, here's a first stab at netifd integration.
I'm surprised at how simple it actually is to add a custom "proto" with
netifd
No race condition with this approach, at least on the hardware i have
at hand (ubnt2 , and tplinks)
an example uci config scheme changes from
batman-adv.bat0=mesh
batman-adv.bat0.interfaces='mesh0 mesh1 mesh2'
batman-adv.bat0.bridge_loop_avoidance=1
network.mesh{0,1,2}=interface
network.mesh{0,1,2}.proto=none
network.mesh{0,1,2}.mtu=1528
wireless.@wifi-iface[]=wifi-iface
wireless.(a)wifi-iface[].network=mesh{0,1,2}
wireless.(a)wifi-iface[].mode=adhoc
to
batman-adv.bat0=mesh
batman-adv.bat0.bridge_loop_avoidance=1
network.mesh{0,1,2}=interface
network.mesh{0,1,2}.proto=batadv
network.mesh{0,1,2}.mesh=bat0
network.mesh{0,1,2}.mtu=1528
wireless.@wifi-iface[1]=wifi-iface
wireless.(a)wifi-iface[1].network=mesh{0,1,2}
wireless.(a)wifi-iface[1].mode=adhoc
So /etc/config/batman-adv now deals only with bat0 tweakable parameters,
/etc/config/network defines interfaces to be added to bat0
and /etc/config/wireless is unchanged
and netifd is responsible of avoiding race conditions
of course, this makes batman-adv package (on openwrt) depend on
netifd, but openwrt devs are pushing it that way (and it's finally
looking like an elegant move after all ;) )
Cheers!
On Mon, Nov 26, 2012 at 7:45 AM, Sven Eckelmann <sven(a)narfation.org> wrote:
> On Monday 26 November 2012 18:40:20 Marek Lindner wrote:
>> On Friday, November 23, 2012 22:00:47 Gui Iribarren wrote:
>>> Boring bootlog at
http://pastebin.com/59FEPttY
>>>
>>> Proposed patch follows (against current batman-adv in openwrt
'packages'
>>> feed)
>>>
>>> Signed-off-by: Gui Iribarren <gui(a)altermundi.net>
>>
>> I made the necessary changes myself after I successfully de-scrambled your
>> patch. You will find the patch in OpenWrt trunk. Give it try!
>> Next time, please configure your mail client to not wrap lines.
>
>
http://lxr.linux.no/linux+v2.6.30/Documentation/email-clients.txt
>
> Kind regards,
> Sven