Re: [B.A.T.M.A.N.] [PATCH] batman-adv: add compat support for the new netlink ops

2013-02-20 Thread Antonio Quartulli
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

Re: [B.A.T.M.A.N.] [PATCH] batman-adv: add compat support for the new netlink ops

2013-02-20 Thread Simon Wunderlich
On Wed, Feb 20, 2013 at 02:26:25PM +0100, Antonio Quartulli wrote: 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

Re: [B.A.T.M.A.N.] [PATCH] batman-adv: add compat support for the new netlink ops

2013-02-20 Thread Antonio Quartulli
On Wed, Feb 20, 2013 at 03:14:13PM +0100, Simon Wunderlich wrote: On Wed, Feb 20, 2013 at 02:26:25PM +0100, Antonio Quartulli wrote: 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.

Re: [B.A.T.M.A.N.] [PATCH] batman-adv: add compat support for the new netlink ops

2013-02-20 Thread Antonio Quartulli
On Wed, Feb 20, 2013 at 03:27:27PM +0100, Antonio Quartulli wrote: Nothing on my side. Thanks again :) I just realised that the ioctl commands this code is handling are for a bridge interface. Since batman-adv does not have its own set of ioctls, then the ndo_do_ioctl() callback should simply

[B.A.T.M.A.N.] [PATCHv2] batman-adv: add compat support for the new netlink ops

2013-02-20 Thread Antonio Quartulli
This patches enable the new rtnl ops to compile on kernels starting from 2.6.32 Signed-off-by: Antonio Quartulli or...@autistici.org --- v2: - do not handle ioctl. just return EOPNOTSUPP compat.h | 21 + 1 file changed, 21 insertions(+) diff --git a/compat.h b/compat.h