Hi Simon,
ip link set dev $iface master bat0
This doesn't work. eth0 is not added to batman. To further test, I've added it via batctl.
I'm not sure..but I think this does not work because the "set master" command does not use ioctl, but rtnl only. Since in this kernel we don't have rtnl for these operations (this is why we have this hacky patch) I did not expect this command to work.
ip link set dev $iface nomaster
has no effect
same as before.
Even more interesting are combinations of those:
- batctl if add $iface && some OGMS here && ip link set dev $iface nomaster &&
ip link del dev bat0
- ip link add dev bat0 type batadv && ip link set dev $iface master bat0 &&
some OGMS here && batctl if del $iface
Some of these combinations are tested above, but I'd suggest we should fix the general case first. :)
what would you like to fix? :) We have just implemented a feature and now we don't have any userspace tool which can exploit it! :-D
Simon, Thanks a lot for testing!
Cheers,