On Monday 07 March 2016 15:31:30 Andrew Lunn wrote:
[...]
> > right now):
> >    dev_parent_net = default_net;
> >     
> >     if (dev->rtnl_link_ops && dev->rtnl_link_ops->get_link_net)
> >     
> >             dev_parent_net = dev->rtnl_link_ops->get_link_net(dev);
> 
> Horrible, and i have no idea if it actually works, but how about
> 
> #if (LINUX_VERSION_CODE < KERNEL_VERSION(4, 0, 0))
> #define dev->rtnl_link_ops->get_link_net true
> #define dev->rtnl_link_ops->get_link_net(dev) init_net
> #endif

I have prepared a quick draft of a different idea [1].

You have to excuse me now but I have a longer meeting with my shower to
get rid of the feeling that I have done something horrible/dirty. :)

Kind regards,
        Sven

[1] 
https://git.open-mesh.org/batman-adv.git/commit/fb7b5eb8c81969dc8bea356d0a3f0b5e72d2da49

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to