Hi,
I am trying to write a sample application in C to add and delete a
network interface into a container. My code is as shown below and it
fails.
#define DEVICE "/sys/class/net/eth2"
#define NAME "eth1"
if (!c->add_device_node(c, DEVICE, NAME)) {
fprintf(stderr, "Adding %s to the container (%s) failed...\n",
DEVICE, NAME);
goto out;
}
Is there anything wrong in the way I am using the add API ?
Regards,
Ajith
_______________________________________________
lxc-devel mailing list
[email protected]
http://lists.linuxcontainers.org/listinfo/lxc-devel