enslaving a device

dieter dieter at able.be
Thu Aug 25 04:16:37 EDT 2011


Hello,

Should it be possible to enslave a device to a bonding device with 
something like the following:

link = rtnl_link_get_by_name(cache, "eth0");
change = rtnl_link_alloc();
rtnl_link_set_master(change, rtnl_link_name2i(cache, "bond0"));
rtnl_link_change(nlsock, link, change, 0);

It doesn't return an error, but it also doesn't seem to have any effect. 
Maybe my kernel is too old (2.6.35.10), or should it return "not 
supported" in that case? This is with a yesterday's git checkout.

thanks
dieter



More information about the libnl mailing list